diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7bdc849 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +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 + # Limit parallelism: the generated model set is large and high -j exhausts runner memory. + - name: Build + run: cmake --build build --parallel 2 + - 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 }} 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/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 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 4788270..0000000 --- a/client/.openapi-generator/FILES +++ /dev/null @@ -1,745 +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/PublicApi.h -include/FastCommentsClient/model/APIAuditLog.h -include/FastCommentsClient/model/APIComment.h -include/FastCommentsClient/model/APICommentBase.h -include/FastCommentsClient/model/APICommentBase_meta.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/APIPage.h -include/FastCommentsClient/model/APISSOUser.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/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/AddPageAPIResponse.h -include/FastCommentsClient/model/AddSSOUserAPIResponse.h -include/FastCommentsClient/model/AggregateQuestionResultsResponse.h -include/FastCommentsClient/model/AggregateQuestionResults_200_response.h -include/FastCommentsClient/model/AggregateTimeBucket.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/BillingInfo.h -include/FastCommentsClient/model/BlockFromCommentParams.h -include/FastCommentsClient/model/BlockFromCommentPublic_200_response.h -include/FastCommentsClient/model/BlockSuccess.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/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 -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/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/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/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/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/GetCachedNotificationCountResponse.h -include/FastCommentsClient/model/GetCachedNotificationCount_200_response.h -include/FastCommentsClient/model/GetCommentText_200_response.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/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/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/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/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/GetSubscriptionsAPIResponse.h -include/FastCommentsClient/model/GetTenantDailyUsagesResponse.h -include/FastCommentsClient/model/GetTenantDailyUsages_200_response.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/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/GetVotesForUserResponse.h -include/FastCommentsClient/model/GetVotesForUser_200_response.h -include/FastCommentsClient/model/GetVotesResponse.h -include/FastCommentsClient/model/GetVotes_200_response.h -include/FastCommentsClient/model/GifRating.h -include/FastCommentsClient/model/HeaderAccountNotification.h -include/FastCommentsClient/model/HeaderState.h -include/FastCommentsClient/model/IgnoredResponse.h -include/FastCommentsClient/model/ImageContentProfanityLevel.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/Moderator.h -include/FastCommentsClient/model/NotificationAndCount.h -include/FastCommentsClient/model/NotificationObjectType.h -include/FastCommentsClient/model/NotificationType.h -include/FastCommentsClient/model/PatchDomainConfigParams.h -include/FastCommentsClient/model/PatchHashTag_200_response.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/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/PublicVote.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/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/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/SaveCommentsResponseWithPresence.h -include/FastCommentsClient/model/SearchUsersResponse.h -include/FastCommentsClient/model/SearchUsersSectionedResponse.h -include/FastCommentsClient/model/SearchUsers_200_response.h -include/FastCommentsClient/model/SetCommentTextResult.h -include/FastCommentsClient/model/SetCommentText_200_response.h -include/FastCommentsClient/model/SizePreset.h -include/FastCommentsClient/model/SortDirections.h -include/FastCommentsClient/model/SpamRule.h -include/FastCommentsClient/model/TOSConfig.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 -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/UpdateUserBadge_200_response.h -include/FastCommentsClient/model/UpdateUserNotificationStatus_200_response.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/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/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/PublicApi.cpp -src/model/APIAuditLog.cpp -src/model/APIComment.cpp -src/model/APICommentBase.cpp -src/model/APICommentBase_meta.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/APIPage.cpp -src/model/APISSOUser.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/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/AddPageAPIResponse.cpp -src/model/AddSSOUserAPIResponse.cpp -src/model/AggregateQuestionResultsResponse.cpp -src/model/AggregateQuestionResults_200_response.cpp -src/model/AggregateTimeBucket.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/BillingInfo.cpp -src/model/BlockFromCommentParams.cpp -src/model/BlockFromCommentPublic_200_response.cpp -src/model/BlockSuccess.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/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 -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/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/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/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/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/GetCachedNotificationCountResponse.cpp -src/model/GetCachedNotificationCount_200_response.cpp -src/model/GetCommentText_200_response.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/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/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/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/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/GetSubscriptionsAPIResponse.cpp -src/model/GetTenantDailyUsagesResponse.cpp -src/model/GetTenantDailyUsages_200_response.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/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/GetVotesForUserResponse.cpp -src/model/GetVotesForUser_200_response.cpp -src/model/GetVotesResponse.cpp -src/model/GetVotes_200_response.cpp -src/model/GifRating.cpp -src/model/HeaderAccountNotification.cpp -src/model/HeaderState.cpp -src/model/IgnoredResponse.cpp -src/model/ImageContentProfanityLevel.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/Moderator.cpp -src/model/NotificationAndCount.cpp -src/model/NotificationObjectType.cpp -src/model/NotificationType.cpp -src/model/PatchDomainConfigParams.cpp -src/model/PatchHashTag_200_response.cpp -src/model/PatchPageAPIResponse.cpp -src/model/PatchSSOUserAPIResponse.cpp -src/model/PendingCommentToSyncOutbound.cpp -src/model/PinComment_200_response.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/PublicVote.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/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/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/SaveCommentsResponseWithPresence.cpp -src/model/SearchUsersResponse.cpp -src/model/SearchUsersSectionedResponse.cpp -src/model/SearchUsers_200_response.cpp -src/model/SetCommentTextResult.cpp -src/model/SetCommentText_200_response.cpp -src/model/SizePreset.cpp -src/model/SortDirections.cpp -src/model/SpamRule.cpp -src/model/TOSConfig.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 -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/UpdateUserBadge_200_response.cpp -src/model/UpdateUserNotificationStatus_200_response.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/VoteBodyParams.cpp -src/model/VoteComment_200_response.cpp -src/model/VoteDeleteResponse.cpp -src/model/VoteResponse.cpp -src/model/VoteResponseUser.cpp -src/model/VoteStyle.cpp diff --git a/client/.openapi-generator/VERSION b/client/.openapi-generator/VERSION deleted file mode 100644 index 909dcd0..0000000 --- a/client/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -7.19.0-SNAPSHOT diff --git a/client/README.md b/client/README.md index 103c6d0..1d58458 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.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 0681579..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 fc0749e..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 419d255..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 b414d6a..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 98183e3..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 57bdca0..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 38fba2b..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 d3d8587..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 8b16e75..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 4a81df7..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 768447d..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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..9f34968 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..a8b4d3f --- /dev/null +++ b/client/include/FastCommentsClient/model/APIBanUserChangeLog.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.23.0-SNAPSHOT. + * 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 + +#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..b5c2651 --- /dev/null +++ b/client/include/FastCommentsClient/model/APIBanUserChangedValues.h @@ -0,0 +1,166 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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; + + boost::optional m_UserId; + + boost::optional m_Email; + + boost::optional m_Username; + + boost::optional m_IpHash; + + 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; + + boost::optional m_BannedUntil; + + 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..2441452 --- /dev/null +++ b/client/include/FastCommentsClient/model/APIBannedUser.h @@ -0,0 +1,166 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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; + + boost::optional m_UserId; + + boost::optional m_Email; + + boost::optional m_Username; + + boost::optional m_IpHash; + + 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; + + boost::optional m_BannedUntil; + + 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..7063d0a --- /dev/null +++ b/client/include/FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h @@ -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.23.0-SNAPSHOT. + * 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 + +#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; + + boost::optional m_UserId; + + utility::string_t m_BanType; + bool m_BanTypeIsSet; + + boost::optional m_Email; + + boost::optional m_IpHash; + + boost::optional m_BannedUntil; + + 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -64,7 +64,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,8 +329,8 @@ 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; diff --git a/client/include/FastCommentsClient/model/APICommentBase.h b/client/include/FastCommentsClient/model/APICommentBase.h index 01495b1..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -64,7 +64,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,8 +329,8 @@ 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; diff --git a/client/include/FastCommentsClient/model/APICommentBase_meta.h b/client/include/FastCommentsClient/model/APICommentBase_meta.h index 184116f..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..a3cf6a7 --- /dev/null +++ b/client/include/FastCommentsClient/model/APICommentCommonBannedUser.h @@ -0,0 +1,127 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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; + + boost::optional m_UserId; + + utility::string_t m_BanType; + bool m_BanTypeIsSet; + + boost::optional m_Email; + + boost::optional m_IpHash; + + boost::optional m_BannedUntil; + + 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 4fd62c3..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 dd31d0d..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 ef9be31..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 85c30fb..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 6e8d3e6..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 324901e..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 8872a17..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 c248826..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 163f414..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 c5b13a2..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..a1b0740 --- /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.23.0-SNAPSHOT. + * 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 + +#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: + boost::optional> m_Preferences; + + 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..af46cbe --- /dev/null +++ b/client/include/FastCommentsClient/model/APIModerateUserBanPreferences.h @@ -0,0 +1,99 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 eb530d0..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SaveCommentResponse.h b/client/include/FastCommentsClient/model/APISaveCommentResponse.h similarity index 77% rename from client/include/FastCommentsClient/model/SaveCommentResponse.h rename to client/include/FastCommentsClient/model/APISaveCommentResponse.h index 3acba7c..d66b346 100644 --- a/client/include/FastCommentsClient/model/SaveCommentResponse.h +++ b/client/include/FastCommentsClient/model/APISaveCommentResponse.h @@ -4,28 +4,28 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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 +34,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 +58,7 @@ class SaveCommentResponse ///////////////////////////////////////////// - /// SaveCommentResponse members + /// APISaveCommentResponse members std::shared_ptr getStatus() const; @@ -66,10 +66,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,7 +89,7 @@ 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; @@ -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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 52e979b..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 9615066..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 123ad92..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 fdc48a3..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 92e7262..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 2696772..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 bc35651..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetDomainConfig_200_response.h b/client/include/FastCommentsClient/model/AddDomainConfigResponse.h similarity index 75% rename from client/include/FastCommentsClient/model/GetDomainConfig_200_response.h rename to client/include/FastCommentsClient/model/AddDomainConfigResponse.h index b114e29..bebdadf 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfig_200_response.h +++ b/client/include/FastCommentsClient/model/AddDomainConfigResponse.h @@ -4,27 +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.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * GetDomainConfig_200_response.h + * AddDomainConfigResponse.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfig_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfig_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 +34,12 @@ namespace model { -class GetDomainConfig_200_response +class AddDomainConfigResponse : public ModelBase { public: - GetDomainConfig_200_response(); - virtual ~GetDomainConfig_200_response(); + AddDomainConfigResponse(); + virtual ~AddDomainConfigResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -54,19 +54,9 @@ class GetDomainConfig_200_response ///////////////////////////////////////////// - /// GetDomainConfig_200_response members + /// AddDomainConfigResponse 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(); @@ -77,18 +67,28 @@ class GetDomainConfig_200_response 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: - boost::optional> m_Configuration; + std::shared_ptr getConfiguration() const; + bool configurationIsSet() const; + void unsetConfiguration(); + void setConfiguration(const std::shared_ptr& value); - boost::optional> m_Status; +protected: utility::string_t m_Reason; bool m_ReasonIsSet; utility::string_t m_Code; bool m_CodeIsSet; + boost::optional> m_Status; + + boost::optional> m_Configuration; + }; @@ -97,4 +97,4 @@ class GetDomainConfig_200_response } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfig_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 74% rename from client/include/FastCommentsClient/model/AddDomainConfig_200_response_anyOf.h rename to client/include/FastCommentsClient/model/AddDomainConfigResponse_anyOf.h index 2712adc..0096336 100644 --- a/client/include/FastCommentsClient/model/AddDomainConfig_200_response_anyOf.h +++ b/client/include/FastCommentsClient/model/AddDomainConfigResponse_anyOf.h @@ -4,19 +4,19 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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 @@ -31,12 +31,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 +51,7 @@ class AddDomainConfig_200_response_anyOf ///////////////////////////////////////////// - /// AddDomainConfig_200_response_anyOf members + /// AddDomainConfigResponse_anyOf members std::shared_ptr getConfiguration() const; @@ -78,4 +78,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 014a6cd..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..49e804f --- /dev/null +++ b/client/include/FastCommentsClient/model/AdjustCommentVotesParams.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.23.0-SNAPSHOT. + * 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 + +#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..4e1481f --- /dev/null +++ b/client/include/FastCommentsClient/model/AdjustVotesResponse.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.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..04b0d4b --- /dev/null +++ b/client/include/FastCommentsClient/model/AggregateResponse.h @@ -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.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..5af541a --- /dev/null +++ b/client/include/FastCommentsClient/model/AggregationAPIError.h @@ -0,0 +1,102 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 07ad75b..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 a156f06..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 5647746..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 16fb8c4..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 e31672c..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 2c3a6b4..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 b367cd4..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..2bd905a --- /dev/null +++ b/client/include/FastCommentsClient/model/AwardUserBadgeResponse.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.23.0-SNAPSHOT. + * 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 + +#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..78f38fe --- /dev/null +++ b/client/include/FastCommentsClient/model/BanUserFromCommentResult.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.23.0-SNAPSHOT. + * 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 + +#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..1acdfdb --- /dev/null +++ b/client/include/FastCommentsClient/model/BanUserUndoParams.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.23.0-SNAPSHOT. + * 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 + +#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..6478ebb --- /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.23.0-SNAPSHOT. + * 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 + +#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; + + boost::optional> m_MatchedOnValue; + +}; + + +} +} +} +} + +#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..20d8af6 --- /dev/null +++ b/client/include/FastCommentsClient/model/BannedUserMatchType.h @@ -0,0 +1,89 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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 64% rename from client/include/FastCommentsClient/model/Record_string_string_or_number__value.h rename to client/include/FastCommentsClient/model/BannedUserMatch_matchedOnValue.h index 56be6f9..e9adbe8 100644 --- a/client/include/FastCommentsClient/model/Record_string_string_or_number__value.h +++ b/client/include/FastCommentsClient/model/BannedUserMatch_matchedOnValue.h @@ -4,19 +4,19 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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 @@ -30,12 +30,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 +50,7 @@ class Record_string_string_or_number__value ///////////////////////////////////////////// - /// Record_string_string_or_number__value members + /// BannedUserMatch_matchedOnValue members @@ -63,4 +63,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 64a1817..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..c1e7495 --- /dev/null +++ b/client/include/FastCommentsClient/model/BuildModerationFilterParams.h @@ -0,0 +1,127 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#include "FastCommentsClient/ModelBase.h" + +#include +#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); + + + /// + /// 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; + + 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; + + std::map m_AdditionalProperties; + bool m_AdditionalPropertiesIsSet; +}; + + +} +} +} +} + +#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..94cdec4 --- /dev/null +++ b/client/include/FastCommentsClient/model/BuildModerationFilterResponse.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.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 4b48204..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 a9f92a9..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 68ed575..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 1655f96..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -23,7 +23,7 @@ #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 +32,7 @@ namespace openapitools { namespace client { namespace model { -class AddHashTag_200_response; +class BulkCreateHashTagsResponse_results_inner; class BulkCreateHashTagsResponse @@ -63,17 +63,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 86% rename from client/include/FastCommentsClient/model/AddHashTag_200_response.h rename to client/include/FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h index 3f927a4..698170e 100644 --- a/client/include/FastCommentsClient/model/AddHashTag_200_response.h +++ b/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h @@ -4,19 +4,19 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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 @@ -39,12 +39,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 +59,7 @@ class AddHashTag_200_response ///////////////////////////////////////////// - /// AddHashTag_200_response members + /// BulkCreateHashTagsResponse_results_inner members std::shared_ptr getStatus() const; @@ -144,4 +144,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..4981e88 --- /dev/null +++ b/client/include/FastCommentsClient/model/BulkPreBanParams.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.23.0-SNAPSHOT. + * 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 + +#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..ad072a8 --- /dev/null +++ b/client/include/FastCommentsClient/model/BulkPreBanSummary.h @@ -0,0 +1,116 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 5c5ce66..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 47f1d43..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 84bb91f..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,7 +22,7 @@ #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 +180,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; @@ -256,12 +261,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 f5a506b..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -143,6 +143,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 +350,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; diff --git a/client/include/FastCommentsClient/model/CommentLogEntry.h b/client/include/FastCommentsClient/model/CommentLogEntry.h index 639489c..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 9548937..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 104852a..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 8ce3eb6..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 62cefbf..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 8bc9cf2..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 832bdc3..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 8034af0..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 02c92c4..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 8cca151..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..3a96dc7 --- /dev/null +++ b/client/include/FastCommentsClient/model/CommentsByIdsParams.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.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 ae726fb..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 23b1977..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 cde0918..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,7 +22,7 @@ #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 +180,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(); @@ -309,12 +314,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 65045db..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 c35f78a..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 0278895..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 edcef69..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 0303b1d..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 219ccf4..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 6679842..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 1a9c6e6..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 009a790..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -260,15 +260,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; @@ -421,11 +421,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 8439df3..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 7d0f902..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 94389a9..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..18ef0ee --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateV1PageReact.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.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -28,6 +28,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 +336,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 +371,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 +479,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(); @@ -637,6 +663,11 @@ class CustomConfigParameters bool m_NoImageUploads; bool m_NoImageUploadsIsSet; + bool m_AllowEmbeds; + bool m_AllowEmbedsIsSet; + + boost::optional> m_AllowedEmbedDomains; + bool m_NoStyles; bool m_NoStylesIsSet; @@ -651,6 +682,9 @@ class CustomConfigParameters bool m_RequireSSO; bool m_RequireSSOIsSet; + bool m_EnableFChat; + bool m_EnableFChatIsSet; + bool m_EnableResizeHandle; bool m_EnableResizeHandleIsSet; @@ -709,6 +743,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 d3f6064..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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 71% rename from client/include/FastCommentsClient/model/DeleteDomainConfig_200_response.h rename to client/include/FastCommentsClient/model/DeleteDomainConfigResponse.h index 2d731bd..2a08ee3 100644 --- a/client/include/FastCommentsClient/model/DeleteDomainConfig_200_response.h +++ b/client/include/FastCommentsClient/model/DeleteDomainConfigResponse.h @@ -4,19 +4,19 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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 @@ -31,12 +31,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 +51,7 @@ class DeleteDomainConfig_200_response ///////////////////////////////////////////// - /// DeleteDomainConfig_200_response members + /// DeleteDomainConfigResponse members std::shared_ptr getStatus() const; @@ -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 69% rename from client/include/FastCommentsClient/model/DeleteFeedPostPublic_200_response_anyOf.h rename to client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h index 4d015ce..f22f15a 100644 --- a/client/include/FastCommentsClient/model/DeleteFeedPostPublic_200_response_anyOf.h +++ b/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h @@ -4,19 +4,19 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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 @@ -32,12 +32,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 +52,7 @@ class DeleteFeedPostPublic_200_response_anyOf ///////////////////////////////////////////// - /// DeleteFeedPostPublic_200_response_anyOf members + /// DeleteFeedPostPublicResponse members std::shared_ptr getStatus() const; @@ -73,4 +73,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 74% rename from client/include/FastCommentsClient/model/DeleteHashTag_request.h rename to client/include/FastCommentsClient/model/DeleteHashTagRequestBody.h index 828e523..f9b6de8 100644 --- a/client/include/FastCommentsClient/model/DeleteHashTag_request.h +++ b/client/include/FastCommentsClient/model/DeleteHashTagRequestBody.h @@ -4,19 +4,19 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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 @@ -31,12 +31,12 @@ namespace model { -class DeleteHashTag_request +class DeleteHashTagRequestBody : public ModelBase { public: - DeleteHashTag_request(); - virtual ~DeleteHashTag_request(); + DeleteHashTagRequestBody(); + virtual ~DeleteHashTagRequestBody(); ///////////////////////////////////////////// /// ModelBase overrides @@ -51,7 +51,7 @@ class DeleteHashTag_request ///////////////////////////////////////////// - /// DeleteHashTag_request members + /// DeleteHashTagRequestBody members utility::string_t getTenantId() const; @@ -72,4 +72,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 cbda68c..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 902e5f5..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 e2d7d31..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 eff79f0..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 9d95442..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 53969ed..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 4deec2f..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 327d8db..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -424,6 +424,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; @@ -609,6 +614,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 d017121..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 3c89f14..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 bde370b..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 a4f344e..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 39db3aa..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 aa23f02..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 3295976..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 9fcd342..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..f6dcd82 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetBannedUsersCountResponse.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.23.0-SNAPSHOT. + * 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 + +#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..04fa93d --- /dev/null +++ b/client/include/FastCommentsClient/model/GetBannedUsersFromCommentResponse.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.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..b9dca9b --- /dev/null +++ b/client/include/FastCommentsClient/model/GetCommentBanStatusResponse.h @@ -0,0 +1,89 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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; + + boost::optional m_EmailDomain; + + boost::optional m_CanIPBan; + +}; + + +} +} +} +} + +#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..f0b62ba --- /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.23.0-SNAPSHOT. + * 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 + +#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: + boost::optional m_Comment; + + 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..e894196 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetCommentsForUserResponse.h @@ -0,0 +1,77 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 e3ac3fb..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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/AddDomainConfig_200_response.h b/client/include/FastCommentsClient/model/GetDomainConfigResponse.h similarity index 75% rename from client/include/FastCommentsClient/model/AddDomainConfig_200_response.h rename to client/include/FastCommentsClient/model/GetDomainConfigResponse.h index 84d61a3..ba36dbe 100644 --- a/client/include/FastCommentsClient/model/AddDomainConfig_200_response.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigResponse.h @@ -4,27 +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.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * AddDomainConfig_200_response.h + * GetDomainConfigResponse.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfig_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfig_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 +34,12 @@ namespace model { -class AddDomainConfig_200_response +class GetDomainConfigResponse : public ModelBase { public: - AddDomainConfig_200_response(); - virtual ~AddDomainConfig_200_response(); + GetDomainConfigResponse(); + virtual ~GetDomainConfigResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -54,9 +54,19 @@ class AddDomainConfig_200_response ///////////////////////////////////////////// - /// AddDomainConfig_200_response members + /// GetDomainConfigResponse 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(); @@ -67,28 +77,18 @@ class AddDomainConfig_200_response 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); - std::shared_ptr getConfiguration() const; - bool configurationIsSet() const; - void unsetConfiguration(); - void setConfiguration(const std::shared_ptr& value); +protected: + boost::optional> m_Configuration; + boost::optional> m_Status; -protected: utility::string_t m_Reason; bool m_ReasonIsSet; utility::string_t m_Code; bool m_CodeIsSet; - boost::optional> m_Status; - - boost::optional> m_Configuration; - }; @@ -97,4 +97,4 @@ class AddDomainConfig_200_response } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfig_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 75% rename from client/include/FastCommentsClient/model/GetDomainConfigs_200_response.h rename to client/include/FastCommentsClient/model/GetDomainConfigsResponse.h index dd19663..7012530 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfigs_200_response.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigsResponse.h @@ -4,27 +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.23.0-SNAPSHOT. * 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 +34,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 +54,7 @@ class GetDomainConfigs_200_response ///////////////////////////////////////////// - /// GetDomainConfigs_200_response members + /// GetDomainConfigsResponse members std::shared_ptr getConfigurations() const; @@ -97,4 +97,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 74% rename from client/include/FastCommentsClient/model/GetDomainConfigs_200_response_anyOf.h rename to client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h index 9849f23..d71d311 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfigs_200_response_anyOf.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h @@ -4,19 +4,19 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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 @@ -31,12 +31,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 +51,7 @@ class GetDomainConfigs_200_response_anyOf ///////////////////////////////////////////// - /// GetDomainConfigs_200_response_anyOf members + /// GetDomainConfigsResponse_anyOf members std::shared_ptr getConfigurations() const; @@ -78,4 +78,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 75% rename from client/include/FastCommentsClient/model/GetDomainConfigs_200_response_anyOf_1.h rename to client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h index ebca39d..f7eab4d 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfigs_200_response_anyOf_1.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h @@ -4,19 +4,19 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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 @@ -32,12 +32,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 +52,7 @@ class GetDomainConfigs_200_response_anyOf_1 ///////////////////////////////////////////// - /// GetDomainConfigs_200_response_anyOf_1 members + /// GetDomainConfigsResponse_anyOf_1 members utility::string_t getReason() const; @@ -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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..8f2f253 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetGifsSearchResponse.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.23.0-SNAPSHOT. + * 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 + +#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..46f155b --- /dev/null +++ b/client/include/FastCommentsClient/model/GetGifsTrendingResponse.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.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 a46b5c8..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 417a1a6..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 2b3ec27..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..81ab995 --- /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.23.0-SNAPSHOT. + * 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 + +#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: + boost::optional m_NextCursor; + + 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 5ce86ce..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetSSOUsers_200_response.h b/client/include/FastCommentsClient/model/GetSSOUsersResponse.h similarity index 78% rename from client/include/FastCommentsClient/model/GetSSOUsers_200_response.h rename to client/include/FastCommentsClient/model/GetSSOUsersResponse.h index 6e05986..900264b 100644 --- a/client/include/FastCommentsClient/model/GetSSOUsers_200_response.h +++ b/client/include/FastCommentsClient/model/GetSSOUsersResponse.h @@ -4,19 +4,19 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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 @@ -34,12 +34,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 +54,7 @@ class GetSSOUsers_200_response ///////////////////////////////////////////// - /// GetSSOUsers_200_response members + /// GetSSOUsersResponse members std::vector> getUsers() const; @@ -83,4 +83,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 a24a128..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..0de5295 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetTenantManualBadgesResponse.h @@ -0,0 +1,87 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 24bc343..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..5f95654 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetTranslationsResponse.h @@ -0,0 +1,89 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..290ae76 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse.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.23.0-SNAPSHOT. + * 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 + +#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..23bce1a --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_profile.h @@ -0,0 +1,196 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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; + + boost::optional m_FirstCommentDate; + + utility::string_t m_IpHash; + bool m_IpHashIsSet; + + utility::string_t m_CountryFlag; + bool m_CountryFlagIsSet; + + utility::string_t m_CountryCode; + bool m_CountryCodeIsSet; + + boost::optional m_WebsiteUrl; + + 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; + + boost::optional m_AvatarSrc; + + utility::string_t m_DisplayName; + bool m_DisplayNameIsSet; + + utility::string_t m_Username; + bool m_UsernameIsSet; + + boost::optional m_CommenterEmail; + + boost::optional m_Email; + + boost::optional m_AnonUserId; + + boost::optional m_UserId; + +}; + + +} +} +} +} + +#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..ca5d637 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserManualBadgesResponse.h @@ -0,0 +1,87 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..b96d7f0 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserTrustFactorResponse.h @@ -0,0 +1,92 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..3746d77 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetV1PageLikes.h @@ -0,0 +1,109 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..011aa25 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse.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.23.0-SNAPSHOT. + * 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 + +#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..ac72d3f --- /dev/null +++ b/client/include/FastCommentsClient/model/GetV2PageReacts.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.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..317a09a --- /dev/null +++ b/client/include/FastCommentsClient/model/GifGetLargeResponse.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.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..ff41d45 --- /dev/null +++ b/client/include/FastCommentsClient/model/GifSearchInternalError.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.23.0-SNAPSHOT. + * 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 + +#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..ce49fd6 --- /dev/null +++ b/client/include/FastCommentsClient/model/GifSearchResponse.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.23.0-SNAPSHOT. + * 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 + +#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..90347ea --- /dev/null +++ b/client/include/FastCommentsClient/model/GifSearchResponse_images_inner_inner.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.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -106,6 +106,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; @@ -131,6 +139,8 @@ class HeaderAccountNotification utility::datetime m_CreatedAt; bool m_CreatedAtIsSet; + boost::optional m_Type; + }; diff --git a/client/include/FastCommentsClient/model/HeaderState.h b/client/include/FastCommentsClient/model/HeaderState.h index 3d91435..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 58c9f6d..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 c3ff727..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..0090d24 --- /dev/null +++ b/client/include/FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h @@ -0,0 +1,89 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 d73cae1..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -146,6 +146,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 +203,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -72,6 +72,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 +102,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 +127,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 55c0135..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 493ed56..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..f8c3bec --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPIChildCommentsResponse.h @@ -0,0 +1,87 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..57934fc --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPIComment.h @@ -0,0 +1,388 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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; + + boost::optional m_PageTitle; + + boost::optional m_UserId; + + boost::optional m_AnonUserId; + + utility::string_t m_CommenterName; + bool m_CommenterNameIsSet; + + boost::optional m_CommenterLink; + + utility::string_t m_CommentHTML; + bool m_CommentHTMLIsSet; + + boost::optional m_ParentId; + + boost::optional m_date; + + boost::optional m_LocalDateString; + + boost::optional m_Votes; + + boost::optional m_VotesUp; + + boost::optional m_VotesDown; + + boost::optional m_ExpireAt; + + bool m_Reviewed; + bool m_ReviewedIsSet; + + boost::optional m_AvatarSrc; + + 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; + + boost::optional m_Locale; + + bool m_IsBannedUser; + bool m_IsBannedUserIsSet; + + bool m_IsByAdmin; + bool m_IsByAdminIsSet; + + bool m_IsByModerator; + bool m_IsByModeratorIsSet; + + boost::optional m_IsPinned; + + boost::optional m_IsLocked; + + boost::optional m_FlagCount; + + boost::optional m_DisplayLabel; + + boost::optional>> m_Badges; + + 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..4d6dbf5 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPICommentLog.h @@ -0,0 +1,99 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..266a24e --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPICommentResponse.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.23.0-SNAPSHOT. + * 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 + +#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..ec94a51 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPICountCommentsResponse.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.23.0-SNAPSHOT. + * 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 + +#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..d552e20 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h @@ -0,0 +1,94 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..5ca66ba --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPIGetCommentsResponse.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.23.0-SNAPSHOT. + * 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 + +#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..d27355e --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPIGetLogsResponse.h @@ -0,0 +1,87 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..3a1a8d5 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationCommentSearchResponse.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.23.0-SNAPSHOT. + * 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 + +#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..21f07af --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationExportResponse.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.23.0-SNAPSHOT. + * 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 + +#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..91cc32c --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationExportStatusResponse.h @@ -0,0 +1,99 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..639aff0 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationFilter.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.23.0-SNAPSHOT. + * 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 + +#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..0054109 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationPageSearchProjected.h @@ -0,0 +1,99 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..1039310 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationPageSearchResponse.h @@ -0,0 +1,87 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..e497051 --- /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.23.0-SNAPSHOT. + * 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 + +#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; + + boost::optional m_LogoSrc100px; + +}; + + +} +} +} +} + +#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..bd25047 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationSiteSearchResponse.h @@ -0,0 +1,87 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..771d2b3 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationSuggestResponse.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.23.0-SNAPSHOT. + * 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 + +#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..d551a01 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationUserSearchProjected.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.23.0-SNAPSHOT. + * 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 + +#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; + + boost::optional m_DisplayName; + + boost::optional m_AvatarSrc; + +}; + + +} +} +} +} + +#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..fefa56e --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationUserSearchResponse.h @@ -0,0 +1,87 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 162fe09..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 db4e2f2..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 b4832c1..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..2d93b61 --- /dev/null +++ b/client/include/FastCommentsClient/model/PageUserEntry.h @@ -0,0 +1,99 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..2d26a45 --- /dev/null +++ b/client/include/FastCommentsClient/model/PageUsersInfoResponse.h @@ -0,0 +1,87 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..25968c5 --- /dev/null +++ b/client/include/FastCommentsClient/model/PageUsersOfflineResponse.h @@ -0,0 +1,102 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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: + boost::optional m_NextAfterUserId; + + boost::optional m_NextAfterName; + + 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..768c1d9 --- /dev/null +++ b/client/include/FastCommentsClient/model/PageUsersOnlineResponse.h @@ -0,0 +1,118 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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: + boost::optional m_NextAfterUserId; + + boost::optional m_NextAfterName; + + 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..82735c1 --- /dev/null +++ b/client/include/FastCommentsClient/model/PagesSortBy.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.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..69d8b97 --- /dev/null +++ b/client/include/FastCommentsClient/model/PatchDomainConfigResponse.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.23.0-SNAPSHOT. + * 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 + +#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: + boost::optional> m_Configuration; + + boost::optional> m_Status; + + 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 d667fc1..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 e73796c..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..6f2d51c --- /dev/null +++ b/client/include/FastCommentsClient/model/PostRemoveCommentResponse.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.23.0-SNAPSHOT. + * 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 + +#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..166d06e --- /dev/null +++ b/client/include/FastCommentsClient/model/PreBanSummary.h @@ -0,0 +1,94 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 b9bc2f9..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 289cf87..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 7d69451..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 a7d4490..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 7990015..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 bdc39a3..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 1a1e63c..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 5f39e72..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 0b8cde8..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..d7454e5 --- /dev/null +++ b/client/include/FastCommentsClient/model/PublicPage.h @@ -0,0 +1,107 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..e6625e0 --- /dev/null +++ b/client/include/FastCommentsClient/model/PutDomainConfigResponse.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.23.0-SNAPSHOT. + * 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 + +#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: + boost::optional> m_Configuration; + + boost::optional> m_Status; + + 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 82e8d1a..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 3ffbe50..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 8e9e021..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 cb5b126..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 85de6cd..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 05c92e9..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 a387456..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 59bb3ec..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 9fbd95c..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 cf4eba3..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 4c212fd..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 a70321a..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -66,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 new file mode 100644 index 0000000..715ca92 --- /dev/null +++ b/client/include/FastCommentsClient/model/RemoveCommentActionResponse.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.23.0-SNAPSHOT. + * 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 + +#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..c2c964f --- /dev/null +++ b/client/include/FastCommentsClient/model/RemoveUserBadgeResponse.h @@ -0,0 +1,87 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 6894560..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 4f59e0f..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 63f4693..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 2a3d65d..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 016948a..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 28d0ede..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 f6799f5..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 e11b15b..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SaveComment_200_response.h b/client/include/FastCommentsClient/model/SaveCommentsBulkResponse.h similarity index 84% rename from client/include/FastCommentsClient/model/SaveComment_200_response.h rename to client/include/FastCommentsClient/model/SaveCommentsBulkResponse.h index 3958023..c1cc946 100644 --- a/client/include/FastCommentsClient/model/SaveComment_200_response.h +++ b/client/include/FastCommentsClient/model/SaveCommentsBulkResponse.h @@ -4,33 +4,33 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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 +38,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 +63,7 @@ class SaveComment_200_response ///////////////////////////////////////////// - /// SaveComment_200_response members + /// SaveCommentsBulkResponse members std::shared_ptr getStatus() const; @@ -71,10 +71,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,7 +129,7 @@ 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; @@ -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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 89c93b9..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..e1b40bd --- /dev/null +++ b/client/include/FastCommentsClient/model/SearchUsersResult.h @@ -0,0 +1,99 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..60ea175 --- /dev/null +++ b/client/include/FastCommentsClient/model/SetCommentApprovedResponse.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.23.0-SNAPSHOT. + * 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 + +#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..1b85cc1 --- /dev/null +++ b/client/include/FastCommentsClient/model/SetCommentTextParams.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.23.0-SNAPSHOT. + * 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 + +#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..36a496a --- /dev/null +++ b/client/include/FastCommentsClient/model/SetCommentTextResponse.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.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..3512f9e --- /dev/null +++ b/client/include/FastCommentsClient/model/SetUserTrustFactorResponse.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.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 612e86c..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 943a3b7..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 fe9de1e..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..51372cc --- /dev/null +++ b/client/include/FastCommentsClient/model/TenantBadge.h @@ -0,0 +1,227 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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; + + boost::optional m_UrlId; + + 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; + + boost::optional m_DisplaySrc; + + boost::optional m_BackgroundColor; + + boost::optional m_BorderColor; + + boost::optional m_TextColor; + + boost::optional m_CssClass; + + boost::optional m_VeteranUserThresholdMillis; + + bool m_IsAwaitingReprocess; + bool m_IsAwaitingReprocessIsSet; + + bool m_IsAwaitingDeletion; + bool m_IsAwaitingDeletionIsSet; + + boost::optional m_ReplacesBadgeId; + +}; + + +} +} +} +} + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 a817db4..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -75,6 +75,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 +295,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 +340,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,6 +374,9 @@ class TenantPackage utility::datetime m_CreatedAt; bool m_CreatedAtIsSet; + utility::string_t m_TemplateId; + bool m_TemplateIdIsSet; + boost::optional m_MonthlyCostUSD; boost::optional m_YearlyCostUSD; @@ -464,6 +502,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 +529,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 aa52120..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 6554cbf..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 919b5a1..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 ced3ed7..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 3cdd348..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 46ab827..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 9f65d5e..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 757a09a..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 b4c684d..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 bd29696..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 57e74c2..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 dcc8e83..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 6b3ea4e..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 c9f7b95..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 9c73ee2..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 69c9dcb..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 c360bde..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 b6bae73..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 4a3a73d..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..d3d8b8b --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h @@ -0,0 +1,112 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..322bc45 --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h @@ -0,0 +1,112 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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 53% rename from client/include/FastCommentsClient/model/UpdateUserNotificationStatus_200_response.h rename to client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h index 7fc5853..32868fd 100644 --- a/client/include/FastCommentsClient/model/UpdateUserNotificationStatus_200_response.h +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h @@ -4,19 +4,19 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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 @@ -24,9 +24,7 @@ #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 +33,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 +55,7 @@ class UpdateUserNotificationStatus_200_response ///////////////////////////////////////////// - /// UpdateUserNotificationStatus_200_response members + /// UpdateUserNotificationStatusResponse members enum class NoteEnum { @@ -90,41 +87,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 +101,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 +109,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 6667404..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,6 +24,7 @@ #include "FastCommentsClient/ModelBase.h" #include "FastCommentsClient/model/DigestEmailFrequency.h" +#include "FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h" #include #include @@ -252,6 +253,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(); @@ -465,6 +471,9 @@ class User double m_AdminNotificationFrequency; bool m_AdminNotificationFrequencyIsSet; + std::shared_ptr m_AgentApprovalNotificationFrequency; + bool m_AgentApprovalNotificationFrequencyIsSet; + utility::datetime m_LastTenantNotificationSentDate; bool m_LastTenantNotificationSentDateIsSet; diff --git a/client/include/FastCommentsClient/model/UserBadge.h b/client/include/FastCommentsClient/model/UserBadge.h index 1e13994..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 f4d6b06..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 60c9d83..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 0e63a5f..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 d58a79d..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 ce7c40e..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 a72e6e4..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 2a6ccf0..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 9b013bc..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 2a661d9..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 a3dfc54..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 new file mode 100644 index 0000000..d4a1c81 --- /dev/null +++ b/client/include/FastCommentsClient/model/UsersListLocation.h @@ -0,0 +1,89 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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 + +#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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 dc00cdb..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 7aa4154..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated 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 4c5989f..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.19.0-SNAPSHOT. + * NOTE: This class is 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 8f3e08f..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.19.0-SNAPSHOT. + * NOTE: This class is 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 9639cdb..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.19.0-SNAPSHOT. + * NOTE: This class is 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 e1d8e4b..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.19.0-SNAPSHOT. + * NOTE: This class is 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 e9dc5f7..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.19.0-SNAPSHOT. + * NOTE: This class is 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 2e09e27..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.19.0-SNAPSHOT. + * NOTE: This class is 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 c85bbf1..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.19.0-SNAPSHOT. + * NOTE: This class is 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 40f5adf..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.19.0-SNAPSHOT. + * NOTE: This class is 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 84fc7d9..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.19.0-SNAPSHOT. + * NOTE: This class is 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 85e4a42..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.19.0-SNAPSHOT. + * NOTE: This class is 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 f9d816e..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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 @@ -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 { @@ -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 { @@ -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")) { @@ -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 @@ -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 { @@ -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 @@ -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 @@ -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 @@ -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 { @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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")) { @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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")); } @@ -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 { @@ -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 { @@ -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")) { @@ -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 { @@ -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 { @@ -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 { @@ -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")) { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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; @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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")) { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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")) { @@ -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 { @@ -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")) { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 @@ -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 { @@ -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")) { @@ -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 @@ -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")) { @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 { @@ -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 { @@ -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 { @@ -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 @@ -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 { @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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")) { @@ -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 @@ -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 @@ -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 @@ -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 @@ -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..a04e713 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..6f2d737 --- /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.23.0-SNAPSHOT. + * 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..a24851f --- /dev/null +++ b/client/src/model/APIBanUserChangedValues.cpp @@ -0,0 +1,696 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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_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_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_UserId.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + } + if(m_Email.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); + } + if(m_Username.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username.get()); + } + if(m_IpHash.has_value()) + { + + 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_BannedUntil.has_value()) + { + + 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); + } + + 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_UserId.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + } + if(m_Email.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); + } + if(m_Username.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("username")), m_Username.get())); + } + if(m_IpHash.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash.get())); + } + 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_BannedUntil.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil.get())); + } + 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.get(); +} + + +void APIBanUserChangedValues::setUserId(const utility::string_t& value) +{ + m_UserId = value; +} + +bool APIBanUserChangedValues::userIdIsSet() const +{ + return m_UserId.has_value(); +} + +void APIBanUserChangedValues::unsetUserId() +{ + m_UserId.reset(); +} +utility::string_t APIBanUserChangedValues::getEmail() const +{ + return m_Email.get(); +} + + +void APIBanUserChangedValues::setEmail(const utility::string_t& value) +{ + m_Email = value; +} + +bool APIBanUserChangedValues::emailIsSet() const +{ + return m_Email.has_value(); +} + +void APIBanUserChangedValues::unsetEmail() +{ + m_Email.reset(); +} +utility::string_t APIBanUserChangedValues::getUsername() const +{ + return m_Username.get(); +} + + +void APIBanUserChangedValues::setUsername(const utility::string_t& value) +{ + m_Username = value; +} + +bool APIBanUserChangedValues::usernameIsSet() const +{ + return m_Username.has_value(); +} + +void APIBanUserChangedValues::unsetUsername() +{ + m_Username.reset(); +} +utility::string_t APIBanUserChangedValues::getIpHash() const +{ + return m_IpHash.get(); +} + + +void APIBanUserChangedValues::setIpHash(const utility::string_t& value) +{ + m_IpHash = value; +} + +bool APIBanUserChangedValues::ipHashIsSet() const +{ + return m_IpHash.has_value(); +} + +void APIBanUserChangedValues::unsetIpHash() +{ + m_IpHash.reset(); +} +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.get(); +} + + +void APIBanUserChangedValues::setBannedUntil(const utility::datetime& value) +{ + m_BannedUntil = value; +} + +bool APIBanUserChangedValues::bannedUntilIsSet() const +{ + return m_BannedUntil.has_value(); +} + +void APIBanUserChangedValues::unsetBannedUntil() +{ + m_BannedUntil.reset(); +} +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..ba994b4 --- /dev/null +++ b/client/src/model/APIBannedUser.cpp @@ -0,0 +1,696 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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_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_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_UserId.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + } + if(m_Email.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); + } + if(m_Username.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username.get()); + } + if(m_IpHash.has_value()) + { + + 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_BannedUntil.has_value()) + { + + 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); + } + + 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_UserId.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + } + if(m_Email.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); + } + if(m_Username.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("username")), m_Username.get())); + } + if(m_IpHash.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash.get())); + } + 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_BannedUntil.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil.get())); + } + 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.get(); +} + + +void APIBannedUser::setUserId(const utility::string_t& value) +{ + m_UserId = value; +} + +bool APIBannedUser::userIdIsSet() const +{ + return m_UserId.has_value(); +} + +void APIBannedUser::unsetUserId() +{ + m_UserId.reset(); +} +utility::string_t APIBannedUser::getEmail() const +{ + return m_Email.get(); +} + + +void APIBannedUser::setEmail(const utility::string_t& value) +{ + m_Email = value; +} + +bool APIBannedUser::emailIsSet() const +{ + return m_Email.has_value(); +} + +void APIBannedUser::unsetEmail() +{ + m_Email.reset(); +} +utility::string_t APIBannedUser::getUsername() const +{ + return m_Username.get(); +} + + +void APIBannedUser::setUsername(const utility::string_t& value) +{ + m_Username = value; +} + +bool APIBannedUser::usernameIsSet() const +{ + return m_Username.has_value(); +} + +void APIBannedUser::unsetUsername() +{ + m_Username.reset(); +} +utility::string_t APIBannedUser::getIpHash() const +{ + return m_IpHash.get(); +} + + +void APIBannedUser::setIpHash(const utility::string_t& value) +{ + m_IpHash = value; +} + +bool APIBannedUser::ipHashIsSet() const +{ + return m_IpHash.has_value(); +} + +void APIBannedUser::unsetIpHash() +{ + m_IpHash.reset(); +} +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.get(); +} + + +void APIBannedUser::setBannedUntil(const utility::datetime& value) +{ + m_BannedUntil = value; +} + +bool APIBannedUser::bannedUntilIsSet() const +{ + return m_BannedUntil.has_value(); +} + +void APIBannedUser::unsetBannedUntil() +{ + m_BannedUntil.reset(); +} +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..42fb5a7 --- /dev/null +++ b/client/src/model/APIBannedUserWithMultiMatchInfo.cpp @@ -0,0 +1,502 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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_BanType = utility::conversions::to_string_t(""); + m_BanTypeIsSet = 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_UserId.has_value()) + { + + 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_Email.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); + } + if(m_IpHash.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash.get()); + } + if(m_BannedUntil.has_value()) + { + + 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); + } + + 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_UserId.has_value()) + { + 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_Email.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); + } + if(m_IpHash.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash.get())); + } + if(m_BannedUntil.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil.get())); + } + 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.get(); +} + + +void APIBannedUserWithMultiMatchInfo::setUserId(const utility::string_t& value) +{ + m_UserId = value; +} + +bool APIBannedUserWithMultiMatchInfo::userIdIsSet() const +{ + return m_UserId.has_value(); +} + +void APIBannedUserWithMultiMatchInfo::unsetUserId() +{ + m_UserId.reset(); +} +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.get(); +} + + +void APIBannedUserWithMultiMatchInfo::setEmail(const utility::string_t& value) +{ + m_Email = value; +} + +bool APIBannedUserWithMultiMatchInfo::emailIsSet() const +{ + return m_Email.has_value(); +} + +void APIBannedUserWithMultiMatchInfo::unsetEmail() +{ + m_Email.reset(); +} +utility::string_t APIBannedUserWithMultiMatchInfo::getIpHash() const +{ + return m_IpHash.get(); +} + + +void APIBannedUserWithMultiMatchInfo::setIpHash(const utility::string_t& value) +{ + m_IpHash = value; +} + +bool APIBannedUserWithMultiMatchInfo::ipHashIsSet() const +{ + return m_IpHash.has_value(); +} + +void APIBannedUserWithMultiMatchInfo::unsetIpHash() +{ + m_IpHash.reset(); +} +utility::datetime APIBannedUserWithMultiMatchInfo::getBannedUntil() const +{ + return m_BannedUntil.get(); +} + + +void APIBannedUserWithMultiMatchInfo::setBannedUntil(const utility::datetime& value) +{ + m_BannedUntil = value; +} + +bool APIBannedUserWithMultiMatchInfo::bannedUntilIsSet() const +{ + return m_BannedUntil.has_value(); +} + +void APIBannedUserWithMultiMatchInfo::unsetBannedUntil() +{ + m_BannedUntil.reset(); +} +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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,8 +20,8 @@ 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_Approved = false; @@ -85,10 +85,10 @@ 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) { @@ -357,9 +357,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,9 +950,9 @@ 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) { @@ -1173,10 +1173,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 +1497,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 { diff --git a/client/src/model/APICommentBase.cpp b/client/src/model/APICommentBase.cpp index 656bf86..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,8 +20,8 @@ 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_Approved = false; @@ -85,10 +85,10 @@ 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) { @@ -357,9 +357,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,9 +950,9 @@ 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) { @@ -1173,10 +1173,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 +1497,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 { diff --git a/client/src/model/APICommentBase_meta.cpp b/client/src/model/APICommentBase_meta.cpp index 8f925b9..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..f02c17b --- /dev/null +++ b/client/src/model/APICommentCommonBannedUser.cpp @@ -0,0 +1,454 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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_BanType = utility::conversions::to_string_t(""); + m_BanTypeIsSet = 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_UserId.has_value()) + { + + 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_Email.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); + } + if(m_IpHash.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash.get()); + } + if(m_BannedUntil.has_value()) + { + + 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); + } + + 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_UserId.has_value()) + { + 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_Email.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); + } + if(m_IpHash.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash.get())); + } + if(m_BannedUntil.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil.get())); + } + 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.get(); +} + + +void APICommentCommonBannedUser::setUserId(const utility::string_t& value) +{ + m_UserId = value; +} + +bool APICommentCommonBannedUser::userIdIsSet() const +{ + return m_UserId.has_value(); +} + +void APICommentCommonBannedUser::unsetUserId() +{ + m_UserId.reset(); +} +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.get(); +} + + +void APICommentCommonBannedUser::setEmail(const utility::string_t& value) +{ + m_Email = value; +} + +bool APICommentCommonBannedUser::emailIsSet() const +{ + return m_Email.has_value(); +} + +void APICommentCommonBannedUser::unsetEmail() +{ + m_Email.reset(); +} +utility::string_t APICommentCommonBannedUser::getIpHash() const +{ + return m_IpHash.get(); +} + + +void APICommentCommonBannedUser::setIpHash(const utility::string_t& value) +{ + m_IpHash = value; +} + +bool APICommentCommonBannedUser::ipHashIsSet() const +{ + return m_IpHash.has_value(); +} + +void APICommentCommonBannedUser::unsetIpHash() +{ + m_IpHash.reset(); +} +utility::datetime APICommentCommonBannedUser::getBannedUntil() const +{ + return m_BannedUntil.get(); +} + + +void APICommentCommonBannedUser::setBannedUntil(const utility::datetime& value) +{ + m_BannedUntil = value; +} + +bool APICommentCommonBannedUser::bannedUntilIsSet() const +{ + return m_BannedUntil.has_value(); +} + +void APICommentCommonBannedUser::unsetBannedUntil() +{ + m_BannedUntil.reset(); +} +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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 28a80eb..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 3d8317f..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 0596443..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 52890c9..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 7ee6a7c..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 0a9fcdb..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ce711bd..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 3dc17de..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 04f043e..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 f099ace..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..a1a7aa1 --- /dev/null +++ b/client/src/model/APIModerateGetUserBanPreferencesResponse.cpp @@ -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.23.0-SNAPSHOT. + * 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_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_Preferences.has_value()) + { + + 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); + } + + 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_Preferences.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("preferences")), m_Preferences.get())); + } + 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.get(); +} + + +void APIModerateGetUserBanPreferencesResponse::setPreferences(const std::shared_ptr& value) +{ + m_Preferences = value; +} + +bool APIModerateGetUserBanPreferencesResponse::preferencesIsSet() const +{ + return m_Preferences.has_value(); +} + +void APIModerateGetUserBanPreferencesResponse::unsetPreferences() +{ + m_Preferences.reset(); +} +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..159a67d --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 4fa5d56..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SaveCommentResponse.cpp b/client/src/model/APISaveCommentResponse.cpp similarity index 77% rename from client/src/model/SaveCommentResponse.cpp rename to client/src/model/APISaveCommentResponse.cpp index 9b1382c..a0036ed 100644 --- a/client/src/model/SaveCommentResponse.cpp +++ b/client/src/model/APISaveCommentResponse.cpp @@ -4,37 +4,37 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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_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) @@ -61,7 +61,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 +80,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 +111,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("."))) @@ -136,7 +136,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 +153,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 +173,86 @@ 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(); } -void SaveCommentResponse::setUser(const std::shared_ptr& value) +void APISaveCommentResponse::setUser(const std::shared_ptr& value) { m_User = value; } -bool SaveCommentResponse::userIsSet() const +bool APISaveCommentResponse::userIsSet() const { return m_User.has_value(); } -void SaveCommentResponse::unsetUser() +void APISaveCommentResponse::unsetUser() { m_User.reset(); } -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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 792d989..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 f0b0407..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 7698a40..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ba2b86f..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 f3155b8..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 54844a2..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 cf6b94b..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetDomainConfig_200_response.cpp b/client/src/model/AddDomainConfigResponse.cpp similarity index 78% rename from client/src/model/GetDomainConfig_200_response.cpp rename to client/src/model/AddDomainConfigResponse.cpp index 85b211b..e46f268 100644 --- a/client/src/model/GetDomainConfig_200_response.cpp +++ b/client/src/model/AddDomainConfigResponse.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.23.0-SNAPSHOT. * 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; @@ -26,107 +26,99 @@ GetDomainConfig_200_response::GetDomainConfig_200_response() m_CodeIsSet = 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()) + if(m_ReasonIsSet) { - val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration.get()); + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } - if(m_Status.has_value()) + if(m_CodeIsSet) { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } - if(m_ReasonIsSet) + if(m_Status.has_value()) { - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); } - if(m_CodeIsSet) + if(m_Configuration.has_value()) { - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration.get()); } 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 +127,17 @@ void GetDomainConfig_200_response::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); } + if(m_Status.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); + } + if(m_Configuration.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration.get())); + } } -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 +146,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 +158,103 @@ 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.get(); } -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; } -bool GetDomainConfig_200_response::reasonIsSet() const +bool AddDomainConfigResponse::statusIsSet() const { - return m_ReasonIsSet; + return m_Status.has_value(); } -void GetDomainConfig_200_response::unsetReason() +void AddDomainConfigResponse::unsetStatus() { - m_ReasonIsSet = false; + m_Status.reset(); } -utility::string_t GetDomainConfig_200_response::getCode() const +std::shared_ptr AddDomainConfigResponse::getConfiguration() const { - return m_Code; + return m_Configuration.get(); } -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; } -bool GetDomainConfig_200_response::codeIsSet() const +bool AddDomainConfigResponse::configurationIsSet() const { - return m_CodeIsSet; + return m_Configuration.has_value(); } -void GetDomainConfig_200_response::unsetCode() +void AddDomainConfigResponse::unsetConfiguration() { - m_CodeIsSet = false; + m_Configuration.reset(); } } diff --git a/client/src/model/AddDomainConfig_200_response_anyOf.cpp b/client/src/model/AddDomainConfigResponse_anyOf.cpp similarity index 73% rename from client/src/model/AddDomainConfig_200_response_anyOf.cpp rename to client/src/model/AddDomainConfigResponse_anyOf.cpp index 9dada31..3871926 100644 --- a/client/src/model/AddDomainConfig_200_response_anyOf.cpp +++ b/client/src/model/AddDomainConfigResponse_anyOf.cpp @@ -4,34 +4,34 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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() { } -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()) @@ -48,7 +48,7 @@ web::json::value AddDomainConfig_200_response_anyOf::toJson() const 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,7 +76,7 @@ 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("."))) @@ -93,7 +93,7 @@ void AddDomainConfig_200_response_anyOf::toMultipart(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,43 +118,43 @@ 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(); } -void AddDomainConfig_200_response_anyOf::setConfiguration(const std::shared_ptr& value) +void AddDomainConfigResponse_anyOf::setConfiguration(const std::shared_ptr& value) { m_Configuration = value; } -bool AddDomainConfig_200_response_anyOf::configurationIsSet() const +bool AddDomainConfigResponse_anyOf::configurationIsSet() const { return m_Configuration.has_value(); } -void AddDomainConfig_200_response_anyOf::unsetConfiguration() +void AddDomainConfigResponse_anyOf::unsetConfiguration() { m_Configuration.reset(); } -std::shared_ptr AddDomainConfig_200_response_anyOf::getStatus() const +std::shared_ptr AddDomainConfigResponse_anyOf::getStatus() const { return m_Status.get(); } -void AddDomainConfig_200_response_anyOf::setStatus(const std::shared_ptr& value) +void AddDomainConfigResponse_anyOf::setStatus(const std::shared_ptr& value) { m_Status = value; } -bool AddDomainConfig_200_response_anyOf::statusIsSet() const +bool AddDomainConfigResponse_anyOf::statusIsSet() const { return m_Status.has_value(); } -void AddDomainConfig_200_response_anyOf::unsetStatus() +void AddDomainConfigResponse_anyOf::unsetStatus() { m_Status.reset(); } 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 9031b34..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..7cb8e45 --- /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.23.0-SNAPSHOT. + * 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..b30cd1b --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..c7f60c2 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..a0fc156 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 5a46c2e..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 13f75d9..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 b8d5f35..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 4142e0c..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 d85c619..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 d281943..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 5db6d7c..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..c08505d --- /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.23.0-SNAPSHOT. + * 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..c348242 --- /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.23.0-SNAPSHOT. + * 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..eb26181 --- /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.23.0-SNAPSHOT. + * 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..356faf7 --- /dev/null +++ b/client/src/model/BannedUserMatch.cpp @@ -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.23.0-SNAPSHOT. + * 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; +} + +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_MatchedOnValue.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("matchedOnValue"))] = ModelBase::toJson(m_MatchedOnValue.get()); + } + + 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_MatchedOnValue.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("matchedOnValue")), m_MatchedOnValue.get())); + } +} + +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.get(); +} + + +void BannedUserMatch::setMatchedOnValue(const std::shared_ptr& value) +{ + m_MatchedOnValue = value; +} + +bool BannedUserMatch::matchedOnValueIsSet() const +{ + return m_MatchedOnValue.has_value(); +} + +void BannedUserMatch::unsetMatchedOnValue() +{ + m_MatchedOnValue.reset(); +} + +} +} +} +} + + diff --git a/client/src/model/BannedUserMatchType.cpp b/client/src/model/BannedUserMatchType.cpp new file mode 100644 index 0000000..f4be834 --- /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.23.0-SNAPSHOT. + * 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..a23214a 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.23.0-SNAPSHOT. * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ae3a8bb..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..6f60c71 --- /dev/null +++ b/client/src/model/BuildModerationFilterParams.cpp @@ -0,0 +1,373 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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; + m_AdditionalPropertiesIsSet = 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); + } + // Serialize additional properties + if(m_AdditionalPropertiesIsSet) + { + for(const auto& item : m_AdditionalProperties) + { + val[item.first] = item.second; + } + } + + 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); + + } + } + // 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; +} + +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; +} + + +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 new file mode 100644 index 0000000..53eaf89 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 b791f13..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ba2fb60..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 63597a4..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 09a2dcf..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -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 78% rename from client/src/model/PatchHashTag_200_response.cpp rename to client/src/model/BulkCreateHashTagsResponse_results_inner.cpp index 8d52f3c..22cc100 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.23.0-SNAPSHOT. * 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,16 +37,16 @@ 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) @@ -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..0ed4a29 --- /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.23.0-SNAPSHOT. + * 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..f8e9c49 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 b0b90b2..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 e7cf777..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ef47f80..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -54,6 +54,8 @@ CommentData::CommentData() m_QuestionValuesIsSet = false; m_Tos = false; m_TosIsSet = false; + m_BotId = utility::conversions::to_string_t(""); + m_BotIdIsSet = false; } CommentData::~CommentData() @@ -193,6 +195,11 @@ web::json::value CommentData::toJson() const 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 +465,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 +482,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; } @@ -585,6 +603,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 +758,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 +768,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; } @@ -1221,13 +1249,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 +1290,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 9d449a0..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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; @@ -177,6 +179,11 @@ web::json::value CommentLogData::toJson() const 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) { @@ -506,6 +513,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 +936,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)); @@ -1143,6 +1165,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 +1690,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; diff --git a/client/src/model/CommentLogEntry.cpp b/client/src/model/CommentLogEntry.cpp index 7d914b6..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 9b8e0a2..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 f0e3860..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 adeb59a..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ae059a8..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 b84d6b7..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 b1e1a31..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 4dfa003..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 7d9027b..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 d230692..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..0fbb8f5 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 7d29c92..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 60ab2b1..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 7a8eecf..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -54,6 +54,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(""); @@ -213,6 +215,11 @@ web::json::value CreateCommentParams::toJson() const 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) { @@ -528,7 +535,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 +552,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"))); @@ -765,6 +783,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 +978,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 +988,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; @@ -1501,13 +1529,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 +1570,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 f9f8b08..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 51a90e9..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 97df831..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ca34fb8..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 e112713..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 18b6090..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 c82e339..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 310b993..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ac45234..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -93,10 +93,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; @@ -328,15 +328,15 @@ web::json::value CreateTenantPackageBody::toJson() const 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) { @@ -826,25 +826,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); } } @@ -1088,13 +1088,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 +1377,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")))) { @@ -2250,45 +2250,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 b8c8d11..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 3ea994b..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 efe535f..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..23db6e1 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -93,6 +93,8 @@ CustomConfigParameters::CustomConfigParameters() m_NoCustomConfigIsSet = false; m_NoImageUploads = false; m_NoImageUploadsIsSet = false; + m_AllowEmbeds = false; + m_AllowEmbedsIsSet = false; m_NoStyles = false; m_NoStylesIsSet = false; m_Readonly = false; @@ -101,6 +103,8 @@ CustomConfigParameters::CustomConfigParameters() m_NoNewRootCommentsIsSet = false; m_RequireSSO = false; m_RequireSSOIsSet = false; + m_EnableFChat = false; + m_EnableFChatIsSet = false; m_EnableResizeHandle = false; m_EnableResizeHandleIsSet = false; m_ShowBadgesInTopBar = false; @@ -129,6 +133,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(""); @@ -413,6 +420,16 @@ web::json::value CustomConfigParameters::toJson() const 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_AllowedEmbedDomains.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("allowedEmbedDomains"))] = ModelBase::toJson(m_AllowedEmbedDomains.get()); + } if(m_NoStylesIsSet) { @@ -438,6 +455,11 @@ web::json::value CustomConfigParameters::toJson() const 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) { @@ -538,6 +560,16 @@ web::json::value CustomConfigParameters::toJson() const 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) { @@ -1147,6 +1179,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 +1256,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 +1487,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"))); @@ -1706,6 +1793,14 @@ void CustomConfigParameters::toMultipart(std::shared_ptr mult { 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_AllowedEmbedDomains.has_value()) + { + 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)); @@ -1726,6 +1821,10 @@ 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)); @@ -1806,6 +1905,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 +2260,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 +2302,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 +2428,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; @@ -3384,6 +3521,46 @@ 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.get(); +} + + +void CustomConfigParameters::setAllowedEmbedDomains(const std::vector& value) +{ + m_AllowedEmbedDomains = value; +} + +bool CustomConfigParameters::allowedEmbedDomainsIsSet() const +{ + return m_AllowedEmbedDomains.has_value(); +} + +void CustomConfigParameters::unsetAllowedEmbedDomains() +{ + m_AllowedEmbedDomains.reset(); +} bool CustomConfigParameters::isNoStyles() const { return m_NoStyles; @@ -3483,6 +3660,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; @@ -3892,6 +4089,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 9004dc6..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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 69% rename from client/src/model/DeleteDomainConfig_200_response.cpp rename to client/src/model/DeleteDomainConfigResponse.cpp index 169095a..a2c9877 100644 --- a/client/src/model/DeleteDomainConfig_200_response.cpp +++ b/client/src/model/DeleteDomainConfigResponse.cpp @@ -4,34 +4,34 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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() { } -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()) @@ -43,7 +43,7 @@ web::json::value DeleteDomainConfig_200_response::toJson() const 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,7 +60,7 @@ 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("."))) @@ -73,7 +73,7 @@ void DeleteDomainConfig_200_response::toMultipart(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,23 +92,23 @@ bool DeleteDomainConfig_200_response::fromMultiPart(std::shared_ptr DeleteDomainConfig_200_response::getStatus() const +std::shared_ptr DeleteDomainConfigResponse::getStatus() const { return m_Status.get(); } -void DeleteDomainConfig_200_response::setStatus(const std::shared_ptr& value) +void DeleteDomainConfigResponse::setStatus(const std::shared_ptr& value) { m_Status = value; } -bool DeleteDomainConfig_200_response::statusIsSet() const +bool DeleteDomainConfigResponse::statusIsSet() const { return m_Status.has_value(); } -void DeleteDomainConfig_200_response::unsetStatus() +void DeleteDomainConfigResponse::unsetStatus() { m_Status.reset(); } 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..f203eb8 100644 --- a/client/src/model/DeleteFeedPostPublic_200_response_anyOf.cpp +++ b/client/src/model/DeleteFeedPostPublicResponse.cpp @@ -4,35 +4,35 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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) @@ -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..982230b 100644 --- a/client/src/model/DeleteHashTag_request.cpp +++ b/client/src/model/DeleteHashTagRequestBody.cpp @@ -4,36 +4,36 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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) @@ -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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 36b44e6..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 6aa814a..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 9b9a557..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 761dc72..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 f8aabec..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ce8faca..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 1bd22ba..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 441397a..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -95,6 +95,8 @@ FComment::FComment() m_EditKeyIsSet = false; m_TosAcceptedAt = utility::datetime(); m_TosAcceptedAtIsSet = false; + m_BotId = utility::conversions::to_string_t(""); + m_BotIdIsSet = false; } FComment::~FComment() @@ -469,6 +471,11 @@ web::json::value FComment::toJson() const 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 +1275,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; } @@ -1566,6 +1584,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 +2031,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; } @@ -3458,6 +3486,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 dad1f27..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 942a0c7..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 5a9b9ca..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 c9d0260..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 4e41b20..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ba44c90..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 f6b7735..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 51765eb..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..56586c5 --- /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.23.0-SNAPSHOT. + * 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..5d6c460 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..0923bc2 --- /dev/null +++ b/client/src/model/GetCommentBanStatusResponse.cpp @@ -0,0 +1,215 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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; +} + +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_EmailDomain.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("emailDomain"))] = ModelBase::toJson(m_EmailDomain.get()); + } + if(m_CanIPBan.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("canIPBan"))] = ModelBase::toJson(m_CanIPBan.get()); + } + + 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_EmailDomain.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailDomain")), m_EmailDomain.get())); + } + if(m_CanIPBan.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("canIPBan")), m_CanIPBan.get())); + } +} + +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.get(); +} + + +void GetCommentBanStatusResponse::setEmailDomain(const utility::string_t& value) +{ + m_EmailDomain = value; +} + +bool GetCommentBanStatusResponse::emailDomainIsSet() const +{ + return m_EmailDomain.has_value(); +} + +void GetCommentBanStatusResponse::unsetEmailDomain() +{ + m_EmailDomain.reset(); +} +bool GetCommentBanStatusResponse::isCanIPBan() const +{ + return m_CanIPBan.get(); +} + +void GetCommentBanStatusResponse::setCanIPBan(bool value) +{ + m_CanIPBan = value; +} + +bool GetCommentBanStatusResponse::canIPBanIsSet() const +{ + return m_CanIPBan.has_value(); +} + +void GetCommentBanStatusResponse::unsetCanIPBan() +{ + m_CanIPBan.reset(); +} + +} +} +} +} + + diff --git a/client/src/model/GetCommentTextResponse.cpp b/client/src/model/GetCommentTextResponse.cpp new file mode 100644 index 0000000..298c47f --- /dev/null +++ b/client/src/model/GetCommentTextResponse.cpp @@ -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.23.0-SNAPSHOT. + * 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_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_Comment.has_value()) + { + + 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); + } + + 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_Comment.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment.get())); + } + 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.get(); +} + + +void GetCommentTextResponse::setComment(const utility::string_t& value) +{ + m_Comment = value; +} + +bool GetCommentTextResponse::commentIsSet() const +{ + return m_Comment.has_value(); +} + +void GetCommentTextResponse::unsetComment() +{ + m_Comment.reset(); +} +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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..75031ce --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 0795c72..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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 78% rename from client/src/model/AddDomainConfig_200_response.cpp rename to client/src/model/GetDomainConfigResponse.cpp index 77f8614..980d93f 100644 --- a/client/src/model/AddDomainConfig_200_response.cpp +++ b/client/src/model/GetDomainConfigResponse.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.23.0-SNAPSHOT. * 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_Reason = utility::conversions::to_string_t(""); m_ReasonIsSet = false; @@ -26,118 +26,118 @@ AddDomainConfig_200_response::AddDomainConfig_200_response() 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_Configuration.has_value()) { - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration.get()); } - if(m_CodeIsSet) + if(m_Status.has_value()) { - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); } - 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) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) + if(m_Configuration.has_value()) { - 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("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_Configuration.has_value()) + if(m_ReasonIsSet) { - 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("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + 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 +146,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 +170,91 @@ 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.get(); } -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; } -bool AddDomainConfig_200_response::reasonIsSet() const +bool GetDomainConfigResponse::configurationIsSet() const { - return m_ReasonIsSet; + return m_Configuration.has_value(); } -void AddDomainConfig_200_response::unsetReason() +void GetDomainConfigResponse::unsetConfiguration() { - m_ReasonIsSet = false; + m_Configuration.reset(); } -utility::string_t AddDomainConfig_200_response::getCode() const +std::shared_ptr GetDomainConfigResponse::getStatus() const { - return m_Code; + return m_Status.get(); } -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; } -bool AddDomainConfig_200_response::codeIsSet() const +bool GetDomainConfigResponse::statusIsSet() const { - return m_CodeIsSet; + return m_Status.has_value(); } -void AddDomainConfig_200_response::unsetCode() +void GetDomainConfigResponse::unsetStatus() { - m_CodeIsSet = false; + m_Status.reset(); } -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 77% rename from client/src/model/GetDomainConfigs_200_response.cpp rename to client/src/model/GetDomainConfigsResponse.cpp index fb61f0c..ed3942b 100644 --- a/client/src/model/GetDomainConfigs_200_response.cpp +++ b/client/src/model/GetDomainConfigsResponse.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.23.0-SNAPSHOT. * 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_Reason = utility::conversions::to_string_t(""); m_ReasonIsSet = false; @@ -26,16 +26,16 @@ GetDomainConfigs_200_response::GetDomainConfigs_200_response() 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()) @@ -62,7 +62,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,7 +112,7 @@ 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("."))) @@ -137,7 +137,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 +174,85 @@ bool GetDomainConfigs_200_response::fromMultiPart(std::shared_ptr GetDomainConfigs_200_response::getConfigurations() const +std::shared_ptr GetDomainConfigsResponse::getConfigurations() const { return m_Configurations.get(); } -void GetDomainConfigs_200_response::setConfigurations(const std::shared_ptr& value) +void GetDomainConfigsResponse::setConfigurations(const std::shared_ptr& value) { m_Configurations = value; } -bool GetDomainConfigs_200_response::configurationsIsSet() const +bool GetDomainConfigsResponse::configurationsIsSet() const { return m_Configurations.has_value(); } -void GetDomainConfigs_200_response::unsetConfigurations() +void GetDomainConfigsResponse::unsetConfigurations() { m_Configurations.reset(); } -std::shared_ptr GetDomainConfigs_200_response::getStatus() const +std::shared_ptr GetDomainConfigsResponse::getStatus() const { return m_Status.get(); } -void GetDomainConfigs_200_response::setStatus(const std::shared_ptr& value) +void GetDomainConfigsResponse::setStatus(const std::shared_ptr& value) { m_Status = value; } -bool GetDomainConfigs_200_response::statusIsSet() const +bool GetDomainConfigsResponse::statusIsSet() const { return m_Status.has_value(); } -void GetDomainConfigs_200_response::unsetStatus() +void GetDomainConfigsResponse::unsetStatus() { m_Status.reset(); } -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 72% rename from client/src/model/GetDomainConfigs_200_response_anyOf.cpp rename to client/src/model/GetDomainConfigsResponse_anyOf.cpp index a4b5d10..bce031c 100644 --- a/client/src/model/GetDomainConfigs_200_response_anyOf.cpp +++ b/client/src/model/GetDomainConfigsResponse_anyOf.cpp @@ -4,34 +4,34 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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() { } -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()) @@ -48,7 +48,7 @@ web::json::value GetDomainConfigs_200_response_anyOf::toJson() const 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,7 +76,7 @@ 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("."))) @@ -93,7 +93,7 @@ void GetDomainConfigs_200_response_anyOf::toMultipart(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,43 +118,43 @@ 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(); } -void GetDomainConfigs_200_response_anyOf::setConfigurations(const std::shared_ptr& value) +void GetDomainConfigsResponse_anyOf::setConfigurations(const std::shared_ptr& value) { m_Configurations = value; } -bool GetDomainConfigs_200_response_anyOf::configurationsIsSet() const +bool GetDomainConfigsResponse_anyOf::configurationsIsSet() const { return m_Configurations.has_value(); } -void GetDomainConfigs_200_response_anyOf::unsetConfigurations() +void GetDomainConfigsResponse_anyOf::unsetConfigurations() { m_Configurations.reset(); } -std::shared_ptr GetDomainConfigs_200_response_anyOf::getStatus() const +std::shared_ptr GetDomainConfigsResponse_anyOf::getStatus() const { return m_Status.get(); } -void GetDomainConfigs_200_response_anyOf::setStatus(const std::shared_ptr& value) +void GetDomainConfigsResponse_anyOf::setStatus(const std::shared_ptr& value) { m_Status = value; } -bool GetDomainConfigs_200_response_anyOf::statusIsSet() const +bool GetDomainConfigsResponse_anyOf::statusIsSet() const { return m_Status.has_value(); } -void GetDomainConfigs_200_response_anyOf::unsetStatus() +void GetDomainConfigsResponse_anyOf::unsetStatus() { m_Status.reset(); } diff --git a/client/src/model/GetDomainConfigs_200_response_anyOf_1.cpp b/client/src/model/GetDomainConfigsResponse_anyOf_1.cpp similarity index 74% rename from client/src/model/GetDomainConfigs_200_response_anyOf_1.cpp rename to client/src/model/GetDomainConfigsResponse_anyOf_1.cpp index dd00d32..b2bc334 100644 --- a/client/src/model/GetDomainConfigs_200_response_anyOf_1.cpp +++ b/client/src/model/GetDomainConfigsResponse_anyOf_1.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.23.0-SNAPSHOT. * 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; @@ -26,16 +26,16 @@ GetDomainConfigs_200_response_anyOf_1::GetDomainConfigs_200_response_anyOf_1() m_CodeIsSet = 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) @@ -57,7 +57,7 @@ web::json::value GetDomainConfigs_200_response_anyOf_1::toJson() const 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 +96,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("."))) @@ -117,7 +117,7 @@ void GetDomainConfigs_200_response_anyOf_1::toMultipart(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,65 +148,65 @@ 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(); } -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; } -bool GetDomainConfigs_200_response_anyOf_1::statusIsSet() const +bool GetDomainConfigsResponse_anyOf_1::statusIsSet() const { return m_Status.has_value(); } -void GetDomainConfigs_200_response_anyOf_1::unsetStatus() +void GetDomainConfigsResponse_anyOf_1::unsetStatus() { m_Status.reset(); } diff --git a/client/src/model/GetEmailTemplateDefinitionsResponse.cpp b/client/src/model/GetEmailTemplateDefinitionsResponse.cpp index 00ff8a5..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..0a5c149 --- /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.23.0-SNAPSHOT. + * 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..f3c0622 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 03a159d..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 17e657e..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 f3a3fa4..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..1c9347a --- /dev/null +++ b/client/src/model/GetPublicPagesResponse.cpp @@ -0,0 +1,217 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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_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_NextCursor.has_value()) + { + + 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); + } + + 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_NextCursor.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextCursor")), m_NextCursor.get())); + } + 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.get(); +} + + +void GetPublicPagesResponse::setNextCursor(const utility::string_t& value) +{ + m_NextCursor = value; +} + +bool GetPublicPagesResponse::nextCursorIsSet() const +{ + return m_NextCursor.has_value(); +} + +void GetPublicPagesResponse::unsetNextCursor() +{ + m_NextCursor.reset(); +} +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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 d7e78c1..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..0b1dbe1 100644 --- a/client/src/model/GetSSOUsers_200_response.cpp +++ b/client/src/model/GetSSOUsersResponse.cpp @@ -4,37 +4,37 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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) @@ -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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 7c4a057..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..e49a0df --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ff4f947..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..e824355 --- /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.23.0-SNAPSHOT. + * 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..7c2e0f0 --- /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.23.0-SNAPSHOT. + * 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..090ac11 --- /dev/null +++ b/client/src/model/GetUserInternalProfileResponse_profile.cpp @@ -0,0 +1,885 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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_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_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_DisplayName = utility::conversions::to_string_t(""); + m_DisplayNameIsSet = false; + m_Username = utility::conversions::to_string_t(""); + m_UsernameIsSet = 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_FirstCommentDate.has_value()) + { + + 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_WebsiteUrl.has_value()) + { + + 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_AvatarSrc.has_value()) + { + + 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_CommenterEmail.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); + } + if(m_Email.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); + } + if(m_AnonUserId.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); + } + if(m_UserId.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + } + + 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_FirstCommentDate.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("firstCommentDate")), m_FirstCommentDate.get())); + } + 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_WebsiteUrl.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("websiteUrl")), m_WebsiteUrl.get())); + } + 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_AvatarSrc.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + } + 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_CommenterEmail.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); + } + if(m_Email.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); + } + if(m_AnonUserId.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); + } + if(m_UserId.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + } +} + +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.get(); +} + + +void GetUserInternalProfileResponse_profile::setFirstCommentDate(const utility::datetime& value) +{ + m_FirstCommentDate = value; +} + +bool GetUserInternalProfileResponse_profile::firstCommentDateIsSet() const +{ + return m_FirstCommentDate.has_value(); +} + +void GetUserInternalProfileResponse_profile::unsetFirstCommentDate() +{ + m_FirstCommentDate.reset(); +} +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.get(); +} + + +void GetUserInternalProfileResponse_profile::setWebsiteUrl(const utility::string_t& value) +{ + m_WebsiteUrl = value; +} + +bool GetUserInternalProfileResponse_profile::websiteUrlIsSet() const +{ + return m_WebsiteUrl.has_value(); +} + +void GetUserInternalProfileResponse_profile::unsetWebsiteUrl() +{ + m_WebsiteUrl.reset(); +} +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.get(); +} + + +void GetUserInternalProfileResponse_profile::setAvatarSrc(const utility::string_t& value) +{ + m_AvatarSrc = value; +} + +bool GetUserInternalProfileResponse_profile::avatarSrcIsSet() const +{ + return m_AvatarSrc.has_value(); +} + +void GetUserInternalProfileResponse_profile::unsetAvatarSrc() +{ + m_AvatarSrc.reset(); +} +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.get(); +} + + +void GetUserInternalProfileResponse_profile::setCommenterEmail(const utility::string_t& value) +{ + m_CommenterEmail = value; +} + +bool GetUserInternalProfileResponse_profile::commenterEmailIsSet() const +{ + return m_CommenterEmail.has_value(); +} + +void GetUserInternalProfileResponse_profile::unsetCommenterEmail() +{ + m_CommenterEmail.reset(); +} +utility::string_t GetUserInternalProfileResponse_profile::getEmail() const +{ + return m_Email.get(); +} + + +void GetUserInternalProfileResponse_profile::setEmail(const utility::string_t& value) +{ + m_Email = value; +} + +bool GetUserInternalProfileResponse_profile::emailIsSet() const +{ + return m_Email.has_value(); +} + +void GetUserInternalProfileResponse_profile::unsetEmail() +{ + m_Email.reset(); +} +utility::string_t GetUserInternalProfileResponse_profile::getAnonUserId() const +{ + return m_AnonUserId.get(); +} + + +void GetUserInternalProfileResponse_profile::setAnonUserId(const utility::string_t& value) +{ + m_AnonUserId = value; +} + +bool GetUserInternalProfileResponse_profile::anonUserIdIsSet() const +{ + return m_AnonUserId.has_value(); +} + +void GetUserInternalProfileResponse_profile::unsetAnonUserId() +{ + m_AnonUserId.reset(); +} +utility::string_t GetUserInternalProfileResponse_profile::getUserId() const +{ + return m_UserId.get(); +} + + +void GetUserInternalProfileResponse_profile::setUserId(const utility::string_t& value) +{ + m_UserId = value; +} + +bool GetUserInternalProfileResponse_profile::userIdIsSet() const +{ + return m_UserId.has_value(); +} + +void GetUserInternalProfileResponse_profile::unsetUserId() +{ + m_UserId.reset(); +} + +} +} +} +} + + diff --git a/client/src/model/GetUserManualBadgesResponse.cpp b/client/src/model/GetUserManualBadgesResponse.cpp new file mode 100644 index 0000000..3b55d32 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..384c914 --- /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.23.0-SNAPSHOT. + * 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..031374d --- /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.23.0-SNAPSHOT. + * 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..0be47c0 --- /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.23.0-SNAPSHOT. + * 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..6f0b8bf --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..c79a9dc --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..c75f001 --- /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.23.0-SNAPSHOT. + * 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..f9eaa96 --- /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.23.0-SNAPSHOT. + * 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..3e49a83 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -89,6 +89,11 @@ web::json::value HeaderAccountNotification::toJson() const val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } + if(m_Type.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type.get()); + } return val; } @@ -195,6 +200,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; } @@ -241,6 +257,10 @@ void HeaderAccountNotification::toMultipart(std::shared_ptr m { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdAt")), m_CreatedAt)); } + if(m_Type.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("type")), m_Type.get())); + } } bool HeaderAccountNotification::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -306,6 +326,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; } @@ -495,6 +521,26 @@ void HeaderAccountNotification::unsetCreatedAt() { m_CreatedAtIsSet = false; } +utility::string_t HeaderAccountNotification::getType() const +{ + return m_Type.get(); +} + + +void HeaderAccountNotification::setType(const utility::string_t& value) +{ + m_Type = value; +} + +bool HeaderAccountNotification::typeIsSet() const +{ + return m_Type.has_value(); +} + +void HeaderAccountNotification::unsetType() +{ + m_Type.reset(); +} } } diff --git a/client/src/model/HeaderState.cpp b/client/src/model/HeaderState.cpp index 415f271..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 23894ff..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 72e84fa..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..36e6469 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 0a80e74..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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; } @@ -130,6 +132,11 @@ web::json::value LiveEvent::toJson() const 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) { @@ -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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 4daa6fc..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 d160d0d..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..711159a --- /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.23.0-SNAPSHOT. + * 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..e4aa665 --- /dev/null +++ b/client/src/model/ModerationAPIComment.cpp @@ -0,0 +1,2056 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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_CommenterName = utility::conversions::to_string_t(""); + m_CommenterNameIsSet = false; + m_CommentHTML = utility::conversions::to_string_t(""); + m_CommentHTMLIsSet = false; + m_Reviewed = false; + m_ReviewedIsSet = 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_IsBannedUser = false; + m_IsBannedUserIsSet = false; + m_IsByAdmin = false; + m_IsByAdminIsSet = false; + m_IsByModerator = false; + m_IsByModeratorIsSet = 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_PageTitle.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); + } + if(m_UserId.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + } + if(m_AnonUserId.has_value()) + { + + 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_CommenterLink.has_value()) + { + + 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_ParentId.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); + } + if(m_date.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date.get()); + } + if(m_LocalDateString.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString.get()); + } + if(m_Votes.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); + } + if(m_VotesUp.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); + } + if(m_VotesDown.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); + } + if(m_ExpireAt.has_value()) + { + + 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_AvatarSrc.has_value()) + { + + 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_Locale.has_value()) + { + + 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_IsPinned.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); + } + if(m_IsLocked.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); + } + if(m_FlagCount.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount.get()); + } + if(m_DisplayLabel.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); + } + if(m_Badges.has_value()) + { + + 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); + } + + 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_PageTitle.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); + } + if(m_UserId.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + } + if(m_AnonUserId.has_value()) + { + 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_CommenterLink.has_value()) + { + 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_ParentId.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); + } + if(m_date.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date.get())); + } + if(m_LocalDateString.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString.get())); + } + if(m_Votes.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); + } + if(m_VotesUp.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); + } + if(m_VotesDown.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); + } + if(m_ExpireAt.has_value()) + { + 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_AvatarSrc.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + } + 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_Locale.has_value()) + { + 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_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_IsPinned.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); + } + if(m_IsLocked.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); + } + if(m_FlagCount.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount.get())); + } + if(m_DisplayLabel.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); + } + if(m_Badges.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); + } + 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.get(); +} + + +void ModerationAPIComment::setPageTitle(const utility::string_t& value) +{ + m_PageTitle = value; +} + +bool ModerationAPIComment::pageTitleIsSet() const +{ + return m_PageTitle.has_value(); +} + +void ModerationAPIComment::unsetPageTitle() +{ + m_PageTitle.reset(); +} +utility::string_t ModerationAPIComment::getUserId() const +{ + return m_UserId.get(); +} + + +void ModerationAPIComment::setUserId(const utility::string_t& value) +{ + m_UserId = value; +} + +bool ModerationAPIComment::userIdIsSet() const +{ + return m_UserId.has_value(); +} + +void ModerationAPIComment::unsetUserId() +{ + m_UserId.reset(); +} +utility::string_t ModerationAPIComment::getAnonUserId() const +{ + return m_AnonUserId.get(); +} + + +void ModerationAPIComment::setAnonUserId(const utility::string_t& value) +{ + m_AnonUserId = value; +} + +bool ModerationAPIComment::anonUserIdIsSet() const +{ + return m_AnonUserId.has_value(); +} + +void ModerationAPIComment::unsetAnonUserId() +{ + m_AnonUserId.reset(); +} +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.get(); +} + + +void ModerationAPIComment::setCommenterLink(const utility::string_t& value) +{ + m_CommenterLink = value; +} + +bool ModerationAPIComment::commenterLinkIsSet() const +{ + return m_CommenterLink.has_value(); +} + +void ModerationAPIComment::unsetCommenterLink() +{ + m_CommenterLink.reset(); +} +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.get(); +} + + +void ModerationAPIComment::setParentId(const utility::string_t& value) +{ + m_ParentId = value; +} + +bool ModerationAPIComment::parentIdIsSet() const +{ + return m_ParentId.has_value(); +} + +void ModerationAPIComment::unsetParentId() +{ + m_ParentId.reset(); +} +utility::datetime ModerationAPIComment::getDate() const +{ + return m_date.get(); +} + + +void ModerationAPIComment::setDate(const utility::datetime& value) +{ + m_date = value; +} + +bool ModerationAPIComment::dateIsSet() const +{ + return m_date.has_value(); +} + +void ModerationAPIComment::unsetdate() +{ + m_date.reset(); +} +utility::string_t ModerationAPIComment::getLocalDateString() const +{ + return m_LocalDateString.get(); +} + + +void ModerationAPIComment::setLocalDateString(const utility::string_t& value) +{ + m_LocalDateString = value; +} + +bool ModerationAPIComment::localDateStringIsSet() const +{ + return m_LocalDateString.has_value(); +} + +void ModerationAPIComment::unsetLocalDateString() +{ + m_LocalDateString.reset(); +} +double ModerationAPIComment::getVotes() const +{ + return m_Votes.get(); +} + +void ModerationAPIComment::setVotes(double value) +{ + m_Votes = value; +} + +bool ModerationAPIComment::votesIsSet() const +{ + return m_Votes.has_value(); +} + +void ModerationAPIComment::unsetVotes() +{ + m_Votes.reset(); +} +double ModerationAPIComment::getVotesUp() const +{ + return m_VotesUp.get(); +} + +void ModerationAPIComment::setVotesUp(double value) +{ + m_VotesUp = value; +} + +bool ModerationAPIComment::votesUpIsSet() const +{ + return m_VotesUp.has_value(); +} + +void ModerationAPIComment::unsetVotesUp() +{ + m_VotesUp.reset(); +} +double ModerationAPIComment::getVotesDown() const +{ + return m_VotesDown.get(); +} + +void ModerationAPIComment::setVotesDown(double value) +{ + m_VotesDown = value; +} + +bool ModerationAPIComment::votesDownIsSet() const +{ + return m_VotesDown.has_value(); +} + +void ModerationAPIComment::unsetVotesDown() +{ + m_VotesDown.reset(); +} +utility::datetime ModerationAPIComment::getExpireAt() const +{ + return m_ExpireAt.get(); +} + + +void ModerationAPIComment::setExpireAt(const utility::datetime& value) +{ + m_ExpireAt = value; +} + +bool ModerationAPIComment::expireAtIsSet() const +{ + return m_ExpireAt.has_value(); +} + +void ModerationAPIComment::unsetExpireAt() +{ + m_ExpireAt.reset(); +} +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.get(); +} + + +void ModerationAPIComment::setAvatarSrc(const utility::string_t& value) +{ + m_AvatarSrc = value; +} + +bool ModerationAPIComment::avatarSrcIsSet() const +{ + return m_AvatarSrc.has_value(); +} + +void ModerationAPIComment::unsetAvatarSrc() +{ + m_AvatarSrc.reset(); +} +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.get(); +} + + +void ModerationAPIComment::setLocale(const utility::string_t& value) +{ + m_Locale = value; +} + +bool ModerationAPIComment::localeIsSet() const +{ + return m_Locale.has_value(); +} + +void ModerationAPIComment::unsetLocale() +{ + m_Locale.reset(); +} +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.get(); +} + +void ModerationAPIComment::setIsPinned(bool value) +{ + m_IsPinned = value; +} + +bool ModerationAPIComment::isPinnedIsSet() const +{ + return m_IsPinned.has_value(); +} + +void ModerationAPIComment::unsetIsPinned() +{ + m_IsPinned.reset(); +} +bool ModerationAPIComment::isIsLocked() const +{ + return m_IsLocked.get(); +} + +void ModerationAPIComment::setIsLocked(bool value) +{ + m_IsLocked = value; +} + +bool ModerationAPIComment::isLockedIsSet() const +{ + return m_IsLocked.has_value(); +} + +void ModerationAPIComment::unsetIsLocked() +{ + m_IsLocked.reset(); +} +double ModerationAPIComment::getFlagCount() const +{ + return m_FlagCount.get(); +} + +void ModerationAPIComment::setFlagCount(double value) +{ + m_FlagCount = value; +} + +bool ModerationAPIComment::flagCountIsSet() const +{ + return m_FlagCount.has_value(); +} + +void ModerationAPIComment::unsetFlagCount() +{ + m_FlagCount.reset(); +} +utility::string_t ModerationAPIComment::getDisplayLabel() const +{ + return m_DisplayLabel.get(); +} + + +void ModerationAPIComment::setDisplayLabel(const utility::string_t& value) +{ + m_DisplayLabel = value; +} + +bool ModerationAPIComment::displayLabelIsSet() const +{ + return m_DisplayLabel.has_value(); +} + +void ModerationAPIComment::unsetDisplayLabel() +{ + m_DisplayLabel.reset(); +} +std::vector> ModerationAPIComment::getBadges() const +{ + return m_Badges.get(); +} + + +void ModerationAPIComment::setBadges(const std::vector>& value) +{ + m_Badges = value; +} + +bool ModerationAPIComment::badgesIsSet() const +{ + return m_Badges.has_value(); +} + +void ModerationAPIComment::unsetBadges() +{ + m_Badges.reset(); +} +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..6dc29b2 --- /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.23.0-SNAPSHOT. + * 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..3b75235 --- /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.23.0-SNAPSHOT. + * 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..89ddb8e --- /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.23.0-SNAPSHOT. + * 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..e85991a --- /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.23.0-SNAPSHOT. + * 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..a05f409 --- /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.23.0-SNAPSHOT. + * 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..5668f80 --- /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.23.0-SNAPSHOT. + * 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..64f0df7 --- /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.23.0-SNAPSHOT. + * 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..e47ccfa --- /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.23.0-SNAPSHOT. + * 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..5c7e4b1 --- /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.23.0-SNAPSHOT. + * 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..209803c --- /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.23.0-SNAPSHOT. + * 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..e7ea27d --- /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.23.0-SNAPSHOT. + * 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..0067a55 --- /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.23.0-SNAPSHOT. + * 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..ca8fa45 --- /dev/null +++ b/client/src/model/ModerationSiteSearchProjected.cpp @@ -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.23.0-SNAPSHOT. + * 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; +} + +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_LogoSrc100px.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))] = ModelBase::toJson(m_LogoSrc100px.get()); + } + + 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_LogoSrc100px.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logoSrc100px")), m_LogoSrc100px.get())); + } +} + +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.get(); +} + + +void ModerationSiteSearchProjected::setLogoSrc100px(const utility::string_t& value) +{ + m_LogoSrc100px = value; +} + +bool ModerationSiteSearchProjected::logoSrc100pxIsSet() const +{ + return m_LogoSrc100px.has_value(); +} + +void ModerationSiteSearchProjected::unsetLogoSrc100px() +{ + m_LogoSrc100px.reset(); +} + +} +} +} +} + + diff --git a/client/src/model/ModerationSiteSearchResponse.cpp b/client/src/model/ModerationSiteSearchResponse.cpp new file mode 100644 index 0000000..b11a513 --- /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.23.0-SNAPSHOT. + * 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..3bbd571 --- /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.23.0-SNAPSHOT. + * 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..79b81f8 --- /dev/null +++ b/client/src/model/ModerationUserSearchProjected.cpp @@ -0,0 +1,265 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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; +} + +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_DisplayName.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName.get()); + } + if(m_AvatarSrc.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); + } + + 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_DisplayName.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayName")), m_DisplayName.get())); + } + if(m_AvatarSrc.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + } +} + +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.get(); +} + + +void ModerationUserSearchProjected::setDisplayName(const utility::string_t& value) +{ + m_DisplayName = value; +} + +bool ModerationUserSearchProjected::displayNameIsSet() const +{ + return m_DisplayName.has_value(); +} + +void ModerationUserSearchProjected::unsetDisplayName() +{ + m_DisplayName.reset(); +} +utility::string_t ModerationUserSearchProjected::getAvatarSrc() const +{ + return m_AvatarSrc.get(); +} + + +void ModerationUserSearchProjected::setAvatarSrc(const utility::string_t& value) +{ + m_AvatarSrc = value; +} + +bool ModerationUserSearchProjected::avatarSrcIsSet() const +{ + return m_AvatarSrc.has_value(); +} + +void ModerationUserSearchProjected::unsetAvatarSrc() +{ + m_AvatarSrc.reset(); +} + +} +} +} +} + + diff --git a/client/src/model/ModerationUserSearchResponse.cpp b/client/src/model/ModerationUserSearchResponse.cpp new file mode 100644 index 0000000..8f6a66f --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 0ae001a..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 324f401..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 2eeb28c..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..04dfd27 --- /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.23.0-SNAPSHOT. + * 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..64d40eb --- /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.23.0-SNAPSHOT. + * 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..f78686e --- /dev/null +++ b/client/src/model/PageUsersOfflineResponse.cpp @@ -0,0 +1,263 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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_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_NextAfterUserId.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))] = ModelBase::toJson(m_NextAfterUserId.get()); + } + if(m_NextAfterName.has_value()) + { + + 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); + } + + 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_NextAfterUserId.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")), m_NextAfterUserId.get())); + } + if(m_NextAfterName.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterName")), m_NextAfterName.get())); + } + 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.get(); +} + + +void PageUsersOfflineResponse::setNextAfterUserId(const utility::string_t& value) +{ + m_NextAfterUserId = value; +} + +bool PageUsersOfflineResponse::nextAfterUserIdIsSet() const +{ + return m_NextAfterUserId.has_value(); +} + +void PageUsersOfflineResponse::unsetNextAfterUserId() +{ + m_NextAfterUserId.reset(); +} +utility::string_t PageUsersOfflineResponse::getNextAfterName() const +{ + return m_NextAfterName.get(); +} + + +void PageUsersOfflineResponse::setNextAfterName(const utility::string_t& value) +{ + m_NextAfterName = value; +} + +bool PageUsersOfflineResponse::nextAfterNameIsSet() const +{ + return m_NextAfterName.has_value(); +} + +void PageUsersOfflineResponse::unsetNextAfterName() +{ + m_NextAfterName.reset(); +} +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..70bf26e --- /dev/null +++ b/client/src/model/PageUsersOnlineResponse.cpp @@ -0,0 +1,359 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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_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_NextAfterUserId.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))] = ModelBase::toJson(m_NextAfterUserId.get()); + } + if(m_NextAfterName.has_value()) + { + + 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); + } + + 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_NextAfterUserId.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")), m_NextAfterUserId.get())); + } + if(m_NextAfterName.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterName")), m_NextAfterName.get())); + } + 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.get(); +} + + +void PageUsersOnlineResponse::setNextAfterUserId(const utility::string_t& value) +{ + m_NextAfterUserId = value; +} + +bool PageUsersOnlineResponse::nextAfterUserIdIsSet() const +{ + return m_NextAfterUserId.has_value(); +} + +void PageUsersOnlineResponse::unsetNextAfterUserId() +{ + m_NextAfterUserId.reset(); +} +utility::string_t PageUsersOnlineResponse::getNextAfterName() const +{ + return m_NextAfterName.get(); +} + + +void PageUsersOnlineResponse::setNextAfterName(const utility::string_t& value) +{ + m_NextAfterName = value; +} + +bool PageUsersOnlineResponse::nextAfterNameIsSet() const +{ + return m_NextAfterName.has_value(); +} + +void PageUsersOnlineResponse::unsetNextAfterName() +{ + m_NextAfterName.reset(); +} +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..90e97d1 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..ae6b3df --- /dev/null +++ b/client/src/model/PatchDomainConfigResponse.cpp @@ -0,0 +1,265 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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_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_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); + } + + 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_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)); + } + 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.get(); +} + + +void PatchDomainConfigResponse::setConfiguration(const std::shared_ptr& value) +{ + m_Configuration = value; +} + +bool PatchDomainConfigResponse::configurationIsSet() const +{ + return m_Configuration.has_value(); +} + +void PatchDomainConfigResponse::unsetConfiguration() +{ + m_Configuration.reset(); +} +std::shared_ptr PatchDomainConfigResponse::getStatus() const +{ + return m_Status.get(); +} + + +void PatchDomainConfigResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; +} + +bool PatchDomainConfigResponse::statusIsSet() const +{ + return m_Status.has_value(); +} + +void PatchDomainConfigResponse::unsetStatus() +{ + m_Status.reset(); +} +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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 d5925ac..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 03d5e61..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..99f1262 --- /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.23.0-SNAPSHOT. + * 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..76bbad1 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ca69d60..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 037bfbd..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 aa87f7c..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 0f0e1e1..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 6e785eb..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 78a7d06..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 1342a02..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 c953faf..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 9ecc61b..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..a677455 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..6088360 --- /dev/null +++ b/client/src/model/PutDomainConfigResponse.cpp @@ -0,0 +1,265 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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_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_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); + } + + 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_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)); + } + 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.get(); +} + + +void PutDomainConfigResponse::setConfiguration(const std::shared_ptr& value) +{ + m_Configuration = value; +} + +bool PutDomainConfigResponse::configurationIsSet() const +{ + return m_Configuration.has_value(); +} + +void PutDomainConfigResponse::unsetConfiguration() +{ + m_Configuration.reset(); +} +std::shared_ptr PutDomainConfigResponse::getStatus() const +{ + return m_Status.get(); +} + + +void PutDomainConfigResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; +} + +bool PutDomainConfigResponse::statusIsSet() const +{ + return m_Status.has_value(); +} + +void PutDomainConfigResponse::unsetStatus() +{ + m_Status.reset(); +} +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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 57d70dd..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 9c335cf..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ee8d490..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 74f463a..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 c1548b5..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 69ad5e4..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ced0b0c..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 dd76c51..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 9ee96e1..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 2a01229..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 6ecf54b..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 a30d9fe..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * 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 new file mode 100644 index 0000000..a6f5008 --- /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.23.0-SNAPSHOT. + * 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..fdacf8d --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 82581c4..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 c02d666..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 e6f42f7..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 1ca1b98..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 bb41e18..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 6eb50ea..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 7760e56..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 5ba5008..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SaveComment_200_response.cpp b/client/src/model/SaveCommentsBulkResponse.cpp similarity index 83% rename from client/src/model/SaveComment_200_response.cpp rename to client/src/model/SaveCommentsBulkResponse.cpp index f7ef56e..62a0341 100644 --- a/client/src/model/SaveComment_200_response.cpp +++ b/client/src/model/SaveCommentsBulkResponse.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.23.0-SNAPSHOT. * 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; @@ -38,16 +38,16 @@ 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) @@ -109,7 +109,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 +128,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 +236,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("."))) @@ -289,7 +289,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 +306,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 +368,231 @@ 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(); } -void SaveComment_200_response::setUser(const std::shared_ptr& value) +void SaveCommentsBulkResponse::setUser(const std::shared_ptr& value) { m_User = value; } -bool SaveComment_200_response::userIsSet() const +bool SaveCommentsBulkResponse::userIsSet() const { return m_User.has_value(); } -void SaveComment_200_response::unsetUser() +void SaveCommentsBulkResponse::unsetUser() { m_User.reset(); } -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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ec8d7ed..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..82e28fa --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..a514ae0 --- /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.23.0-SNAPSHOT. + * 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..9a49db4 --- /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.23.0-SNAPSHOT. + * 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..e4ab983 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..f6a15f4 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 8954be8..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 b608cb5..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 0fe1c60..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..16a54c3 --- /dev/null +++ b/client/src/model/TenantBadge.cpp @@ -0,0 +1,1073 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * 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_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_IsAwaitingReprocess = false; + m_IsAwaitingReprocessIsSet = false; + m_IsAwaitingDeletion = false; + m_IsAwaitingDeletionIsSet = 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_UrlId.has_value()) + { + + 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_DisplaySrc.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("displaySrc"))] = ModelBase::toJson(m_DisplaySrc.get()); + } + if(m_BackgroundColor.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("backgroundColor"))] = ModelBase::toJson(m_BackgroundColor.get()); + } + if(m_BorderColor.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("borderColor"))] = ModelBase::toJson(m_BorderColor.get()); + } + if(m_TextColor.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("textColor"))] = ModelBase::toJson(m_TextColor.get()); + } + if(m_CssClass.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("cssClass"))] = ModelBase::toJson(m_CssClass.get()); + } + if(m_VeteranUserThresholdMillis.has_value()) + { + + 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_ReplacesBadgeId.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("replacesBadgeId"))] = ModelBase::toJson(m_ReplacesBadgeId.get()); + } + + 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_UrlId.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlId")), m_UrlId.get())); + } + 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_DisplaySrc.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displaySrc")), m_DisplaySrc.get())); + } + if(m_BackgroundColor.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("backgroundColor")), m_BackgroundColor.get())); + } + if(m_BorderColor.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("borderColor")), m_BorderColor.get())); + } + if(m_TextColor.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("textColor")), m_TextColor.get())); + } + if(m_CssClass.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("cssClass")), m_CssClass.get())); + } + if(m_VeteranUserThresholdMillis.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("veteranUserThresholdMillis")), m_VeteranUserThresholdMillis.get())); + } + 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_ReplacesBadgeId.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("replacesBadgeId")), m_ReplacesBadgeId.get())); + } +} + +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.get(); +} + + +void TenantBadge::setUrlId(const utility::string_t& value) +{ + m_UrlId = value; +} + +bool TenantBadge::urlIdIsSet() const +{ + return m_UrlId.has_value(); +} + +void TenantBadge::unsetUrlId() +{ + m_UrlId.reset(); +} +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.get(); +} + + +void TenantBadge::setDisplaySrc(const utility::string_t& value) +{ + m_DisplaySrc = value; +} + +bool TenantBadge::displaySrcIsSet() const +{ + return m_DisplaySrc.has_value(); +} + +void TenantBadge::unsetDisplaySrc() +{ + m_DisplaySrc.reset(); +} +utility::string_t TenantBadge::getBackgroundColor() const +{ + return m_BackgroundColor.get(); +} + + +void TenantBadge::setBackgroundColor(const utility::string_t& value) +{ + m_BackgroundColor = value; +} + +bool TenantBadge::backgroundColorIsSet() const +{ + return m_BackgroundColor.has_value(); +} + +void TenantBadge::unsetBackgroundColor() +{ + m_BackgroundColor.reset(); +} +utility::string_t TenantBadge::getBorderColor() const +{ + return m_BorderColor.get(); +} + + +void TenantBadge::setBorderColor(const utility::string_t& value) +{ + m_BorderColor = value; +} + +bool TenantBadge::borderColorIsSet() const +{ + return m_BorderColor.has_value(); +} + +void TenantBadge::unsetBorderColor() +{ + m_BorderColor.reset(); +} +utility::string_t TenantBadge::getTextColor() const +{ + return m_TextColor.get(); +} + + +void TenantBadge::setTextColor(const utility::string_t& value) +{ + m_TextColor = value; +} + +bool TenantBadge::textColorIsSet() const +{ + return m_TextColor.has_value(); +} + +void TenantBadge::unsetTextColor() +{ + m_TextColor.reset(); +} +utility::string_t TenantBadge::getCssClass() const +{ + return m_CssClass.get(); +} + + +void TenantBadge::setCssClass(const utility::string_t& value) +{ + m_CssClass = value; +} + +bool TenantBadge::cssClassIsSet() const +{ + return m_CssClass.has_value(); +} + +void TenantBadge::unsetCssClass() +{ + m_CssClass.reset(); +} +double TenantBadge::getVeteranUserThresholdMillis() const +{ + return m_VeteranUserThresholdMillis.get(); +} + +void TenantBadge::setVeteranUserThresholdMillis(double value) +{ + m_VeteranUserThresholdMillis = value; +} + +bool TenantBadge::veteranUserThresholdMillisIsSet() const +{ + return m_VeteranUserThresholdMillis.has_value(); +} + +void TenantBadge::unsetVeteranUserThresholdMillis() +{ + m_VeteranUserThresholdMillis.reset(); +} +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.get(); +} + + +void TenantBadge::setReplacesBadgeId(const utility::string_t& value) +{ + m_ReplacesBadgeId = value; +} + +bool TenantBadge::replacesBadgeIdIsSet() const +{ + return m_ReplacesBadgeId.has_value(); +} + +void TenantBadge::unsetReplacesBadgeId() +{ + m_ReplacesBadgeId.reset(); +} + +} +} +} +} + + diff --git a/client/src/model/TenantHashTag.cpp b/client/src/model/TenantHashTag.cpp index 3811421..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 bdcd5bd..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -28,6 +28,8 @@ TenantPackage::TenantPackage() m_TenantIdIsSet = false; m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; + m_TemplateId = utility::conversions::to_string_t(""); + m_TemplateIdIsSet = false; m_MaxMonthlyPageLoads = 0.0; m_MaxMonthlyPageLoadsIsSet = false; m_MaxMonthlyAPICredits = 0.0; @@ -105,6 +107,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 +125,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() @@ -153,6 +167,11 @@ web::json::value TenantPackage::toJson() const 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_MonthlyCostUSD.has_value()) { @@ -368,6 +387,16 @@ web::json::value TenantPackage::toJson() const 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) { @@ -403,6 +432,26 @@ web::json::value TenantPackage::toJson() const 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 +503,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 +987,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 +1086,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,6 +1156,10 @@ void TenantPackage::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdAt")), m_CreatedAt)); } + if(m_TemplateIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("templateId")), m_TemplateId)); + } if(m_MonthlyCostUSD.has_value()) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD")), m_MonthlyCostUSD.get())); @@ -1202,6 +1332,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 +1368,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 +1419,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 +1683,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 +1737,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,6 +1849,27 @@ 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(); @@ -2513,6 +2730,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 +2910,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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ccac523..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 a9a14d9..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 4312be3..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 f26dcd8..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 f087164..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 034cd59..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 39fc2f3..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 a9c1c88..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 9428f09..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 dee1f8a..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 8f9177b..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 b84ae8c..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 a9cda76..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 91f08d4..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 2c0ca87..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 276c8f1..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 a8a71ce..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 20cabd7..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 ffb1eef..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..b28400a --- /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.23.0-SNAPSHOT. + * 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..76e6c29 --- /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.23.0-SNAPSHOT. + * 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..e713d2d --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 deb5a33..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -84,6 +84,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(); @@ -330,6 +331,11 @@ web::json::value User::toJson() const 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) { @@ -866,6 +872,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"))); @@ -1252,6 +1269,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)); @@ -1577,6 +1598,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; @@ -2492,6 +2519,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; diff --git a/client/src/model/UserBadge.cpp b/client/src/model/UserBadge.cpp index 92142c8..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 08b48ae..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 b14eb81..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 113100c..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 c742177..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 b7f841b..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 7ea447f..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 5c3eac2..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 193372c..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 7c51899..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 4fb1c3d..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 new file mode 100644 index 0000000..0497138 --- /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.23.0-SNAPSHOT. + * 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ 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..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 682434c..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 a64e2d1..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.19.0-SNAPSHOT. + * NOTE: This class is auto 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 caf22f3..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.19.0-SNAPSHOT. + * NOTE: This 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/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/GetDomainConfig_200_response.md b/docs/Models/AddDomainConfigResponse.md similarity index 59% rename from docs/Models/GetDomainConfig_200_response.md rename to docs/Models/AddDomainConfigResponse.md index 85a9596..a3f431a 100644 --- a/docs/Models/GetDomainConfig_200_response.md +++ b/docs/Models/AddDomainConfigResponse.md @@ -1,12 +1,12 @@ -# GetDomainConfig_200_response +# AddDomainConfigResponse ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **configuration** | [**oas_any_type_not_mapped**](.md) | | [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] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [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/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/AddHashTag_200_response.md b/docs/Models/AddHashTag_200_response.md deleted file mode 100644 index f4580c6..0000000 --- a/docs/Models/AddHashTag_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# AddHashTag_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/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/AggregateResponse.md b/docs/Models/AggregateResponse.md new file mode 100644 index 0000000..5dffec9 --- /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) | | [optional] [default to null] | +| **stats** | [**AggregationResponse_stats**](AggregationResponse_stats.md) | | [optional] [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/AddDomainConfig_200_response.md b/docs/Models/AggregationAPIError.md similarity index 66% rename from docs/Models/AddDomainConfig_200_response.md rename to docs/Models/AggregationAPIError.md index 7a7758f..8449de5 100644 --- a/docs/Models/AddDomainConfig_200_response.md +++ b/docs/Models/AggregationAPIError.md @@ -1,12 +1,12 @@ -# AddDomainConfig_200_response +# AggregationAPIError ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | | **reason** | **String** | | [default to null] | | **code** | **String** | | [default to null] | -| **status** | [**oas_any_type_not_mapped**](.md) | | [default to null] | -| **configuration** | [**oas_any_type_not_mapped**](.md) | | [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/AggregateQuestionResults_200_response.md b/docs/Models/BulkCreateHashTagsResponse_results_inner.md similarity index 74% rename from docs/Models/AggregateQuestionResults_200_response.md rename to docs/Models/BulkCreateHashTagsResponse_results_inner.md index 4290ef0..5fe21d7 100644 --- a/docs/Models/AggregateQuestionResults_200_response.md +++ b/docs/Models/BulkCreateHashTagsResponse_results_inner.md @@ -1,12 +1,12 @@ -# AggregateQuestionResults_200_response +# BulkCreateHashTagsResponse_results_inner ## 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] | +| **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/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/GetDomainConfigResponse.md b/docs/Models/GetDomainConfigResponse.md new file mode 100644 index 0000000..8f7fe86 --- /dev/null +++ b/docs/Models/GetDomainConfigResponse.md @@ -0,0 +1,12 @@ +# GetDomainConfigResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **configuration** | [**oas_any_type_not_mapped**](.md) | | [optional] [default to null] | +| **status** | [**oas_any_type_not_mapped**](.md) | | [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/GetDomainConfigs_200_response.md b/docs/Models/GetDomainConfigsResponse.md similarity index 70% rename from docs/Models/GetDomainConfigs_200_response.md rename to docs/Models/GetDomainConfigsResponse.md index 7f600e5..cf4b958 100644 --- a/docs/Models/GetDomainConfigs_200_response.md +++ b/docs/Models/GetDomainConfigsResponse.md @@ -1,12 +1,12 @@ -# GetDomainConfigs_200_response +# GetDomainConfigsResponse ## Properties | 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/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..45eb9c8 --- /dev/null +++ b/docs/Models/GetGifsSearchResponse.md @@ -0,0 +1,11 @@ +# GetGifsSearchResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **images** | [**List**](array.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [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 new file mode 100644 index 0000000..b9eb2cb --- /dev/null +++ b/docs/Models/GetGifsTrendingResponse.md @@ -0,0 +1,11 @@ +# GetGifsTrendingResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **images** | [**List**](array.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [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/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..26e1e7f --- /dev/null +++ b/docs/Models/PatchDomainConfigResponse.md @@ -0,0 +1,12 @@ +# PatchDomainConfigResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **configuration** | [**oas_any_type_not_mapped**](.md) | | [optional] [default to null] | +| **status** | [**oas_any_type_not_mapped**](.md) | | [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/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..b66c223 --- /dev/null +++ b/docs/Models/PutDomainConfigResponse.md @@ -0,0 +1,12 @@ +# PutDomainConfigResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **configuration** | [**oas_any_type_not_mapped**](.md) | | [optional] [default to null] | +| **status** | [**oas_any_type_not_mapped**](.md) | | [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/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 72% rename from docs/Models/SaveComment_200_response.md rename to docs/Models/SaveCommentsBulkResponse.md index ecb65cf..5fe2cb7 100644 --- a/docs/Models/SaveComment_200_response.md +++ b/docs/Models/SaveCommentsBulkResponse.md @@ -1,14 +1,14 @@ -# SaveComment_200_response +# SaveCommentsBulkResponse ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **comment** | [**FComment**](FComment.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 new file mode 100644 index 0000000..b21ee07 --- /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) | | [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/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..43874ef --- /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** | | [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 new file mode 100644 index 0000000..3e93cbd --- /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** | | [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 new file mode 100644 index 0000000..8f1a2ce --- /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** | | [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/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/README.md b/docs/README.md index e9072eb..c923b37 100644 --- a/docs/README.md +++ b/docs/README.md @@ -121,26 +121,86 @@ All URIs are relative to *https://fastcomments.com* *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 | | @@ -162,9 +222,14 @@ All URIs are relative to *https://fastcomments.com* ## 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,8 +575,8 @@ 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) 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" + } + ] } } } 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/tests/sso_integration_test.cpp b/tests/sso_integration_test.cpp index 9c8babf..28b676b 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 @@ -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); diff --git a/update.sh b/update.sh index 37ded6c..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 -java -jar ../openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar 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 -java -jar ../openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \ +java -jar "$JAR_FILE" generate \ -i "$SPEC_FILE" \ -g markdown \ -o ./docs