diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..9f4c40b2 --- /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-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: '17' + # Run the core module's tests from the repo root (multi-module settings.gradle) so the + # generated client builds as a dependency and the hand-written SSO unit + integration + # tests run. Running from inside core/ resolves to the wrong (client) project. + - name: Run tests + run: | + chmod +x core/gradlew + ./core/gradlew :core:test --no-daemon + env: + FASTCOMMENTS_API_KEY: ${{ secrets.FASTCOMMENTS_API_KEY }} + FASTCOMMENTS_TENANT_ID: ${{ secrets.FASTCOMMENTS_TENANT_ID }} diff --git a/.gitignore b/.gitignore index f161e398..52462a22 100644 --- a/.gitignore +++ b/.gitignore @@ -19,5 +19,8 @@ gradle-app.setting .project # JDT-specific (Eclipse Java Development Tools) .classpath +# Eclipse Buildship (Gradle) project settings +.settings/ .idea +openapi-generator-cli.jar diff --git a/README.md b/README.md index d896c993..0cdd6bf2 100644 --- a/README.md +++ b/README.md @@ -79,9 +79,14 @@ to make working with the API easier, and the `pubsub` module which is a library ### 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 +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` powers the moderator dashboard. It contains methods for comment moderation (list, count, search, logs, and export), moderation actions (remove/restore, +flag, set review/spam/approval status, votes, and reopen/close thread), bans (ban from comment, undo a ban, pre-ban summaries, ban status and preferences, and banned-user counts), +and badges & trust (award/remove a badge, manual badges, get/set trust factor, and user internal profile). Every `ModerationApi` method accepts an `sso` parameter so the call can be +performed on behalf of an SSO-authenticated moderator. + ## Quick Start ### Using Authenticated APIs (DefaultApi) @@ -146,6 +151,28 @@ try { } ``` +### Using Moderation APIs (ModerationApi) + +The `ModerationApi` drives the moderator dashboard. Each method accepts an `sso` parameter identifying the SSO-authenticated moderator on whose behalf the request is made: + +```java +import com.fastcomments.api.ModerationApi; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.model.*; + +ModerationApi moderationApi = new ModerationApi(); + +try { + // List comments awaiting moderation + ModerationAPIGetCommentsResponse response = moderationApi.getApiComments() + .sso("YOUR_SSO_TOKEN") + .execute(); + System.out.println(response); +} catch (ApiException e) { + e.printStackTrace(); +} +``` + ### Common Issues 1. **401 "missing-api-key" error**: Make sure you call `apiClient.setApiKey("YOUR_KEY")` before creating the DefaultApi instance. diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 632bdf31..fb0b9ca0 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -6,9 +6,14 @@ api/openapi.yaml build.gradle build.sbt docs/APIAuditLog.md +docs/APIBanUserChangeLog.md +docs/APIBanUserChangedValues.md +docs/APIBannedUser.md +docs/APIBannedUserWithMultiMatchInfo.md docs/APIComment.md docs/APICommentBase.md docs/APICommentBaseMeta.md +docs/APICommentCommonBannedUser.md docs/APICreateUserBadgeResponse.md docs/APIDomainConfiguration.md docs/APIEmptyResponse.md @@ -20,8 +25,11 @@ docs/APIGetUserBadgeProgressListResponse.md docs/APIGetUserBadgeProgressResponse.md docs/APIGetUserBadgeResponse.md docs/APIGetUserBadgesResponse.md +docs/APIModerateGetUserBanPreferencesResponse.md +docs/APIModerateUserBanPreferences.md docs/APIPage.md docs/APISSOUser.md +docs/APISaveCommentResponse.md docs/APIStatus.md docs/APITenant.md docs/APITenantDailyUsage.md @@ -29,16 +37,17 @@ docs/APITicket.md docs/APITicketDetail.md docs/APITicketFile.md docs/APIUserSubscription.md -docs/AddDomainConfig200Response.md -docs/AddDomainConfig200ResponseAnyOf.md docs/AddDomainConfigParams.md -docs/AddHashTag200Response.md -docs/AddHashTagsBulk200Response.md +docs/AddDomainConfigResponse.md +docs/AddDomainConfigResponseAnyOf.md docs/AddPageAPIResponse.md docs/AddSSOUserAPIResponse.md -docs/AggregateQuestionResults200Response.md +docs/AdjustCommentVotesParams.md +docs/AdjustVotesResponse.md docs/AggregateQuestionResultsResponse.md +docs/AggregateResponse.md docs/AggregateTimeBucket.md +docs/AggregationAPIError.md docs/AggregationItem.md docs/AggregationOpType.md docs/AggregationOperation.md @@ -47,24 +56,30 @@ docs/AggregationRequestSort.md docs/AggregationResponse.md docs/AggregationResponseStats.md docs/AggregationValue.md +docs/AwardUserBadgeResponse.md +docs/BanUserFromCommentResult.md +docs/BanUserUndoParams.md +docs/BannedUserMatch.md +docs/BannedUserMatchMatchedOnValue.md +docs/BannedUserMatchType.md docs/BillingInfo.md docs/BlockFromCommentParams.md -docs/BlockFromCommentPublic200Response.md docs/BlockSuccess.md +docs/BuildModerationFilterParams.md +docs/BuildModerationFilterResponse.md docs/BulkAggregateQuestionItem.md -docs/BulkAggregateQuestionResults200Response.md docs/BulkAggregateQuestionResultsRequest.md docs/BulkAggregateQuestionResultsResponse.md docs/BulkCreateHashTagsBody.md docs/BulkCreateHashTagsBodyTagsInner.md docs/BulkCreateHashTagsResponse.md +docs/BulkCreateHashTagsResponseResultsInner.md +docs/BulkPreBanParams.md +docs/BulkPreBanSummary.md docs/ChangeCommentPinStatusResponse.md -docs/ChangeTicketState200Response.md docs/ChangeTicketStateBody.md docs/ChangeTicketStateResponse.md docs/CheckBlockedCommentsResponse.md -docs/CheckedCommentsForBlocked200Response.md -docs/CombineCommentsWithQuestionResults200Response.md docs/CombineQuestionResultsWithCommentsResponse.md docs/CommentData.md docs/CommentHTMLRenderingMode.md @@ -79,57 +94,43 @@ docs/CommentUserBadgeInfo.md docs/CommentUserHashTagInfo.md docs/CommentUserMentionInfo.md docs/CommenterNameFormats.md +docs/CommentsByIdsParams.md docs/CreateAPIPageData.md docs/CreateAPISSOUserData.md docs/CreateAPIUserSubscriptionData.md docs/CreateCommentParams.md -docs/CreateCommentPublic200Response.md -docs/CreateEmailTemplate200Response.md docs/CreateEmailTemplateBody.md docs/CreateEmailTemplateResponse.md -docs/CreateFeedPost200Response.md docs/CreateFeedPostParams.md -docs/CreateFeedPostPublic200Response.md docs/CreateFeedPostResponse.md docs/CreateFeedPostsResponse.md docs/CreateHashTagBody.md docs/CreateHashTagResponse.md -docs/CreateModerator200Response.md docs/CreateModeratorBody.md docs/CreateModeratorResponse.md -docs/CreateQuestionConfig200Response.md docs/CreateQuestionConfigBody.md docs/CreateQuestionConfigResponse.md -docs/CreateQuestionResult200Response.md docs/CreateQuestionResultBody.md docs/CreateQuestionResultResponse.md docs/CreateSubscriptionAPIResponse.md -docs/CreateTenant200Response.md docs/CreateTenantBody.md -docs/CreateTenantPackage200Response.md docs/CreateTenantPackageBody.md docs/CreateTenantPackageResponse.md docs/CreateTenantResponse.md -docs/CreateTenantUser200Response.md docs/CreateTenantUserBody.md docs/CreateTenantUserResponse.md -docs/CreateTicket200Response.md docs/CreateTicketBody.md docs/CreateTicketResponse.md -docs/CreateUserBadge200Response.md docs/CreateUserBadgeParams.md +docs/CreateV1PageReact.md docs/CustomConfigParameters.md docs/CustomEmailTemplate.md docs/DefaultApi.md -docs/DeleteComment200Response.md docs/DeleteCommentAction.md -docs/DeleteCommentPublic200Response.md docs/DeleteCommentResult.md -docs/DeleteCommentVote200Response.md -docs/DeleteDomainConfig200Response.md -docs/DeleteFeedPostPublic200Response.md -docs/DeleteFeedPostPublic200ResponseAnyOf.md -docs/DeleteHashTagRequest.md +docs/DeleteDomainConfigResponse.md +docs/DeleteFeedPostPublicResponse.md +docs/DeleteHashTagRequestBody.md docs/DeletePageAPIResponse.md docs/DeleteSSOUserAPIResponse.md docs/DeleteSubscriptionAPIResponse.md @@ -148,126 +149,125 @@ docs/FeedPostStats.md docs/FeedPostsStatsResponse.md docs/FindCommentsByRangeItem.md docs/FindCommentsByRangeResponse.md -docs/FlagComment200Response.md -docs/FlagCommentPublic200Response.md docs/FlagCommentResponse.md -docs/GetAuditLogs200Response.md docs/GetAuditLogsResponse.md -docs/GetCachedNotificationCount200Response.md +docs/GetBannedUsersCountResponse.md +docs/GetBannedUsersFromCommentResponse.md docs/GetCachedNotificationCountResponse.md -docs/GetComment200Response.md -docs/GetCommentText200Response.md -docs/GetCommentVoteUserNames200Response.md +docs/GetCommentBanStatusResponse.md +docs/GetCommentTextResponse.md docs/GetCommentVoteUserNamesSuccessResponse.md -docs/GetComments200Response.md -docs/GetCommentsPublic200Response.md +docs/GetCommentsForUserResponse.md docs/GetCommentsResponsePublicComment.md docs/GetCommentsResponseWithPresencePublicComment.md -docs/GetDomainConfig200Response.md -docs/GetDomainConfigs200Response.md -docs/GetDomainConfigs200ResponseAnyOf.md -docs/GetDomainConfigs200ResponseAnyOf1.md -docs/GetEmailTemplate200Response.md -docs/GetEmailTemplateDefinitions200Response.md +docs/GetDomainConfigResponse.md +docs/GetDomainConfigsResponse.md +docs/GetDomainConfigsResponseAnyOf.md +docs/GetDomainConfigsResponseAnyOf1.md docs/GetEmailTemplateDefinitionsResponse.md -docs/GetEmailTemplateRenderErrors200Response.md docs/GetEmailTemplateRenderErrorsResponse.md docs/GetEmailTemplateResponse.md -docs/GetEmailTemplates200Response.md docs/GetEmailTemplatesResponse.md -docs/GetEventLog200Response.md docs/GetEventLogResponse.md -docs/GetFeedPosts200Response.md -docs/GetFeedPostsPublic200Response.md docs/GetFeedPostsResponse.md -docs/GetFeedPostsStats200Response.md -docs/GetHashTags200Response.md +docs/GetGifsSearchResponse.md +docs/GetGifsTrendingResponse.md docs/GetHashTagsResponse.md -docs/GetModerator200Response.md docs/GetModeratorResponse.md -docs/GetModerators200Response.md docs/GetModeratorsResponse.md docs/GetMyNotificationsResponse.md -docs/GetNotificationCount200Response.md docs/GetNotificationCountResponse.md -docs/GetNotifications200Response.md docs/GetNotificationsResponse.md docs/GetPageByURLIdAPIResponse.md docs/GetPagesAPIResponse.md -docs/GetPendingWebhookEventCount200Response.md docs/GetPendingWebhookEventCountResponse.md -docs/GetPendingWebhookEvents200Response.md docs/GetPendingWebhookEventsResponse.md docs/GetPublicFeedPostsResponse.md -docs/GetQuestionConfig200Response.md +docs/GetPublicPagesResponse.md docs/GetQuestionConfigResponse.md -docs/GetQuestionConfigs200Response.md docs/GetQuestionConfigsResponse.md -docs/GetQuestionResult200Response.md docs/GetQuestionResultResponse.md -docs/GetQuestionResults200Response.md docs/GetQuestionResultsResponse.md docs/GetSSOUserByEmailAPIResponse.md docs/GetSSOUserByIdAPIResponse.md -docs/GetSSOUsers200Response.md +docs/GetSSOUsersResponse.md docs/GetSubscriptionsAPIResponse.md -docs/GetTenant200Response.md -docs/GetTenantDailyUsages200Response.md docs/GetTenantDailyUsagesResponse.md -docs/GetTenantPackage200Response.md +docs/GetTenantManualBadgesResponse.md docs/GetTenantPackageResponse.md -docs/GetTenantPackages200Response.md docs/GetTenantPackagesResponse.md docs/GetTenantResponse.md -docs/GetTenantUser200Response.md docs/GetTenantUserResponse.md -docs/GetTenantUsers200Response.md docs/GetTenantUsersResponse.md -docs/GetTenants200Response.md docs/GetTenantsResponse.md -docs/GetTicket200Response.md docs/GetTicketResponse.md -docs/GetTickets200Response.md docs/GetTicketsResponse.md -docs/GetUser200Response.md -docs/GetUserBadge200Response.md -docs/GetUserBadgeProgressById200Response.md -docs/GetUserBadgeProgressList200Response.md -docs/GetUserBadges200Response.md -docs/GetUserNotificationCount200Response.md +docs/GetTranslationsResponse.md +docs/GetUserInternalProfileResponse.md +docs/GetUserInternalProfileResponseProfile.md +docs/GetUserManualBadgesResponse.md docs/GetUserNotificationCountResponse.md -docs/GetUserNotifications200Response.md -docs/GetUserPresenceStatuses200Response.md docs/GetUserPresenceStatusesResponse.md -docs/GetUserReactsPublic200Response.md docs/GetUserResponse.md -docs/GetVotes200Response.md -docs/GetVotesForUser200Response.md +docs/GetUserTrustFactorResponse.md +docs/GetV1PageLikes.md +docs/GetV2PageReactUsersResponse.md +docs/GetV2PageReacts.md docs/GetVotesForUserResponse.md docs/GetVotesResponse.md +docs/GifGetLargeResponse.md docs/GifRating.md +docs/GifSearchInternalError.md +docs/GifSearchResponse.md +docs/GifSearchResponseImagesInnerInner.md docs/HeaderAccountNotification.md docs/HeaderState.md docs/IgnoredResponse.md docs/ImageContentProfanityLevel.md +docs/ImportedAgentApprovalNotificationFrequency.md docs/ImportedSiteType.md docs/LiveEvent.md docs/LiveEventExtraInfo.md docs/LiveEventType.md -docs/LockComment200Response.md docs/MediaAsset.md docs/MentionAutoCompleteMode.md docs/MetaItem.md +docs/ModerationAPIChildCommentsResponse.md +docs/ModerationAPIComment.md +docs/ModerationAPICommentLog.md +docs/ModerationAPICommentResponse.md +docs/ModerationAPICountCommentsResponse.md +docs/ModerationAPIGetCommentIdsResponse.md +docs/ModerationAPIGetCommentsResponse.md +docs/ModerationAPIGetLogsResponse.md +docs/ModerationApi.md +docs/ModerationCommentSearchResponse.md +docs/ModerationExportResponse.md +docs/ModerationExportStatusResponse.md +docs/ModerationFilter.md +docs/ModerationPageSearchProjected.md +docs/ModerationPageSearchResponse.md +docs/ModerationSiteSearchProjected.md +docs/ModerationSiteSearchResponse.md +docs/ModerationSuggestResponse.md +docs/ModerationUserSearchProjected.md +docs/ModerationUserSearchResponse.md docs/Moderator.md docs/NotificationAndCount.md docs/NotificationObjectType.md docs/NotificationType.md +docs/PageUserEntry.md +docs/PageUsersInfoResponse.md +docs/PageUsersOfflineResponse.md +docs/PageUsersOnlineResponse.md +docs/PagesSortBy.md docs/PatchDomainConfigParams.md -docs/PatchHashTag200Response.md +docs/PatchDomainConfigResponse.md docs/PatchPageAPIResponse.md docs/PatchSSOUserAPIResponse.md docs/PendingCommentToSyncOutbound.md -docs/PinComment200Response.md +docs/PostRemoveCommentResponse.md +docs/PreBanSummary.md docs/PubSubComment.md docs/PubSubCommentBase.md docs/PubSubVote.md @@ -279,7 +279,9 @@ docs/PublicBlockFromCommentParams.md docs/PublicComment.md docs/PublicCommentBase.md docs/PublicFeedPostsResponse.md +docs/PublicPage.md docs/PublicVote.md +docs/PutDomainConfigResponse.md docs/PutSSOUserAPIResponse.md docs/QueryPredicate.md docs/QueryPredicateValue.md @@ -292,11 +294,10 @@ docs/QuestionResultAggregationOverall.md docs/QuestionSubQuestionVisibility.md docs/QuestionWhenSave.md docs/ReactBodyParams.md -docs/ReactFeedPostPublic200Response.md docs/ReactFeedPostResponse.md docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md -docs/RecordStringStringOrNumberValue.md -docs/RenderEmailTemplate200Response.md +docs/RemoveCommentActionResponse.md +docs/RemoveUserBadgeResponse.md docs/RenderEmailTemplateBody.md docs/RenderEmailTemplateResponse.md docs/RenderableUserNotification.md @@ -304,26 +305,27 @@ docs/RepeatCommentCheckIgnoredReason.md docs/RepeatCommentHandlingAction.md docs/ReplaceTenantPackageBody.md docs/ReplaceTenantUserBody.md -docs/ResetUserNotifications200Response.md docs/ResetUserNotificationsResponse.md docs/SORTDIR.md docs/SSOSecurityLevel.md -docs/SaveComment200Response.md -docs/SaveCommentResponse.md docs/SaveCommentResponseOptimized.md +docs/SaveCommentsBulkResponse.md docs/SaveCommentsResponseWithPresence.md -docs/SearchUsers200Response.md docs/SearchUsersResponse.md +docs/SearchUsersResult.md docs/SearchUsersSectionedResponse.md -docs/SetCommentText200Response.md +docs/SetCommentApprovedResponse.md +docs/SetCommentTextParams.md +docs/SetCommentTextResponse.md docs/SetCommentTextResult.md +docs/SetUserTrustFactorResponse.md docs/SizePreset.md docs/SortDirections.md docs/SpamRule.md docs/TOSConfig.md +docs/TenantBadge.md docs/TenantHashTag.md docs/TenantPackage.md -docs/UnBlockCommentPublic200Response.md docs/UnBlockFromCommentParams.md docs/UnblockSuccess.md docs/UpdatableCommentParams.md @@ -343,9 +345,10 @@ docs/UpdateSubscriptionAPIResponse.md docs/UpdateTenantBody.md docs/UpdateTenantPackageBody.md docs/UpdateTenantUserBody.md -docs/UpdateUserBadge200Response.md docs/UpdateUserBadgeParams.md -docs/UpdateUserNotificationStatus200Response.md +docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md +docs/UpdateUserNotificationPageSubscriptionStatusResponse.md +docs/UpdateUserNotificationStatusResponse.md docs/UploadImageResponse.md docs/User.md docs/UserBadge.md @@ -359,8 +362,8 @@ docs/UserSearchResult.md docs/UserSearchSection.md docs/UserSearchSectionResult.md docs/UserSessionInfo.md +docs/UsersListLocation.md docs/VoteBodyParams.md -docs/VoteComment200Response.md docs/VoteDeleteResponse.md docs/VoteResponse.md docs/VoteResponseUser.md @@ -375,6 +378,7 @@ pom.xml settings.gradle src/main/AndroidManifest.xml src/main/java/com/fastcomments/api/DefaultApi.java +src/main/java/com/fastcomments/api/ModerationApi.java src/main/java/com/fastcomments/api/PublicApi.java src/main/java/com/fastcomments/invoker/ApiCallback.java src/main/java/com/fastcomments/invoker/ApiClient.java @@ -394,9 +398,14 @@ src/main/java/com/fastcomments/invoker/auth/Authentication.java src/main/java/com/fastcomments/invoker/auth/HttpBasicAuth.java src/main/java/com/fastcomments/invoker/auth/HttpBearerAuth.java src/main/java/com/fastcomments/model/APIAuditLog.java +src/main/java/com/fastcomments/model/APIBanUserChangeLog.java +src/main/java/com/fastcomments/model/APIBanUserChangedValues.java +src/main/java/com/fastcomments/model/APIBannedUser.java +src/main/java/com/fastcomments/model/APIBannedUserWithMultiMatchInfo.java src/main/java/com/fastcomments/model/APIComment.java src/main/java/com/fastcomments/model/APICommentBase.java src/main/java/com/fastcomments/model/APICommentBaseMeta.java +src/main/java/com/fastcomments/model/APICommentCommonBannedUser.java src/main/java/com/fastcomments/model/APICreateUserBadgeResponse.java src/main/java/com/fastcomments/model/APIDomainConfiguration.java src/main/java/com/fastcomments/model/APIEmptyResponse.java @@ -408,8 +417,11 @@ src/main/java/com/fastcomments/model/APIGetUserBadgeProgressListResponse.java src/main/java/com/fastcomments/model/APIGetUserBadgeProgressResponse.java src/main/java/com/fastcomments/model/APIGetUserBadgeResponse.java src/main/java/com/fastcomments/model/APIGetUserBadgesResponse.java +src/main/java/com/fastcomments/model/APIModerateGetUserBanPreferencesResponse.java +src/main/java/com/fastcomments/model/APIModerateUserBanPreferences.java src/main/java/com/fastcomments/model/APIPage.java src/main/java/com/fastcomments/model/APISSOUser.java +src/main/java/com/fastcomments/model/APISaveCommentResponse.java src/main/java/com/fastcomments/model/APIStatus.java src/main/java/com/fastcomments/model/APITenant.java src/main/java/com/fastcomments/model/APITenantDailyUsage.java @@ -418,16 +430,17 @@ src/main/java/com/fastcomments/model/APITicketDetail.java src/main/java/com/fastcomments/model/APITicketFile.java src/main/java/com/fastcomments/model/APIUserSubscription.java src/main/java/com/fastcomments/model/AbstractOpenApiSchema.java -src/main/java/com/fastcomments/model/AddDomainConfig200Response.java -src/main/java/com/fastcomments/model/AddDomainConfig200ResponseAnyOf.java src/main/java/com/fastcomments/model/AddDomainConfigParams.java -src/main/java/com/fastcomments/model/AddHashTag200Response.java -src/main/java/com/fastcomments/model/AddHashTagsBulk200Response.java +src/main/java/com/fastcomments/model/AddDomainConfigResponse.java +src/main/java/com/fastcomments/model/AddDomainConfigResponseAnyOf.java src/main/java/com/fastcomments/model/AddPageAPIResponse.java src/main/java/com/fastcomments/model/AddSSOUserAPIResponse.java -src/main/java/com/fastcomments/model/AggregateQuestionResults200Response.java +src/main/java/com/fastcomments/model/AdjustCommentVotesParams.java +src/main/java/com/fastcomments/model/AdjustVotesResponse.java src/main/java/com/fastcomments/model/AggregateQuestionResultsResponse.java +src/main/java/com/fastcomments/model/AggregateResponse.java src/main/java/com/fastcomments/model/AggregateTimeBucket.java +src/main/java/com/fastcomments/model/AggregationAPIError.java src/main/java/com/fastcomments/model/AggregationItem.java src/main/java/com/fastcomments/model/AggregationOpType.java src/main/java/com/fastcomments/model/AggregationOperation.java @@ -436,24 +449,30 @@ src/main/java/com/fastcomments/model/AggregationRequestSort.java src/main/java/com/fastcomments/model/AggregationResponse.java src/main/java/com/fastcomments/model/AggregationResponseStats.java src/main/java/com/fastcomments/model/AggregationValue.java +src/main/java/com/fastcomments/model/AwardUserBadgeResponse.java +src/main/java/com/fastcomments/model/BanUserFromCommentResult.java +src/main/java/com/fastcomments/model/BanUserUndoParams.java +src/main/java/com/fastcomments/model/BannedUserMatch.java +src/main/java/com/fastcomments/model/BannedUserMatchMatchedOnValue.java +src/main/java/com/fastcomments/model/BannedUserMatchType.java src/main/java/com/fastcomments/model/BillingInfo.java src/main/java/com/fastcomments/model/BlockFromCommentParams.java -src/main/java/com/fastcomments/model/BlockFromCommentPublic200Response.java src/main/java/com/fastcomments/model/BlockSuccess.java +src/main/java/com/fastcomments/model/BuildModerationFilterParams.java +src/main/java/com/fastcomments/model/BuildModerationFilterResponse.java src/main/java/com/fastcomments/model/BulkAggregateQuestionItem.java -src/main/java/com/fastcomments/model/BulkAggregateQuestionResults200Response.java src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsRequest.java src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse.java src/main/java/com/fastcomments/model/BulkCreateHashTagsBody.java src/main/java/com/fastcomments/model/BulkCreateHashTagsBodyTagsInner.java src/main/java/com/fastcomments/model/BulkCreateHashTagsResponse.java +src/main/java/com/fastcomments/model/BulkCreateHashTagsResponseResultsInner.java +src/main/java/com/fastcomments/model/BulkPreBanParams.java +src/main/java/com/fastcomments/model/BulkPreBanSummary.java src/main/java/com/fastcomments/model/ChangeCommentPinStatusResponse.java -src/main/java/com/fastcomments/model/ChangeTicketState200Response.java src/main/java/com/fastcomments/model/ChangeTicketStateBody.java src/main/java/com/fastcomments/model/ChangeTicketStateResponse.java src/main/java/com/fastcomments/model/CheckBlockedCommentsResponse.java -src/main/java/com/fastcomments/model/CheckedCommentsForBlocked200Response.java -src/main/java/com/fastcomments/model/CombineCommentsWithQuestionResults200Response.java src/main/java/com/fastcomments/model/CombineQuestionResultsWithCommentsResponse.java src/main/java/com/fastcomments/model/CommentData.java src/main/java/com/fastcomments/model/CommentHTMLRenderingMode.java @@ -468,56 +487,42 @@ src/main/java/com/fastcomments/model/CommentUserBadgeInfo.java src/main/java/com/fastcomments/model/CommentUserHashTagInfo.java src/main/java/com/fastcomments/model/CommentUserMentionInfo.java src/main/java/com/fastcomments/model/CommenterNameFormats.java +src/main/java/com/fastcomments/model/CommentsByIdsParams.java src/main/java/com/fastcomments/model/CreateAPIPageData.java src/main/java/com/fastcomments/model/CreateAPISSOUserData.java src/main/java/com/fastcomments/model/CreateAPIUserSubscriptionData.java src/main/java/com/fastcomments/model/CreateCommentParams.java -src/main/java/com/fastcomments/model/CreateCommentPublic200Response.java -src/main/java/com/fastcomments/model/CreateEmailTemplate200Response.java src/main/java/com/fastcomments/model/CreateEmailTemplateBody.java src/main/java/com/fastcomments/model/CreateEmailTemplateResponse.java -src/main/java/com/fastcomments/model/CreateFeedPost200Response.java src/main/java/com/fastcomments/model/CreateFeedPostParams.java -src/main/java/com/fastcomments/model/CreateFeedPostPublic200Response.java src/main/java/com/fastcomments/model/CreateFeedPostResponse.java src/main/java/com/fastcomments/model/CreateFeedPostsResponse.java src/main/java/com/fastcomments/model/CreateHashTagBody.java src/main/java/com/fastcomments/model/CreateHashTagResponse.java -src/main/java/com/fastcomments/model/CreateModerator200Response.java src/main/java/com/fastcomments/model/CreateModeratorBody.java src/main/java/com/fastcomments/model/CreateModeratorResponse.java -src/main/java/com/fastcomments/model/CreateQuestionConfig200Response.java src/main/java/com/fastcomments/model/CreateQuestionConfigBody.java src/main/java/com/fastcomments/model/CreateQuestionConfigResponse.java -src/main/java/com/fastcomments/model/CreateQuestionResult200Response.java src/main/java/com/fastcomments/model/CreateQuestionResultBody.java src/main/java/com/fastcomments/model/CreateQuestionResultResponse.java src/main/java/com/fastcomments/model/CreateSubscriptionAPIResponse.java -src/main/java/com/fastcomments/model/CreateTenant200Response.java src/main/java/com/fastcomments/model/CreateTenantBody.java -src/main/java/com/fastcomments/model/CreateTenantPackage200Response.java src/main/java/com/fastcomments/model/CreateTenantPackageBody.java src/main/java/com/fastcomments/model/CreateTenantPackageResponse.java src/main/java/com/fastcomments/model/CreateTenantResponse.java -src/main/java/com/fastcomments/model/CreateTenantUser200Response.java src/main/java/com/fastcomments/model/CreateTenantUserBody.java src/main/java/com/fastcomments/model/CreateTenantUserResponse.java -src/main/java/com/fastcomments/model/CreateTicket200Response.java src/main/java/com/fastcomments/model/CreateTicketBody.java src/main/java/com/fastcomments/model/CreateTicketResponse.java -src/main/java/com/fastcomments/model/CreateUserBadge200Response.java src/main/java/com/fastcomments/model/CreateUserBadgeParams.java +src/main/java/com/fastcomments/model/CreateV1PageReact.java src/main/java/com/fastcomments/model/CustomConfigParameters.java src/main/java/com/fastcomments/model/CustomEmailTemplate.java -src/main/java/com/fastcomments/model/DeleteComment200Response.java src/main/java/com/fastcomments/model/DeleteCommentAction.java -src/main/java/com/fastcomments/model/DeleteCommentPublic200Response.java src/main/java/com/fastcomments/model/DeleteCommentResult.java -src/main/java/com/fastcomments/model/DeleteCommentVote200Response.java -src/main/java/com/fastcomments/model/DeleteDomainConfig200Response.java -src/main/java/com/fastcomments/model/DeleteFeedPostPublic200Response.java -src/main/java/com/fastcomments/model/DeleteFeedPostPublic200ResponseAnyOf.java -src/main/java/com/fastcomments/model/DeleteHashTagRequest.java +src/main/java/com/fastcomments/model/DeleteDomainConfigResponse.java +src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponse.java +src/main/java/com/fastcomments/model/DeleteHashTagRequestBody.java src/main/java/com/fastcomments/model/DeletePageAPIResponse.java src/main/java/com/fastcomments/model/DeleteSSOUserAPIResponse.java src/main/java/com/fastcomments/model/DeleteSubscriptionAPIResponse.java @@ -536,126 +541,124 @@ src/main/java/com/fastcomments/model/FeedPostStats.java src/main/java/com/fastcomments/model/FeedPostsStatsResponse.java src/main/java/com/fastcomments/model/FindCommentsByRangeItem.java src/main/java/com/fastcomments/model/FindCommentsByRangeResponse.java -src/main/java/com/fastcomments/model/FlagComment200Response.java -src/main/java/com/fastcomments/model/FlagCommentPublic200Response.java src/main/java/com/fastcomments/model/FlagCommentResponse.java -src/main/java/com/fastcomments/model/GetAuditLogs200Response.java src/main/java/com/fastcomments/model/GetAuditLogsResponse.java -src/main/java/com/fastcomments/model/GetCachedNotificationCount200Response.java +src/main/java/com/fastcomments/model/GetBannedUsersCountResponse.java +src/main/java/com/fastcomments/model/GetBannedUsersFromCommentResponse.java src/main/java/com/fastcomments/model/GetCachedNotificationCountResponse.java -src/main/java/com/fastcomments/model/GetComment200Response.java -src/main/java/com/fastcomments/model/GetCommentText200Response.java -src/main/java/com/fastcomments/model/GetCommentVoteUserNames200Response.java +src/main/java/com/fastcomments/model/GetCommentBanStatusResponse.java +src/main/java/com/fastcomments/model/GetCommentTextResponse.java src/main/java/com/fastcomments/model/GetCommentVoteUserNamesSuccessResponse.java -src/main/java/com/fastcomments/model/GetComments200Response.java -src/main/java/com/fastcomments/model/GetCommentsPublic200Response.java +src/main/java/com/fastcomments/model/GetCommentsForUserResponse.java src/main/java/com/fastcomments/model/GetCommentsResponsePublicComment.java src/main/java/com/fastcomments/model/GetCommentsResponseWithPresencePublicComment.java -src/main/java/com/fastcomments/model/GetDomainConfig200Response.java -src/main/java/com/fastcomments/model/GetDomainConfigs200Response.java -src/main/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOf.java -src/main/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOf1.java -src/main/java/com/fastcomments/model/GetEmailTemplate200Response.java -src/main/java/com/fastcomments/model/GetEmailTemplateDefinitions200Response.java +src/main/java/com/fastcomments/model/GetDomainConfigResponse.java +src/main/java/com/fastcomments/model/GetDomainConfigsResponse.java +src/main/java/com/fastcomments/model/GetDomainConfigsResponseAnyOf.java +src/main/java/com/fastcomments/model/GetDomainConfigsResponseAnyOf1.java src/main/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse.java -src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrors200Response.java src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse.java src/main/java/com/fastcomments/model/GetEmailTemplateResponse.java -src/main/java/com/fastcomments/model/GetEmailTemplates200Response.java src/main/java/com/fastcomments/model/GetEmailTemplatesResponse.java -src/main/java/com/fastcomments/model/GetEventLog200Response.java src/main/java/com/fastcomments/model/GetEventLogResponse.java -src/main/java/com/fastcomments/model/GetFeedPosts200Response.java -src/main/java/com/fastcomments/model/GetFeedPostsPublic200Response.java src/main/java/com/fastcomments/model/GetFeedPostsResponse.java -src/main/java/com/fastcomments/model/GetFeedPostsStats200Response.java -src/main/java/com/fastcomments/model/GetHashTags200Response.java +src/main/java/com/fastcomments/model/GetGifsSearchResponse.java +src/main/java/com/fastcomments/model/GetGifsTrendingResponse.java src/main/java/com/fastcomments/model/GetHashTagsResponse.java -src/main/java/com/fastcomments/model/GetModerator200Response.java src/main/java/com/fastcomments/model/GetModeratorResponse.java -src/main/java/com/fastcomments/model/GetModerators200Response.java src/main/java/com/fastcomments/model/GetModeratorsResponse.java src/main/java/com/fastcomments/model/GetMyNotificationsResponse.java -src/main/java/com/fastcomments/model/GetNotificationCount200Response.java src/main/java/com/fastcomments/model/GetNotificationCountResponse.java -src/main/java/com/fastcomments/model/GetNotifications200Response.java src/main/java/com/fastcomments/model/GetNotificationsResponse.java src/main/java/com/fastcomments/model/GetPageByURLIdAPIResponse.java src/main/java/com/fastcomments/model/GetPagesAPIResponse.java -src/main/java/com/fastcomments/model/GetPendingWebhookEventCount200Response.java src/main/java/com/fastcomments/model/GetPendingWebhookEventCountResponse.java -src/main/java/com/fastcomments/model/GetPendingWebhookEvents200Response.java src/main/java/com/fastcomments/model/GetPendingWebhookEventsResponse.java src/main/java/com/fastcomments/model/GetPublicFeedPostsResponse.java -src/main/java/com/fastcomments/model/GetQuestionConfig200Response.java +src/main/java/com/fastcomments/model/GetPublicPagesResponse.java src/main/java/com/fastcomments/model/GetQuestionConfigResponse.java -src/main/java/com/fastcomments/model/GetQuestionConfigs200Response.java src/main/java/com/fastcomments/model/GetQuestionConfigsResponse.java -src/main/java/com/fastcomments/model/GetQuestionResult200Response.java src/main/java/com/fastcomments/model/GetQuestionResultResponse.java -src/main/java/com/fastcomments/model/GetQuestionResults200Response.java src/main/java/com/fastcomments/model/GetQuestionResultsResponse.java src/main/java/com/fastcomments/model/GetSSOUserByEmailAPIResponse.java src/main/java/com/fastcomments/model/GetSSOUserByIdAPIResponse.java -src/main/java/com/fastcomments/model/GetSSOUsers200Response.java +src/main/java/com/fastcomments/model/GetSSOUsersResponse.java src/main/java/com/fastcomments/model/GetSubscriptionsAPIResponse.java -src/main/java/com/fastcomments/model/GetTenant200Response.java -src/main/java/com/fastcomments/model/GetTenantDailyUsages200Response.java src/main/java/com/fastcomments/model/GetTenantDailyUsagesResponse.java -src/main/java/com/fastcomments/model/GetTenantPackage200Response.java +src/main/java/com/fastcomments/model/GetTenantManualBadgesResponse.java src/main/java/com/fastcomments/model/GetTenantPackageResponse.java -src/main/java/com/fastcomments/model/GetTenantPackages200Response.java src/main/java/com/fastcomments/model/GetTenantPackagesResponse.java src/main/java/com/fastcomments/model/GetTenantResponse.java -src/main/java/com/fastcomments/model/GetTenantUser200Response.java src/main/java/com/fastcomments/model/GetTenantUserResponse.java -src/main/java/com/fastcomments/model/GetTenantUsers200Response.java src/main/java/com/fastcomments/model/GetTenantUsersResponse.java -src/main/java/com/fastcomments/model/GetTenants200Response.java src/main/java/com/fastcomments/model/GetTenantsResponse.java -src/main/java/com/fastcomments/model/GetTicket200Response.java src/main/java/com/fastcomments/model/GetTicketResponse.java -src/main/java/com/fastcomments/model/GetTickets200Response.java src/main/java/com/fastcomments/model/GetTicketsResponse.java -src/main/java/com/fastcomments/model/GetUser200Response.java -src/main/java/com/fastcomments/model/GetUserBadge200Response.java -src/main/java/com/fastcomments/model/GetUserBadgeProgressById200Response.java -src/main/java/com/fastcomments/model/GetUserBadgeProgressList200Response.java -src/main/java/com/fastcomments/model/GetUserBadges200Response.java -src/main/java/com/fastcomments/model/GetUserNotificationCount200Response.java +src/main/java/com/fastcomments/model/GetTranslationsResponse.java +src/main/java/com/fastcomments/model/GetUserInternalProfileResponse.java +src/main/java/com/fastcomments/model/GetUserInternalProfileResponseProfile.java +src/main/java/com/fastcomments/model/GetUserManualBadgesResponse.java src/main/java/com/fastcomments/model/GetUserNotificationCountResponse.java -src/main/java/com/fastcomments/model/GetUserNotifications200Response.java -src/main/java/com/fastcomments/model/GetUserPresenceStatuses200Response.java src/main/java/com/fastcomments/model/GetUserPresenceStatusesResponse.java -src/main/java/com/fastcomments/model/GetUserReactsPublic200Response.java src/main/java/com/fastcomments/model/GetUserResponse.java -src/main/java/com/fastcomments/model/GetVotes200Response.java -src/main/java/com/fastcomments/model/GetVotesForUser200Response.java +src/main/java/com/fastcomments/model/GetUserTrustFactorResponse.java +src/main/java/com/fastcomments/model/GetV1PageLikes.java +src/main/java/com/fastcomments/model/GetV2PageReactUsersResponse.java +src/main/java/com/fastcomments/model/GetV2PageReacts.java src/main/java/com/fastcomments/model/GetVotesForUserResponse.java src/main/java/com/fastcomments/model/GetVotesResponse.java +src/main/java/com/fastcomments/model/GifGetLargeResponse.java src/main/java/com/fastcomments/model/GifRating.java +src/main/java/com/fastcomments/model/GifSearchInternalError.java +src/main/java/com/fastcomments/model/GifSearchResponse.java +src/main/java/com/fastcomments/model/GifSearchResponseImagesInnerInner.java src/main/java/com/fastcomments/model/HeaderAccountNotification.java src/main/java/com/fastcomments/model/HeaderState.java src/main/java/com/fastcomments/model/IgnoredResponse.java src/main/java/com/fastcomments/model/ImageContentProfanityLevel.java +src/main/java/com/fastcomments/model/ImportedAgentApprovalNotificationFrequency.java src/main/java/com/fastcomments/model/ImportedSiteType.java src/main/java/com/fastcomments/model/LiveEvent.java src/main/java/com/fastcomments/model/LiveEventExtraInfo.java src/main/java/com/fastcomments/model/LiveEventType.java -src/main/java/com/fastcomments/model/LockComment200Response.java src/main/java/com/fastcomments/model/MediaAsset.java src/main/java/com/fastcomments/model/MentionAutoCompleteMode.java src/main/java/com/fastcomments/model/MetaItem.java +src/main/java/com/fastcomments/model/ModerationAPIChildCommentsResponse.java +src/main/java/com/fastcomments/model/ModerationAPIComment.java +src/main/java/com/fastcomments/model/ModerationAPICommentLog.java +src/main/java/com/fastcomments/model/ModerationAPICommentResponse.java +src/main/java/com/fastcomments/model/ModerationAPICountCommentsResponse.java +src/main/java/com/fastcomments/model/ModerationAPIGetCommentIdsResponse.java +src/main/java/com/fastcomments/model/ModerationAPIGetCommentsResponse.java +src/main/java/com/fastcomments/model/ModerationAPIGetLogsResponse.java +src/main/java/com/fastcomments/model/ModerationCommentSearchResponse.java +src/main/java/com/fastcomments/model/ModerationExportResponse.java +src/main/java/com/fastcomments/model/ModerationExportStatusResponse.java +src/main/java/com/fastcomments/model/ModerationFilter.java +src/main/java/com/fastcomments/model/ModerationPageSearchProjected.java +src/main/java/com/fastcomments/model/ModerationPageSearchResponse.java +src/main/java/com/fastcomments/model/ModerationSiteSearchProjected.java +src/main/java/com/fastcomments/model/ModerationSiteSearchResponse.java +src/main/java/com/fastcomments/model/ModerationSuggestResponse.java +src/main/java/com/fastcomments/model/ModerationUserSearchProjected.java +src/main/java/com/fastcomments/model/ModerationUserSearchResponse.java src/main/java/com/fastcomments/model/Moderator.java src/main/java/com/fastcomments/model/NotificationAndCount.java src/main/java/com/fastcomments/model/NotificationObjectType.java src/main/java/com/fastcomments/model/NotificationType.java +src/main/java/com/fastcomments/model/PageUserEntry.java +src/main/java/com/fastcomments/model/PageUsersInfoResponse.java +src/main/java/com/fastcomments/model/PageUsersOfflineResponse.java +src/main/java/com/fastcomments/model/PageUsersOnlineResponse.java +src/main/java/com/fastcomments/model/PagesSortBy.java src/main/java/com/fastcomments/model/PatchDomainConfigParams.java -src/main/java/com/fastcomments/model/PatchHashTag200Response.java +src/main/java/com/fastcomments/model/PatchDomainConfigResponse.java src/main/java/com/fastcomments/model/PatchPageAPIResponse.java src/main/java/com/fastcomments/model/PatchSSOUserAPIResponse.java src/main/java/com/fastcomments/model/PendingCommentToSyncOutbound.java -src/main/java/com/fastcomments/model/PinComment200Response.java +src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java +src/main/java/com/fastcomments/model/PreBanSummary.java src/main/java/com/fastcomments/model/PubSubComment.java src/main/java/com/fastcomments/model/PubSubCommentBase.java src/main/java/com/fastcomments/model/PubSubVote.java @@ -666,7 +669,9 @@ src/main/java/com/fastcomments/model/PublicBlockFromCommentParams.java src/main/java/com/fastcomments/model/PublicComment.java src/main/java/com/fastcomments/model/PublicCommentBase.java src/main/java/com/fastcomments/model/PublicFeedPostsResponse.java +src/main/java/com/fastcomments/model/PublicPage.java src/main/java/com/fastcomments/model/PublicVote.java +src/main/java/com/fastcomments/model/PutDomainConfigResponse.java src/main/java/com/fastcomments/model/PutSSOUserAPIResponse.java src/main/java/com/fastcomments/model/QueryPredicate.java src/main/java/com/fastcomments/model/QueryPredicateValue.java @@ -679,11 +684,10 @@ src/main/java/com/fastcomments/model/QuestionResultAggregationOverall.java src/main/java/com/fastcomments/model/QuestionSubQuestionVisibility.java src/main/java/com/fastcomments/model/QuestionWhenSave.java src/main/java/com/fastcomments/model/ReactBodyParams.java -src/main/java/com/fastcomments/model/ReactFeedPostPublic200Response.java src/main/java/com/fastcomments/model/ReactFeedPostResponse.java src/main/java/com/fastcomments/model/RecordStringBeforeStringOrNullAfterStringOrNullValue.java -src/main/java/com/fastcomments/model/RecordStringStringOrNumberValue.java -src/main/java/com/fastcomments/model/RenderEmailTemplate200Response.java +src/main/java/com/fastcomments/model/RemoveCommentActionResponse.java +src/main/java/com/fastcomments/model/RemoveUserBadgeResponse.java src/main/java/com/fastcomments/model/RenderEmailTemplateBody.java src/main/java/com/fastcomments/model/RenderEmailTemplateResponse.java src/main/java/com/fastcomments/model/RenderableUserNotification.java @@ -691,26 +695,27 @@ src/main/java/com/fastcomments/model/RepeatCommentCheckIgnoredReason.java src/main/java/com/fastcomments/model/RepeatCommentHandlingAction.java src/main/java/com/fastcomments/model/ReplaceTenantPackageBody.java src/main/java/com/fastcomments/model/ReplaceTenantUserBody.java -src/main/java/com/fastcomments/model/ResetUserNotifications200Response.java src/main/java/com/fastcomments/model/ResetUserNotificationsResponse.java src/main/java/com/fastcomments/model/SORTDIR.java src/main/java/com/fastcomments/model/SSOSecurityLevel.java -src/main/java/com/fastcomments/model/SaveComment200Response.java -src/main/java/com/fastcomments/model/SaveCommentResponse.java src/main/java/com/fastcomments/model/SaveCommentResponseOptimized.java +src/main/java/com/fastcomments/model/SaveCommentsBulkResponse.java src/main/java/com/fastcomments/model/SaveCommentsResponseWithPresence.java -src/main/java/com/fastcomments/model/SearchUsers200Response.java src/main/java/com/fastcomments/model/SearchUsersResponse.java +src/main/java/com/fastcomments/model/SearchUsersResult.java src/main/java/com/fastcomments/model/SearchUsersSectionedResponse.java -src/main/java/com/fastcomments/model/SetCommentText200Response.java +src/main/java/com/fastcomments/model/SetCommentApprovedResponse.java +src/main/java/com/fastcomments/model/SetCommentTextParams.java +src/main/java/com/fastcomments/model/SetCommentTextResponse.java src/main/java/com/fastcomments/model/SetCommentTextResult.java +src/main/java/com/fastcomments/model/SetUserTrustFactorResponse.java src/main/java/com/fastcomments/model/SizePreset.java src/main/java/com/fastcomments/model/SortDirections.java src/main/java/com/fastcomments/model/SpamRule.java src/main/java/com/fastcomments/model/TOSConfig.java +src/main/java/com/fastcomments/model/TenantBadge.java src/main/java/com/fastcomments/model/TenantHashTag.java src/main/java/com/fastcomments/model/TenantPackage.java -src/main/java/com/fastcomments/model/UnBlockCommentPublic200Response.java src/main/java/com/fastcomments/model/UnBlockFromCommentParams.java src/main/java/com/fastcomments/model/UnblockSuccess.java src/main/java/com/fastcomments/model/UpdatableCommentParams.java @@ -730,9 +735,10 @@ src/main/java/com/fastcomments/model/UpdateSubscriptionAPIResponse.java src/main/java/com/fastcomments/model/UpdateTenantBody.java src/main/java/com/fastcomments/model/UpdateTenantPackageBody.java src/main/java/com/fastcomments/model/UpdateTenantUserBody.java -src/main/java/com/fastcomments/model/UpdateUserBadge200Response.java src/main/java/com/fastcomments/model/UpdateUserBadgeParams.java -src/main/java/com/fastcomments/model/UpdateUserNotificationStatus200Response.java +src/main/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponse.java +src/main/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponse.java +src/main/java/com/fastcomments/model/UpdateUserNotificationStatusResponse.java src/main/java/com/fastcomments/model/UploadImageResponse.java src/main/java/com/fastcomments/model/User.java src/main/java/com/fastcomments/model/UserBadge.java @@ -746,17 +752,23 @@ src/main/java/com/fastcomments/model/UserSearchResult.java src/main/java/com/fastcomments/model/UserSearchSection.java src/main/java/com/fastcomments/model/UserSearchSectionResult.java src/main/java/com/fastcomments/model/UserSessionInfo.java +src/main/java/com/fastcomments/model/UsersListLocation.java src/main/java/com/fastcomments/model/VoteBodyParams.java -src/main/java/com/fastcomments/model/VoteComment200Response.java src/main/java/com/fastcomments/model/VoteDeleteResponse.java src/main/java/com/fastcomments/model/VoteResponse.java src/main/java/com/fastcomments/model/VoteResponseUser.java src/main/java/com/fastcomments/model/VoteStyle.java src/test/java/com/fastcomments/api/DefaultApiTest.java +src/test/java/com/fastcomments/api/ModerationApiTest.java src/test/java/com/fastcomments/api/PublicApiTest.java src/test/java/com/fastcomments/model/APIAuditLogTest.java +src/test/java/com/fastcomments/model/APIBanUserChangeLogTest.java +src/test/java/com/fastcomments/model/APIBanUserChangedValuesTest.java +src/test/java/com/fastcomments/model/APIBannedUserTest.java +src/test/java/com/fastcomments/model/APIBannedUserWithMultiMatchInfoTest.java src/test/java/com/fastcomments/model/APICommentBaseMetaTest.java src/test/java/com/fastcomments/model/APICommentBaseTest.java +src/test/java/com/fastcomments/model/APICommentCommonBannedUserTest.java src/test/java/com/fastcomments/model/APICommentTest.java src/test/java/com/fastcomments/model/APICreateUserBadgeResponseTest.java src/test/java/com/fastcomments/model/APIDomainConfigurationTest.java @@ -769,8 +781,11 @@ src/test/java/com/fastcomments/model/APIGetUserBadgeProgressListResponseTest.jav src/test/java/com/fastcomments/model/APIGetUserBadgeProgressResponseTest.java src/test/java/com/fastcomments/model/APIGetUserBadgeResponseTest.java src/test/java/com/fastcomments/model/APIGetUserBadgesResponseTest.java +src/test/java/com/fastcomments/model/APIModerateGetUserBanPreferencesResponseTest.java +src/test/java/com/fastcomments/model/APIModerateUserBanPreferencesTest.java src/test/java/com/fastcomments/model/APIPageTest.java src/test/java/com/fastcomments/model/APISSOUserTest.java +src/test/java/com/fastcomments/model/APISaveCommentResponseTest.java src/test/java/com/fastcomments/model/APIStatusTest.java src/test/java/com/fastcomments/model/APITenantDailyUsageTest.java src/test/java/com/fastcomments/model/APITenantTest.java @@ -778,16 +793,17 @@ src/test/java/com/fastcomments/model/APITicketDetailTest.java src/test/java/com/fastcomments/model/APITicketFileTest.java src/test/java/com/fastcomments/model/APITicketTest.java src/test/java/com/fastcomments/model/APIUserSubscriptionTest.java -src/test/java/com/fastcomments/model/AddDomainConfig200ResponseAnyOfTest.java -src/test/java/com/fastcomments/model/AddDomainConfig200ResponseTest.java src/test/java/com/fastcomments/model/AddDomainConfigParamsTest.java -src/test/java/com/fastcomments/model/AddHashTag200ResponseTest.java -src/test/java/com/fastcomments/model/AddHashTagsBulk200ResponseTest.java +src/test/java/com/fastcomments/model/AddDomainConfigResponseAnyOfTest.java +src/test/java/com/fastcomments/model/AddDomainConfigResponseTest.java src/test/java/com/fastcomments/model/AddPageAPIResponseTest.java src/test/java/com/fastcomments/model/AddSSOUserAPIResponseTest.java -src/test/java/com/fastcomments/model/AggregateQuestionResults200ResponseTest.java +src/test/java/com/fastcomments/model/AdjustCommentVotesParamsTest.java +src/test/java/com/fastcomments/model/AdjustVotesResponseTest.java src/test/java/com/fastcomments/model/AggregateQuestionResultsResponseTest.java +src/test/java/com/fastcomments/model/AggregateResponseTest.java src/test/java/com/fastcomments/model/AggregateTimeBucketTest.java +src/test/java/com/fastcomments/model/AggregationAPIErrorTest.java src/test/java/com/fastcomments/model/AggregationItemTest.java src/test/java/com/fastcomments/model/AggregationOpTypeTest.java src/test/java/com/fastcomments/model/AggregationOperationTest.java @@ -796,24 +812,30 @@ src/test/java/com/fastcomments/model/AggregationRequestTest.java src/test/java/com/fastcomments/model/AggregationResponseStatsTest.java src/test/java/com/fastcomments/model/AggregationResponseTest.java src/test/java/com/fastcomments/model/AggregationValueTest.java +src/test/java/com/fastcomments/model/AwardUserBadgeResponseTest.java +src/test/java/com/fastcomments/model/BanUserFromCommentResultTest.java +src/test/java/com/fastcomments/model/BanUserUndoParamsTest.java +src/test/java/com/fastcomments/model/BannedUserMatchMatchedOnValueTest.java +src/test/java/com/fastcomments/model/BannedUserMatchTest.java +src/test/java/com/fastcomments/model/BannedUserMatchTypeTest.java src/test/java/com/fastcomments/model/BillingInfoTest.java src/test/java/com/fastcomments/model/BlockFromCommentParamsTest.java -src/test/java/com/fastcomments/model/BlockFromCommentPublic200ResponseTest.java src/test/java/com/fastcomments/model/BlockSuccessTest.java +src/test/java/com/fastcomments/model/BuildModerationFilterParamsTest.java +src/test/java/com/fastcomments/model/BuildModerationFilterResponseTest.java src/test/java/com/fastcomments/model/BulkAggregateQuestionItemTest.java -src/test/java/com/fastcomments/model/BulkAggregateQuestionResults200ResponseTest.java src/test/java/com/fastcomments/model/BulkAggregateQuestionResultsRequestTest.java src/test/java/com/fastcomments/model/BulkAggregateQuestionResultsResponseTest.java src/test/java/com/fastcomments/model/BulkCreateHashTagsBodyTagsInnerTest.java src/test/java/com/fastcomments/model/BulkCreateHashTagsBodyTest.java +src/test/java/com/fastcomments/model/BulkCreateHashTagsResponseResultsInnerTest.java src/test/java/com/fastcomments/model/BulkCreateHashTagsResponseTest.java +src/test/java/com/fastcomments/model/BulkPreBanParamsTest.java +src/test/java/com/fastcomments/model/BulkPreBanSummaryTest.java src/test/java/com/fastcomments/model/ChangeCommentPinStatusResponseTest.java -src/test/java/com/fastcomments/model/ChangeTicketState200ResponseTest.java src/test/java/com/fastcomments/model/ChangeTicketStateBodyTest.java src/test/java/com/fastcomments/model/ChangeTicketStateResponseTest.java src/test/java/com/fastcomments/model/CheckBlockedCommentsResponseTest.java -src/test/java/com/fastcomments/model/CheckedCommentsForBlocked200ResponseTest.java -src/test/java/com/fastcomments/model/CombineCommentsWithQuestionResults200ResponseTest.java src/test/java/com/fastcomments/model/CombineQuestionResultsWithCommentsResponseTest.java src/test/java/com/fastcomments/model/CommentDataTest.java src/test/java/com/fastcomments/model/CommentHTMLRenderingModeTest.java @@ -828,56 +850,42 @@ src/test/java/com/fastcomments/model/CommentUserBadgeInfoTest.java src/test/java/com/fastcomments/model/CommentUserHashTagInfoTest.java src/test/java/com/fastcomments/model/CommentUserMentionInfoTest.java src/test/java/com/fastcomments/model/CommenterNameFormatsTest.java +src/test/java/com/fastcomments/model/CommentsByIdsParamsTest.java src/test/java/com/fastcomments/model/CreateAPIPageDataTest.java src/test/java/com/fastcomments/model/CreateAPISSOUserDataTest.java src/test/java/com/fastcomments/model/CreateAPIUserSubscriptionDataTest.java src/test/java/com/fastcomments/model/CreateCommentParamsTest.java -src/test/java/com/fastcomments/model/CreateCommentPublic200ResponseTest.java -src/test/java/com/fastcomments/model/CreateEmailTemplate200ResponseTest.java src/test/java/com/fastcomments/model/CreateEmailTemplateBodyTest.java src/test/java/com/fastcomments/model/CreateEmailTemplateResponseTest.java -src/test/java/com/fastcomments/model/CreateFeedPost200ResponseTest.java src/test/java/com/fastcomments/model/CreateFeedPostParamsTest.java -src/test/java/com/fastcomments/model/CreateFeedPostPublic200ResponseTest.java src/test/java/com/fastcomments/model/CreateFeedPostResponseTest.java src/test/java/com/fastcomments/model/CreateFeedPostsResponseTest.java src/test/java/com/fastcomments/model/CreateHashTagBodyTest.java src/test/java/com/fastcomments/model/CreateHashTagResponseTest.java -src/test/java/com/fastcomments/model/CreateModerator200ResponseTest.java src/test/java/com/fastcomments/model/CreateModeratorBodyTest.java src/test/java/com/fastcomments/model/CreateModeratorResponseTest.java -src/test/java/com/fastcomments/model/CreateQuestionConfig200ResponseTest.java src/test/java/com/fastcomments/model/CreateQuestionConfigBodyTest.java src/test/java/com/fastcomments/model/CreateQuestionConfigResponseTest.java -src/test/java/com/fastcomments/model/CreateQuestionResult200ResponseTest.java src/test/java/com/fastcomments/model/CreateQuestionResultBodyTest.java src/test/java/com/fastcomments/model/CreateQuestionResultResponseTest.java src/test/java/com/fastcomments/model/CreateSubscriptionAPIResponseTest.java -src/test/java/com/fastcomments/model/CreateTenant200ResponseTest.java src/test/java/com/fastcomments/model/CreateTenantBodyTest.java -src/test/java/com/fastcomments/model/CreateTenantPackage200ResponseTest.java src/test/java/com/fastcomments/model/CreateTenantPackageBodyTest.java src/test/java/com/fastcomments/model/CreateTenantPackageResponseTest.java src/test/java/com/fastcomments/model/CreateTenantResponseTest.java -src/test/java/com/fastcomments/model/CreateTenantUser200ResponseTest.java src/test/java/com/fastcomments/model/CreateTenantUserBodyTest.java src/test/java/com/fastcomments/model/CreateTenantUserResponseTest.java -src/test/java/com/fastcomments/model/CreateTicket200ResponseTest.java src/test/java/com/fastcomments/model/CreateTicketBodyTest.java src/test/java/com/fastcomments/model/CreateTicketResponseTest.java -src/test/java/com/fastcomments/model/CreateUserBadge200ResponseTest.java src/test/java/com/fastcomments/model/CreateUserBadgeParamsTest.java +src/test/java/com/fastcomments/model/CreateV1PageReactTest.java src/test/java/com/fastcomments/model/CustomConfigParametersTest.java src/test/java/com/fastcomments/model/CustomEmailTemplateTest.java -src/test/java/com/fastcomments/model/DeleteComment200ResponseTest.java src/test/java/com/fastcomments/model/DeleteCommentActionTest.java -src/test/java/com/fastcomments/model/DeleteCommentPublic200ResponseTest.java src/test/java/com/fastcomments/model/DeleteCommentResultTest.java -src/test/java/com/fastcomments/model/DeleteCommentVote200ResponseTest.java -src/test/java/com/fastcomments/model/DeleteDomainConfig200ResponseTest.java -src/test/java/com/fastcomments/model/DeleteFeedPostPublic200ResponseAnyOfTest.java -src/test/java/com/fastcomments/model/DeleteFeedPostPublic200ResponseTest.java -src/test/java/com/fastcomments/model/DeleteHashTagRequestTest.java +src/test/java/com/fastcomments/model/DeleteDomainConfigResponseTest.java +src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseTest.java +src/test/java/com/fastcomments/model/DeleteHashTagRequestBodyTest.java src/test/java/com/fastcomments/model/DeletePageAPIResponseTest.java src/test/java/com/fastcomments/model/DeleteSSOUserAPIResponseTest.java src/test/java/com/fastcomments/model/DeleteSubscriptionAPIResponseTest.java @@ -896,126 +904,124 @@ src/test/java/com/fastcomments/model/FeedPostTest.java src/test/java/com/fastcomments/model/FeedPostsStatsResponseTest.java src/test/java/com/fastcomments/model/FindCommentsByRangeItemTest.java src/test/java/com/fastcomments/model/FindCommentsByRangeResponseTest.java -src/test/java/com/fastcomments/model/FlagComment200ResponseTest.java -src/test/java/com/fastcomments/model/FlagCommentPublic200ResponseTest.java src/test/java/com/fastcomments/model/FlagCommentResponseTest.java -src/test/java/com/fastcomments/model/GetAuditLogs200ResponseTest.java src/test/java/com/fastcomments/model/GetAuditLogsResponseTest.java -src/test/java/com/fastcomments/model/GetCachedNotificationCount200ResponseTest.java +src/test/java/com/fastcomments/model/GetBannedUsersCountResponseTest.java +src/test/java/com/fastcomments/model/GetBannedUsersFromCommentResponseTest.java src/test/java/com/fastcomments/model/GetCachedNotificationCountResponseTest.java -src/test/java/com/fastcomments/model/GetComment200ResponseTest.java -src/test/java/com/fastcomments/model/GetCommentText200ResponseTest.java -src/test/java/com/fastcomments/model/GetCommentVoteUserNames200ResponseTest.java +src/test/java/com/fastcomments/model/GetCommentBanStatusResponseTest.java +src/test/java/com/fastcomments/model/GetCommentTextResponseTest.java src/test/java/com/fastcomments/model/GetCommentVoteUserNamesSuccessResponseTest.java -src/test/java/com/fastcomments/model/GetComments200ResponseTest.java -src/test/java/com/fastcomments/model/GetCommentsPublic200ResponseTest.java +src/test/java/com/fastcomments/model/GetCommentsForUserResponseTest.java src/test/java/com/fastcomments/model/GetCommentsResponsePublicCommentTest.java src/test/java/com/fastcomments/model/GetCommentsResponseWithPresencePublicCommentTest.java -src/test/java/com/fastcomments/model/GetDomainConfig200ResponseTest.java -src/test/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOf1Test.java -src/test/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOfTest.java -src/test/java/com/fastcomments/model/GetDomainConfigs200ResponseTest.java -src/test/java/com/fastcomments/model/GetEmailTemplate200ResponseTest.java -src/test/java/com/fastcomments/model/GetEmailTemplateDefinitions200ResponseTest.java +src/test/java/com/fastcomments/model/GetDomainConfigResponseTest.java +src/test/java/com/fastcomments/model/GetDomainConfigsResponseAnyOf1Test.java +src/test/java/com/fastcomments/model/GetDomainConfigsResponseAnyOfTest.java +src/test/java/com/fastcomments/model/GetDomainConfigsResponseTest.java src/test/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponseTest.java -src/test/java/com/fastcomments/model/GetEmailTemplateRenderErrors200ResponseTest.java src/test/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponseTest.java src/test/java/com/fastcomments/model/GetEmailTemplateResponseTest.java -src/test/java/com/fastcomments/model/GetEmailTemplates200ResponseTest.java src/test/java/com/fastcomments/model/GetEmailTemplatesResponseTest.java -src/test/java/com/fastcomments/model/GetEventLog200ResponseTest.java src/test/java/com/fastcomments/model/GetEventLogResponseTest.java -src/test/java/com/fastcomments/model/GetFeedPosts200ResponseTest.java -src/test/java/com/fastcomments/model/GetFeedPostsPublic200ResponseTest.java src/test/java/com/fastcomments/model/GetFeedPostsResponseTest.java -src/test/java/com/fastcomments/model/GetFeedPostsStats200ResponseTest.java -src/test/java/com/fastcomments/model/GetHashTags200ResponseTest.java +src/test/java/com/fastcomments/model/GetGifsSearchResponseTest.java +src/test/java/com/fastcomments/model/GetGifsTrendingResponseTest.java src/test/java/com/fastcomments/model/GetHashTagsResponseTest.java -src/test/java/com/fastcomments/model/GetModerator200ResponseTest.java src/test/java/com/fastcomments/model/GetModeratorResponseTest.java -src/test/java/com/fastcomments/model/GetModerators200ResponseTest.java src/test/java/com/fastcomments/model/GetModeratorsResponseTest.java src/test/java/com/fastcomments/model/GetMyNotificationsResponseTest.java -src/test/java/com/fastcomments/model/GetNotificationCount200ResponseTest.java src/test/java/com/fastcomments/model/GetNotificationCountResponseTest.java -src/test/java/com/fastcomments/model/GetNotifications200ResponseTest.java src/test/java/com/fastcomments/model/GetNotificationsResponseTest.java src/test/java/com/fastcomments/model/GetPageByURLIdAPIResponseTest.java src/test/java/com/fastcomments/model/GetPagesAPIResponseTest.java -src/test/java/com/fastcomments/model/GetPendingWebhookEventCount200ResponseTest.java src/test/java/com/fastcomments/model/GetPendingWebhookEventCountResponseTest.java -src/test/java/com/fastcomments/model/GetPendingWebhookEvents200ResponseTest.java src/test/java/com/fastcomments/model/GetPendingWebhookEventsResponseTest.java src/test/java/com/fastcomments/model/GetPublicFeedPostsResponseTest.java -src/test/java/com/fastcomments/model/GetQuestionConfig200ResponseTest.java +src/test/java/com/fastcomments/model/GetPublicPagesResponseTest.java src/test/java/com/fastcomments/model/GetQuestionConfigResponseTest.java -src/test/java/com/fastcomments/model/GetQuestionConfigs200ResponseTest.java src/test/java/com/fastcomments/model/GetQuestionConfigsResponseTest.java -src/test/java/com/fastcomments/model/GetQuestionResult200ResponseTest.java src/test/java/com/fastcomments/model/GetQuestionResultResponseTest.java -src/test/java/com/fastcomments/model/GetQuestionResults200ResponseTest.java src/test/java/com/fastcomments/model/GetQuestionResultsResponseTest.java src/test/java/com/fastcomments/model/GetSSOUserByEmailAPIResponseTest.java src/test/java/com/fastcomments/model/GetSSOUserByIdAPIResponseTest.java -src/test/java/com/fastcomments/model/GetSSOUsers200ResponseTest.java +src/test/java/com/fastcomments/model/GetSSOUsersResponseTest.java src/test/java/com/fastcomments/model/GetSubscriptionsAPIResponseTest.java -src/test/java/com/fastcomments/model/GetTenant200ResponseTest.java -src/test/java/com/fastcomments/model/GetTenantDailyUsages200ResponseTest.java src/test/java/com/fastcomments/model/GetTenantDailyUsagesResponseTest.java -src/test/java/com/fastcomments/model/GetTenantPackage200ResponseTest.java +src/test/java/com/fastcomments/model/GetTenantManualBadgesResponseTest.java src/test/java/com/fastcomments/model/GetTenantPackageResponseTest.java -src/test/java/com/fastcomments/model/GetTenantPackages200ResponseTest.java src/test/java/com/fastcomments/model/GetTenantPackagesResponseTest.java src/test/java/com/fastcomments/model/GetTenantResponseTest.java -src/test/java/com/fastcomments/model/GetTenantUser200ResponseTest.java src/test/java/com/fastcomments/model/GetTenantUserResponseTest.java -src/test/java/com/fastcomments/model/GetTenantUsers200ResponseTest.java src/test/java/com/fastcomments/model/GetTenantUsersResponseTest.java -src/test/java/com/fastcomments/model/GetTenants200ResponseTest.java src/test/java/com/fastcomments/model/GetTenantsResponseTest.java -src/test/java/com/fastcomments/model/GetTicket200ResponseTest.java src/test/java/com/fastcomments/model/GetTicketResponseTest.java -src/test/java/com/fastcomments/model/GetTickets200ResponseTest.java src/test/java/com/fastcomments/model/GetTicketsResponseTest.java -src/test/java/com/fastcomments/model/GetUser200ResponseTest.java -src/test/java/com/fastcomments/model/GetUserBadge200ResponseTest.java -src/test/java/com/fastcomments/model/GetUserBadgeProgressById200ResponseTest.java -src/test/java/com/fastcomments/model/GetUserBadgeProgressList200ResponseTest.java -src/test/java/com/fastcomments/model/GetUserBadges200ResponseTest.java -src/test/java/com/fastcomments/model/GetUserNotificationCount200ResponseTest.java +src/test/java/com/fastcomments/model/GetTranslationsResponseTest.java +src/test/java/com/fastcomments/model/GetUserInternalProfileResponseProfileTest.java +src/test/java/com/fastcomments/model/GetUserInternalProfileResponseTest.java +src/test/java/com/fastcomments/model/GetUserManualBadgesResponseTest.java src/test/java/com/fastcomments/model/GetUserNotificationCountResponseTest.java -src/test/java/com/fastcomments/model/GetUserNotifications200ResponseTest.java -src/test/java/com/fastcomments/model/GetUserPresenceStatuses200ResponseTest.java src/test/java/com/fastcomments/model/GetUserPresenceStatusesResponseTest.java -src/test/java/com/fastcomments/model/GetUserReactsPublic200ResponseTest.java src/test/java/com/fastcomments/model/GetUserResponseTest.java -src/test/java/com/fastcomments/model/GetVotes200ResponseTest.java -src/test/java/com/fastcomments/model/GetVotesForUser200ResponseTest.java +src/test/java/com/fastcomments/model/GetUserTrustFactorResponseTest.java +src/test/java/com/fastcomments/model/GetV1PageLikesTest.java +src/test/java/com/fastcomments/model/GetV2PageReactUsersResponseTest.java +src/test/java/com/fastcomments/model/GetV2PageReactsTest.java src/test/java/com/fastcomments/model/GetVotesForUserResponseTest.java src/test/java/com/fastcomments/model/GetVotesResponseTest.java +src/test/java/com/fastcomments/model/GifGetLargeResponseTest.java src/test/java/com/fastcomments/model/GifRatingTest.java +src/test/java/com/fastcomments/model/GifSearchInternalErrorTest.java +src/test/java/com/fastcomments/model/GifSearchResponseImagesInnerInnerTest.java +src/test/java/com/fastcomments/model/GifSearchResponseTest.java src/test/java/com/fastcomments/model/HeaderAccountNotificationTest.java src/test/java/com/fastcomments/model/HeaderStateTest.java src/test/java/com/fastcomments/model/IgnoredResponseTest.java src/test/java/com/fastcomments/model/ImageContentProfanityLevelTest.java +src/test/java/com/fastcomments/model/ImportedAgentApprovalNotificationFrequencyTest.java src/test/java/com/fastcomments/model/ImportedSiteTypeTest.java src/test/java/com/fastcomments/model/LiveEventExtraInfoTest.java src/test/java/com/fastcomments/model/LiveEventTest.java src/test/java/com/fastcomments/model/LiveEventTypeTest.java -src/test/java/com/fastcomments/model/LockComment200ResponseTest.java src/test/java/com/fastcomments/model/MediaAssetTest.java src/test/java/com/fastcomments/model/MentionAutoCompleteModeTest.java src/test/java/com/fastcomments/model/MetaItemTest.java +src/test/java/com/fastcomments/model/ModerationAPIChildCommentsResponseTest.java +src/test/java/com/fastcomments/model/ModerationAPICommentLogTest.java +src/test/java/com/fastcomments/model/ModerationAPICommentResponseTest.java +src/test/java/com/fastcomments/model/ModerationAPICommentTest.java +src/test/java/com/fastcomments/model/ModerationAPICountCommentsResponseTest.java +src/test/java/com/fastcomments/model/ModerationAPIGetCommentIdsResponseTest.java +src/test/java/com/fastcomments/model/ModerationAPIGetCommentsResponseTest.java +src/test/java/com/fastcomments/model/ModerationAPIGetLogsResponseTest.java +src/test/java/com/fastcomments/model/ModerationCommentSearchResponseTest.java +src/test/java/com/fastcomments/model/ModerationExportResponseTest.java +src/test/java/com/fastcomments/model/ModerationExportStatusResponseTest.java +src/test/java/com/fastcomments/model/ModerationFilterTest.java +src/test/java/com/fastcomments/model/ModerationPageSearchProjectedTest.java +src/test/java/com/fastcomments/model/ModerationPageSearchResponseTest.java +src/test/java/com/fastcomments/model/ModerationSiteSearchProjectedTest.java +src/test/java/com/fastcomments/model/ModerationSiteSearchResponseTest.java +src/test/java/com/fastcomments/model/ModerationSuggestResponseTest.java +src/test/java/com/fastcomments/model/ModerationUserSearchProjectedTest.java +src/test/java/com/fastcomments/model/ModerationUserSearchResponseTest.java src/test/java/com/fastcomments/model/ModeratorTest.java src/test/java/com/fastcomments/model/NotificationAndCountTest.java src/test/java/com/fastcomments/model/NotificationObjectTypeTest.java src/test/java/com/fastcomments/model/NotificationTypeTest.java +src/test/java/com/fastcomments/model/PageUserEntryTest.java +src/test/java/com/fastcomments/model/PageUsersInfoResponseTest.java +src/test/java/com/fastcomments/model/PageUsersOfflineResponseTest.java +src/test/java/com/fastcomments/model/PageUsersOnlineResponseTest.java +src/test/java/com/fastcomments/model/PagesSortByTest.java src/test/java/com/fastcomments/model/PatchDomainConfigParamsTest.java -src/test/java/com/fastcomments/model/PatchHashTag200ResponseTest.java +src/test/java/com/fastcomments/model/PatchDomainConfigResponseTest.java src/test/java/com/fastcomments/model/PatchPageAPIResponseTest.java src/test/java/com/fastcomments/model/PatchSSOUserAPIResponseTest.java src/test/java/com/fastcomments/model/PendingCommentToSyncOutboundTest.java -src/test/java/com/fastcomments/model/PinComment200ResponseTest.java +src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java +src/test/java/com/fastcomments/model/PreBanSummaryTest.java src/test/java/com/fastcomments/model/PubSubCommentBaseTest.java src/test/java/com/fastcomments/model/PubSubCommentTest.java src/test/java/com/fastcomments/model/PubSubVoteTest.java @@ -1026,7 +1032,9 @@ src/test/java/com/fastcomments/model/PublicBlockFromCommentParamsTest.java src/test/java/com/fastcomments/model/PublicCommentBaseTest.java src/test/java/com/fastcomments/model/PublicCommentTest.java src/test/java/com/fastcomments/model/PublicFeedPostsResponseTest.java +src/test/java/com/fastcomments/model/PublicPageTest.java src/test/java/com/fastcomments/model/PublicVoteTest.java +src/test/java/com/fastcomments/model/PutDomainConfigResponseTest.java src/test/java/com/fastcomments/model/PutSSOUserAPIResponseTest.java src/test/java/com/fastcomments/model/QueryPredicateTest.java src/test/java/com/fastcomments/model/QueryPredicateValueTest.java @@ -1039,11 +1047,10 @@ src/test/java/com/fastcomments/model/QuestionResultTest.java src/test/java/com/fastcomments/model/QuestionSubQuestionVisibilityTest.java src/test/java/com/fastcomments/model/QuestionWhenSaveTest.java src/test/java/com/fastcomments/model/ReactBodyParamsTest.java -src/test/java/com/fastcomments/model/ReactFeedPostPublic200ResponseTest.java src/test/java/com/fastcomments/model/ReactFeedPostResponseTest.java src/test/java/com/fastcomments/model/RecordStringBeforeStringOrNullAfterStringOrNullValueTest.java -src/test/java/com/fastcomments/model/RecordStringStringOrNumberValueTest.java -src/test/java/com/fastcomments/model/RenderEmailTemplate200ResponseTest.java +src/test/java/com/fastcomments/model/RemoveCommentActionResponseTest.java +src/test/java/com/fastcomments/model/RemoveUserBadgeResponseTest.java src/test/java/com/fastcomments/model/RenderEmailTemplateBodyTest.java src/test/java/com/fastcomments/model/RenderEmailTemplateResponseTest.java src/test/java/com/fastcomments/model/RenderableUserNotificationTest.java @@ -1051,26 +1058,27 @@ src/test/java/com/fastcomments/model/RepeatCommentCheckIgnoredReasonTest.java src/test/java/com/fastcomments/model/RepeatCommentHandlingActionTest.java src/test/java/com/fastcomments/model/ReplaceTenantPackageBodyTest.java src/test/java/com/fastcomments/model/ReplaceTenantUserBodyTest.java -src/test/java/com/fastcomments/model/ResetUserNotifications200ResponseTest.java src/test/java/com/fastcomments/model/ResetUserNotificationsResponseTest.java src/test/java/com/fastcomments/model/SORTDIRTest.java src/test/java/com/fastcomments/model/SSOSecurityLevelTest.java -src/test/java/com/fastcomments/model/SaveComment200ResponseTest.java src/test/java/com/fastcomments/model/SaveCommentResponseOptimizedTest.java -src/test/java/com/fastcomments/model/SaveCommentResponseTest.java +src/test/java/com/fastcomments/model/SaveCommentsBulkResponseTest.java src/test/java/com/fastcomments/model/SaveCommentsResponseWithPresenceTest.java -src/test/java/com/fastcomments/model/SearchUsers200ResponseTest.java src/test/java/com/fastcomments/model/SearchUsersResponseTest.java +src/test/java/com/fastcomments/model/SearchUsersResultTest.java src/test/java/com/fastcomments/model/SearchUsersSectionedResponseTest.java -src/test/java/com/fastcomments/model/SetCommentText200ResponseTest.java +src/test/java/com/fastcomments/model/SetCommentApprovedResponseTest.java +src/test/java/com/fastcomments/model/SetCommentTextParamsTest.java +src/test/java/com/fastcomments/model/SetCommentTextResponseTest.java src/test/java/com/fastcomments/model/SetCommentTextResultTest.java +src/test/java/com/fastcomments/model/SetUserTrustFactorResponseTest.java src/test/java/com/fastcomments/model/SizePresetTest.java src/test/java/com/fastcomments/model/SortDirectionsTest.java src/test/java/com/fastcomments/model/SpamRuleTest.java src/test/java/com/fastcomments/model/TOSConfigTest.java +src/test/java/com/fastcomments/model/TenantBadgeTest.java src/test/java/com/fastcomments/model/TenantHashTagTest.java src/test/java/com/fastcomments/model/TenantPackageTest.java -src/test/java/com/fastcomments/model/UnBlockCommentPublic200ResponseTest.java src/test/java/com/fastcomments/model/UnBlockFromCommentParamsTest.java src/test/java/com/fastcomments/model/UnblockSuccessTest.java src/test/java/com/fastcomments/model/UpdatableCommentParamsTest.java @@ -1090,9 +1098,10 @@ src/test/java/com/fastcomments/model/UpdateSubscriptionAPIResponseTest.java src/test/java/com/fastcomments/model/UpdateTenantBodyTest.java src/test/java/com/fastcomments/model/UpdateTenantPackageBodyTest.java src/test/java/com/fastcomments/model/UpdateTenantUserBodyTest.java -src/test/java/com/fastcomments/model/UpdateUserBadge200ResponseTest.java src/test/java/com/fastcomments/model/UpdateUserBadgeParamsTest.java -src/test/java/com/fastcomments/model/UpdateUserNotificationStatus200ResponseTest.java +src/test/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponseTest.java +src/test/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponseTest.java +src/test/java/com/fastcomments/model/UpdateUserNotificationStatusResponseTest.java src/test/java/com/fastcomments/model/UploadImageResponseTest.java src/test/java/com/fastcomments/model/UserBadgeProgressTest.java src/test/java/com/fastcomments/model/UserBadgeTest.java @@ -1106,8 +1115,8 @@ src/test/java/com/fastcomments/model/UserSearchSectionResultTest.java src/test/java/com/fastcomments/model/UserSearchSectionTest.java src/test/java/com/fastcomments/model/UserSessionInfoTest.java src/test/java/com/fastcomments/model/UserTest.java +src/test/java/com/fastcomments/model/UsersListLocationTest.java src/test/java/com/fastcomments/model/VoteBodyParamsTest.java -src/test/java/com/fastcomments/model/VoteComment200ResponseTest.java src/test/java/com/fastcomments/model/VoteDeleteResponseTest.java src/test/java/com/fastcomments/model/VoteResponseTest.java src/test/java/com/fastcomments/model/VoteResponseUserTest.java diff --git a/client/.openapi-generator/VERSION b/client/.openapi-generator/VERSION index 909dcd0e..ca7bf6e4 100644 --- a/client/.openapi-generator/VERSION +++ b/client/.openapi-generator/VERSION @@ -1 +1 @@ -7.19.0-SNAPSHOT +7.23.0-SNAPSHOT diff --git a/client/README.md b/client/README.md index a6a183ed..717cc30e 100644 --- a/client/README.md +++ b/client/README.md @@ -2,7 +2,7 @@ fastcomments - API version: 0.0.0 - - Generator version: 7.19.0-SNAPSHOT + - Generator version: 7.23.0-SNAPSHOT No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -102,7 +102,7 @@ public class Example { String tenantId = "tenantId_example"; // String | AddDomainConfigParams addDomainConfigParams = new AddDomainConfigParams(); // AddDomainConfigParams | try { - AddDomainConfig200Response result = apiInstance.addDomainConfig(tenantId, addDomainConfigParams) + AddDomainConfigResponse result = apiInstance.addDomainConfig(tenantId, addDomainConfigParams) .execute(); System.out.println(result); } catch (ApiException e) { @@ -237,26 +237,86 @@ Class | Method | HTTP request | Description *DefaultApi* | [**updateTenantPackage**](docs/DefaultApi.md#updateTenantPackage) | **PATCH** /api/v1/tenant-packages/{id} | *DefaultApi* | [**updateTenantUser**](docs/DefaultApi.md#updateTenantUser) | **PATCH** /api/v1/tenant-users/{id} | *DefaultApi* | [**updateUserBadge**](docs/DefaultApi.md#updateUserBadge) | **PUT** /api/v1/user-badges/{id} | +*ModerationApi* | [**deleteModerationVote**](docs/ModerationApi.md#deleteModerationVote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | +*ModerationApi* | [**getApiComments**](docs/ModerationApi.md#getApiComments) | **GET** /auth/my-account/moderate-comments/api/comments | +*ModerationApi* | [**getApiExportStatus**](docs/ModerationApi.md#getApiExportStatus) | **GET** /auth/my-account/moderate-comments/api/export/status | +*ModerationApi* | [**getApiIds**](docs/ModerationApi.md#getApiIds) | **GET** /auth/my-account/moderate-comments/api/ids | +*ModerationApi* | [**getBanUsersFromComment**](docs/ModerationApi.md#getBanUsersFromComment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | +*ModerationApi* | [**getCommentBanStatus**](docs/ModerationApi.md#getCommentBanStatus) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | +*ModerationApi* | [**getCommentChildren**](docs/ModerationApi.md#getCommentChildren) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | +*ModerationApi* | [**getCount**](docs/ModerationApi.md#getCount) | **GET** /auth/my-account/moderate-comments/count | +*ModerationApi* | [**getCounts**](docs/ModerationApi.md#getCounts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | +*ModerationApi* | [**getLogs**](docs/ModerationApi.md#getLogs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | +*ModerationApi* | [**getManualBadges**](docs/ModerationApi.md#getManualBadges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | +*ModerationApi* | [**getManualBadgesForUser**](docs/ModerationApi.md#getManualBadgesForUser) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | +*ModerationApi* | [**getModerationComment**](docs/ModerationApi.md#getModerationComment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | +*ModerationApi* | [**getModerationCommentText**](docs/ModerationApi.md#getModerationCommentText) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | +*ModerationApi* | [**getPreBanSummary**](docs/ModerationApi.md#getPreBanSummary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | +*ModerationApi* | [**getSearchCommentsSummary**](docs/ModerationApi.md#getSearchCommentsSummary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | +*ModerationApi* | [**getSearchPages**](docs/ModerationApi.md#getSearchPages) | **GET** /auth/my-account/moderate-comments/search/pages | +*ModerationApi* | [**getSearchSites**](docs/ModerationApi.md#getSearchSites) | **GET** /auth/my-account/moderate-comments/search/sites | +*ModerationApi* | [**getSearchSuggest**](docs/ModerationApi.md#getSearchSuggest) | **GET** /auth/my-account/moderate-comments/search/suggest | +*ModerationApi* | [**getSearchUsers**](docs/ModerationApi.md#getSearchUsers) | **GET** /auth/my-account/moderate-comments/search/users | +*ModerationApi* | [**getTrustFactor**](docs/ModerationApi.md#getTrustFactor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | +*ModerationApi* | [**getUserBanPreference**](docs/ModerationApi.md#getUserBanPreference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | +*ModerationApi* | [**getUserInternalProfile**](docs/ModerationApi.md#getUserInternalProfile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | +*ModerationApi* | [**postAdjustCommentVotes**](docs/ModerationApi.md#postAdjustCommentVotes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | +*ModerationApi* | [**postApiExport**](docs/ModerationApi.md#postApiExport) | **POST** /auth/my-account/moderate-comments/api/export | +*ModerationApi* | [**postBanUserFromComment**](docs/ModerationApi.md#postBanUserFromComment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | +*ModerationApi* | [**postBanUserUndo**](docs/ModerationApi.md#postBanUserUndo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | +*ModerationApi* | [**postBulkPreBanSummary**](docs/ModerationApi.md#postBulkPreBanSummary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | +*ModerationApi* | [**postCommentsByIds**](docs/ModerationApi.md#postCommentsByIds) | **POST** /auth/my-account/moderate-comments/comments-by-ids | +*ModerationApi* | [**postFlagComment**](docs/ModerationApi.md#postFlagComment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | +*ModerationApi* | [**postRemoveComment**](docs/ModerationApi.md#postRemoveComment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | +*ModerationApi* | [**postRestoreDeletedComment**](docs/ModerationApi.md#postRestoreDeletedComment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | +*ModerationApi* | [**postSetCommentApprovalStatus**](docs/ModerationApi.md#postSetCommentApprovalStatus) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | +*ModerationApi* | [**postSetCommentReviewStatus**](docs/ModerationApi.md#postSetCommentReviewStatus) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | +*ModerationApi* | [**postSetCommentSpamStatus**](docs/ModerationApi.md#postSetCommentSpamStatus) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | +*ModerationApi* | [**postSetCommentText**](docs/ModerationApi.md#postSetCommentText) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | +*ModerationApi* | [**postUnFlagComment**](docs/ModerationApi.md#postUnFlagComment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | +*ModerationApi* | [**postVote**](docs/ModerationApi.md#postVote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | +*ModerationApi* | [**putAwardBadge**](docs/ModerationApi.md#putAwardBadge) | **PUT** /auth/my-account/moderate-comments/award-badge | +*ModerationApi* | [**putCloseThread**](docs/ModerationApi.md#putCloseThread) | **PUT** /auth/my-account/moderate-comments/close-thread | +*ModerationApi* | [**putRemoveBadge**](docs/ModerationApi.md#putRemoveBadge) | **PUT** /auth/my-account/moderate-comments/remove-badge | +*ModerationApi* | [**putReopenThread**](docs/ModerationApi.md#putReopenThread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | +*ModerationApi* | [**setTrustFactor**](docs/ModerationApi.md#setTrustFactor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | *PublicApi* | [**blockFromCommentPublic**](docs/PublicApi.md#blockFromCommentPublic) | **POST** /block-from-comment/{commentId} | *PublicApi* | [**checkedCommentsForBlocked**](docs/PublicApi.md#checkedCommentsForBlocked) | **GET** /check-blocked-comments | *PublicApi* | [**createCommentPublic**](docs/PublicApi.md#createCommentPublic) | **POST** /comments/{tenantId} | *PublicApi* | [**createFeedPostPublic**](docs/PublicApi.md#createFeedPostPublic) | **POST** /feed-posts/{tenantId} | +*PublicApi* | [**createV1PageReact**](docs/PublicApi.md#createV1PageReact) | **POST** /page-reacts/v1/likes/{tenantId} | +*PublicApi* | [**createV2PageReact**](docs/PublicApi.md#createV2PageReact) | **POST** /page-reacts/v2/{tenantId} | *PublicApi* | [**deleteCommentPublic**](docs/PublicApi.md#deleteCommentPublic) | **DELETE** /comments/{tenantId}/{commentId} | *PublicApi* | [**deleteCommentVote**](docs/PublicApi.md#deleteCommentVote) | **DELETE** /comments/{tenantId}/{commentId}/vote/{voteId} | *PublicApi* | [**deleteFeedPostPublic**](docs/PublicApi.md#deleteFeedPostPublic) | **DELETE** /feed-posts/{tenantId}/{postId} | +*PublicApi* | [**deleteV1PageReact**](docs/PublicApi.md#deleteV1PageReact) | **DELETE** /page-reacts/v1/likes/{tenantId} | +*PublicApi* | [**deleteV2PageReact**](docs/PublicApi.md#deleteV2PageReact) | **DELETE** /page-reacts/v2/{tenantId} | *PublicApi* | [**flagCommentPublic**](docs/PublicApi.md#flagCommentPublic) | **POST** /flag-comment/{commentId} | *PublicApi* | [**getCommentText**](docs/PublicApi.md#getCommentText) | **GET** /comments/{tenantId}/{commentId}/text | *PublicApi* | [**getCommentVoteUserNames**](docs/PublicApi.md#getCommentVoteUserNames) | **GET** /comments/{tenantId}/{commentId}/votes | +*PublicApi* | [**getCommentsForUser**](docs/PublicApi.md#getCommentsForUser) | **GET** /comments-for-user | *PublicApi* | [**getCommentsPublic**](docs/PublicApi.md#getCommentsPublic) | **GET** /comments/{tenantId} | *PublicApi* | [**getEventLog**](docs/PublicApi.md#getEventLog) | **GET** /event-log/{tenantId} | *PublicApi* | [**getFeedPostsPublic**](docs/PublicApi.md#getFeedPostsPublic) | **GET** /feed-posts/{tenantId} | *PublicApi* | [**getFeedPostsStats**](docs/PublicApi.md#getFeedPostsStats) | **GET** /feed-posts/{tenantId}/stats | +*PublicApi* | [**getGifLarge**](docs/PublicApi.md#getGifLarge) | **GET** /gifs/get-large/{tenantId} | +*PublicApi* | [**getGifsSearch**](docs/PublicApi.md#getGifsSearch) | **GET** /gifs/search/{tenantId} | +*PublicApi* | [**getGifsTrending**](docs/PublicApi.md#getGifsTrending) | **GET** /gifs/trending/{tenantId} | *PublicApi* | [**getGlobalEventLog**](docs/PublicApi.md#getGlobalEventLog) | **GET** /event-log/global/{tenantId} | +*PublicApi* | [**getOfflineUsers**](docs/PublicApi.md#getOfflineUsers) | **GET** /pages/{tenantId}/users/offline | +*PublicApi* | [**getOnlineUsers**](docs/PublicApi.md#getOnlineUsers) | **GET** /pages/{tenantId}/users/online | +*PublicApi* | [**getPagesPublic**](docs/PublicApi.md#getPagesPublic) | **GET** /pages/{tenantId} | +*PublicApi* | [**getTranslations**](docs/PublicApi.md#getTranslations) | **GET** /translations/{namespace}/{component} | *PublicApi* | [**getUserNotificationCount**](docs/PublicApi.md#getUserNotificationCount) | **GET** /user-notifications/get-count | *PublicApi* | [**getUserNotifications**](docs/PublicApi.md#getUserNotifications) | **GET** /user-notifications | *PublicApi* | [**getUserPresenceStatuses**](docs/PublicApi.md#getUserPresenceStatuses) | **GET** /user-presence-status | *PublicApi* | [**getUserReactsPublic**](docs/PublicApi.md#getUserReactsPublic) | **GET** /feed-posts/{tenantId}/user-reacts | +*PublicApi* | [**getUsersInfo**](docs/PublicApi.md#getUsersInfo) | **GET** /pages/{tenantId}/users/info | +*PublicApi* | [**getV1PageLikes**](docs/PublicApi.md#getV1PageLikes) | **GET** /page-reacts/v1/likes/{tenantId} | +*PublicApi* | [**getV2PageReactUsers**](docs/PublicApi.md#getV2PageReactUsers) | **GET** /page-reacts/v2/{tenantId}/list | +*PublicApi* | [**getV2PageReacts**](docs/PublicApi.md#getV2PageReacts) | **GET** /page-reacts/v2/{tenantId} | *PublicApi* | [**lockComment**](docs/PublicApi.md#lockComment) | **POST** /comments/{tenantId}/{commentId}/lock | +*PublicApi* | [**logoutPublic**](docs/PublicApi.md#logoutPublic) | **PUT** /auth/logout | *PublicApi* | [**pinComment**](docs/PublicApi.md#pinComment) | **POST** /comments/{tenantId}/{commentId}/pin | *PublicApi* | [**reactFeedPostPublic**](docs/PublicApi.md#reactFeedPostPublic) | **POST** /feed-posts/{tenantId}/react/{postId} | *PublicApi* | [**resetUserNotificationCount**](docs/PublicApi.md#resetUserNotificationCount) | **POST** /user-notifications/reset-count | @@ -277,9 +337,14 @@ Class | Method | HTTP request | Description ## Documentation for Models - [APIAuditLog](docs/APIAuditLog.md) + - [APIBanUserChangeLog](docs/APIBanUserChangeLog.md) + - [APIBanUserChangedValues](docs/APIBanUserChangedValues.md) + - [APIBannedUser](docs/APIBannedUser.md) + - [APIBannedUserWithMultiMatchInfo](docs/APIBannedUserWithMultiMatchInfo.md) - [APIComment](docs/APIComment.md) - [APICommentBase](docs/APICommentBase.md) - [APICommentBaseMeta](docs/APICommentBaseMeta.md) + - [APICommentCommonBannedUser](docs/APICommentCommonBannedUser.md) - [APICreateUserBadgeResponse](docs/APICreateUserBadgeResponse.md) - [APIDomainConfiguration](docs/APIDomainConfiguration.md) - [APIEmptyResponse](docs/APIEmptyResponse.md) @@ -291,8 +356,11 @@ Class | Method | HTTP request | Description - [APIGetUserBadgeProgressResponse](docs/APIGetUserBadgeProgressResponse.md) - [APIGetUserBadgeResponse](docs/APIGetUserBadgeResponse.md) - [APIGetUserBadgesResponse](docs/APIGetUserBadgesResponse.md) + - [APIModerateGetUserBanPreferencesResponse](docs/APIModerateGetUserBanPreferencesResponse.md) + - [APIModerateUserBanPreferences](docs/APIModerateUserBanPreferences.md) - [APIPage](docs/APIPage.md) - [APISSOUser](docs/APISSOUser.md) + - [APISaveCommentResponse](docs/APISaveCommentResponse.md) - [APIStatus](docs/APIStatus.md) - [APITenant](docs/APITenant.md) - [APITenantDailyUsage](docs/APITenantDailyUsage.md) @@ -300,16 +368,17 @@ Class | Method | HTTP request | Description - [APITicketDetail](docs/APITicketDetail.md) - [APITicketFile](docs/APITicketFile.md) - [APIUserSubscription](docs/APIUserSubscription.md) - - [AddDomainConfig200Response](docs/AddDomainConfig200Response.md) - - [AddDomainConfig200ResponseAnyOf](docs/AddDomainConfig200ResponseAnyOf.md) - [AddDomainConfigParams](docs/AddDomainConfigParams.md) - - [AddHashTag200Response](docs/AddHashTag200Response.md) - - [AddHashTagsBulk200Response](docs/AddHashTagsBulk200Response.md) + - [AddDomainConfigResponse](docs/AddDomainConfigResponse.md) + - [AddDomainConfigResponseAnyOf](docs/AddDomainConfigResponseAnyOf.md) - [AddPageAPIResponse](docs/AddPageAPIResponse.md) - [AddSSOUserAPIResponse](docs/AddSSOUserAPIResponse.md) - - [AggregateQuestionResults200Response](docs/AggregateQuestionResults200Response.md) + - [AdjustCommentVotesParams](docs/AdjustCommentVotesParams.md) + - [AdjustVotesResponse](docs/AdjustVotesResponse.md) - [AggregateQuestionResultsResponse](docs/AggregateQuestionResultsResponse.md) + - [AggregateResponse](docs/AggregateResponse.md) - [AggregateTimeBucket](docs/AggregateTimeBucket.md) + - [AggregationAPIError](docs/AggregationAPIError.md) - [AggregationItem](docs/AggregationItem.md) - [AggregationOpType](docs/AggregationOpType.md) - [AggregationOperation](docs/AggregationOperation.md) @@ -318,24 +387,30 @@ Class | Method | HTTP request | Description - [AggregationResponse](docs/AggregationResponse.md) - [AggregationResponseStats](docs/AggregationResponseStats.md) - [AggregationValue](docs/AggregationValue.md) + - [AwardUserBadgeResponse](docs/AwardUserBadgeResponse.md) + - [BanUserFromCommentResult](docs/BanUserFromCommentResult.md) + - [BanUserUndoParams](docs/BanUserUndoParams.md) + - [BannedUserMatch](docs/BannedUserMatch.md) + - [BannedUserMatchMatchedOnValue](docs/BannedUserMatchMatchedOnValue.md) + - [BannedUserMatchType](docs/BannedUserMatchType.md) - [BillingInfo](docs/BillingInfo.md) - [BlockFromCommentParams](docs/BlockFromCommentParams.md) - - [BlockFromCommentPublic200Response](docs/BlockFromCommentPublic200Response.md) - [BlockSuccess](docs/BlockSuccess.md) + - [BuildModerationFilterParams](docs/BuildModerationFilterParams.md) + - [BuildModerationFilterResponse](docs/BuildModerationFilterResponse.md) - [BulkAggregateQuestionItem](docs/BulkAggregateQuestionItem.md) - - [BulkAggregateQuestionResults200Response](docs/BulkAggregateQuestionResults200Response.md) - [BulkAggregateQuestionResultsRequest](docs/BulkAggregateQuestionResultsRequest.md) - [BulkAggregateQuestionResultsResponse](docs/BulkAggregateQuestionResultsResponse.md) - [BulkCreateHashTagsBody](docs/BulkCreateHashTagsBody.md) - [BulkCreateHashTagsBodyTagsInner](docs/BulkCreateHashTagsBodyTagsInner.md) - [BulkCreateHashTagsResponse](docs/BulkCreateHashTagsResponse.md) + - [BulkCreateHashTagsResponseResultsInner](docs/BulkCreateHashTagsResponseResultsInner.md) + - [BulkPreBanParams](docs/BulkPreBanParams.md) + - [BulkPreBanSummary](docs/BulkPreBanSummary.md) - [ChangeCommentPinStatusResponse](docs/ChangeCommentPinStatusResponse.md) - - [ChangeTicketState200Response](docs/ChangeTicketState200Response.md) - [ChangeTicketStateBody](docs/ChangeTicketStateBody.md) - [ChangeTicketStateResponse](docs/ChangeTicketStateResponse.md) - [CheckBlockedCommentsResponse](docs/CheckBlockedCommentsResponse.md) - - [CheckedCommentsForBlocked200Response](docs/CheckedCommentsForBlocked200Response.md) - - [CombineCommentsWithQuestionResults200Response](docs/CombineCommentsWithQuestionResults200Response.md) - [CombineQuestionResultsWithCommentsResponse](docs/CombineQuestionResultsWithCommentsResponse.md) - [CommentData](docs/CommentData.md) - [CommentHTMLRenderingMode](docs/CommentHTMLRenderingMode.md) @@ -350,56 +425,42 @@ Class | Method | HTTP request | Description - [CommentUserHashTagInfo](docs/CommentUserHashTagInfo.md) - [CommentUserMentionInfo](docs/CommentUserMentionInfo.md) - [CommenterNameFormats](docs/CommenterNameFormats.md) + - [CommentsByIdsParams](docs/CommentsByIdsParams.md) - [CreateAPIPageData](docs/CreateAPIPageData.md) - [CreateAPISSOUserData](docs/CreateAPISSOUserData.md) - [CreateAPIUserSubscriptionData](docs/CreateAPIUserSubscriptionData.md) - [CreateCommentParams](docs/CreateCommentParams.md) - - [CreateCommentPublic200Response](docs/CreateCommentPublic200Response.md) - - [CreateEmailTemplate200Response](docs/CreateEmailTemplate200Response.md) - [CreateEmailTemplateBody](docs/CreateEmailTemplateBody.md) - [CreateEmailTemplateResponse](docs/CreateEmailTemplateResponse.md) - - [CreateFeedPost200Response](docs/CreateFeedPost200Response.md) - [CreateFeedPostParams](docs/CreateFeedPostParams.md) - - [CreateFeedPostPublic200Response](docs/CreateFeedPostPublic200Response.md) - [CreateFeedPostResponse](docs/CreateFeedPostResponse.md) - [CreateFeedPostsResponse](docs/CreateFeedPostsResponse.md) - [CreateHashTagBody](docs/CreateHashTagBody.md) - [CreateHashTagResponse](docs/CreateHashTagResponse.md) - - [CreateModerator200Response](docs/CreateModerator200Response.md) - [CreateModeratorBody](docs/CreateModeratorBody.md) - [CreateModeratorResponse](docs/CreateModeratorResponse.md) - - [CreateQuestionConfig200Response](docs/CreateQuestionConfig200Response.md) - [CreateQuestionConfigBody](docs/CreateQuestionConfigBody.md) - [CreateQuestionConfigResponse](docs/CreateQuestionConfigResponse.md) - - [CreateQuestionResult200Response](docs/CreateQuestionResult200Response.md) - [CreateQuestionResultBody](docs/CreateQuestionResultBody.md) - [CreateQuestionResultResponse](docs/CreateQuestionResultResponse.md) - [CreateSubscriptionAPIResponse](docs/CreateSubscriptionAPIResponse.md) - - [CreateTenant200Response](docs/CreateTenant200Response.md) - [CreateTenantBody](docs/CreateTenantBody.md) - - [CreateTenantPackage200Response](docs/CreateTenantPackage200Response.md) - [CreateTenantPackageBody](docs/CreateTenantPackageBody.md) - [CreateTenantPackageResponse](docs/CreateTenantPackageResponse.md) - [CreateTenantResponse](docs/CreateTenantResponse.md) - - [CreateTenantUser200Response](docs/CreateTenantUser200Response.md) - [CreateTenantUserBody](docs/CreateTenantUserBody.md) - [CreateTenantUserResponse](docs/CreateTenantUserResponse.md) - - [CreateTicket200Response](docs/CreateTicket200Response.md) - [CreateTicketBody](docs/CreateTicketBody.md) - [CreateTicketResponse](docs/CreateTicketResponse.md) - - [CreateUserBadge200Response](docs/CreateUserBadge200Response.md) - [CreateUserBadgeParams](docs/CreateUserBadgeParams.md) + - [CreateV1PageReact](docs/CreateV1PageReact.md) - [CustomConfigParameters](docs/CustomConfigParameters.md) - [CustomEmailTemplate](docs/CustomEmailTemplate.md) - - [DeleteComment200Response](docs/DeleteComment200Response.md) - [DeleteCommentAction](docs/DeleteCommentAction.md) - - [DeleteCommentPublic200Response](docs/DeleteCommentPublic200Response.md) - [DeleteCommentResult](docs/DeleteCommentResult.md) - - [DeleteCommentVote200Response](docs/DeleteCommentVote200Response.md) - - [DeleteDomainConfig200Response](docs/DeleteDomainConfig200Response.md) - - [DeleteFeedPostPublic200Response](docs/DeleteFeedPostPublic200Response.md) - - [DeleteFeedPostPublic200ResponseAnyOf](docs/DeleteFeedPostPublic200ResponseAnyOf.md) - - [DeleteHashTagRequest](docs/DeleteHashTagRequest.md) + - [DeleteDomainConfigResponse](docs/DeleteDomainConfigResponse.md) + - [DeleteFeedPostPublicResponse](docs/DeleteFeedPostPublicResponse.md) + - [DeleteHashTagRequestBody](docs/DeleteHashTagRequestBody.md) - [DeletePageAPIResponse](docs/DeletePageAPIResponse.md) - [DeleteSSOUserAPIResponse](docs/DeleteSSOUserAPIResponse.md) - [DeleteSubscriptionAPIResponse](docs/DeleteSubscriptionAPIResponse.md) @@ -418,126 +479,124 @@ Class | Method | HTTP request | Description - [FeedPostsStatsResponse](docs/FeedPostsStatsResponse.md) - [FindCommentsByRangeItem](docs/FindCommentsByRangeItem.md) - [FindCommentsByRangeResponse](docs/FindCommentsByRangeResponse.md) - - [FlagComment200Response](docs/FlagComment200Response.md) - - [FlagCommentPublic200Response](docs/FlagCommentPublic200Response.md) - [FlagCommentResponse](docs/FlagCommentResponse.md) - - [GetAuditLogs200Response](docs/GetAuditLogs200Response.md) - [GetAuditLogsResponse](docs/GetAuditLogsResponse.md) - - [GetCachedNotificationCount200Response](docs/GetCachedNotificationCount200Response.md) + - [GetBannedUsersCountResponse](docs/GetBannedUsersCountResponse.md) + - [GetBannedUsersFromCommentResponse](docs/GetBannedUsersFromCommentResponse.md) - [GetCachedNotificationCountResponse](docs/GetCachedNotificationCountResponse.md) - - [GetComment200Response](docs/GetComment200Response.md) - - [GetCommentText200Response](docs/GetCommentText200Response.md) - - [GetCommentVoteUserNames200Response](docs/GetCommentVoteUserNames200Response.md) + - [GetCommentBanStatusResponse](docs/GetCommentBanStatusResponse.md) + - [GetCommentTextResponse](docs/GetCommentTextResponse.md) - [GetCommentVoteUserNamesSuccessResponse](docs/GetCommentVoteUserNamesSuccessResponse.md) - - [GetComments200Response](docs/GetComments200Response.md) - - [GetCommentsPublic200Response](docs/GetCommentsPublic200Response.md) + - [GetCommentsForUserResponse](docs/GetCommentsForUserResponse.md) - [GetCommentsResponsePublicComment](docs/GetCommentsResponsePublicComment.md) - [GetCommentsResponseWithPresencePublicComment](docs/GetCommentsResponseWithPresencePublicComment.md) - - [GetDomainConfig200Response](docs/GetDomainConfig200Response.md) - - [GetDomainConfigs200Response](docs/GetDomainConfigs200Response.md) - - [GetDomainConfigs200ResponseAnyOf](docs/GetDomainConfigs200ResponseAnyOf.md) - - [GetDomainConfigs200ResponseAnyOf1](docs/GetDomainConfigs200ResponseAnyOf1.md) - - [GetEmailTemplate200Response](docs/GetEmailTemplate200Response.md) - - [GetEmailTemplateDefinitions200Response](docs/GetEmailTemplateDefinitions200Response.md) + - [GetDomainConfigResponse](docs/GetDomainConfigResponse.md) + - [GetDomainConfigsResponse](docs/GetDomainConfigsResponse.md) + - [GetDomainConfigsResponseAnyOf](docs/GetDomainConfigsResponseAnyOf.md) + - [GetDomainConfigsResponseAnyOf1](docs/GetDomainConfigsResponseAnyOf1.md) - [GetEmailTemplateDefinitionsResponse](docs/GetEmailTemplateDefinitionsResponse.md) - - [GetEmailTemplateRenderErrors200Response](docs/GetEmailTemplateRenderErrors200Response.md) - [GetEmailTemplateRenderErrorsResponse](docs/GetEmailTemplateRenderErrorsResponse.md) - [GetEmailTemplateResponse](docs/GetEmailTemplateResponse.md) - - [GetEmailTemplates200Response](docs/GetEmailTemplates200Response.md) - [GetEmailTemplatesResponse](docs/GetEmailTemplatesResponse.md) - - [GetEventLog200Response](docs/GetEventLog200Response.md) - [GetEventLogResponse](docs/GetEventLogResponse.md) - - [GetFeedPosts200Response](docs/GetFeedPosts200Response.md) - - [GetFeedPostsPublic200Response](docs/GetFeedPostsPublic200Response.md) - [GetFeedPostsResponse](docs/GetFeedPostsResponse.md) - - [GetFeedPostsStats200Response](docs/GetFeedPostsStats200Response.md) - - [GetHashTags200Response](docs/GetHashTags200Response.md) + - [GetGifsSearchResponse](docs/GetGifsSearchResponse.md) + - [GetGifsTrendingResponse](docs/GetGifsTrendingResponse.md) - [GetHashTagsResponse](docs/GetHashTagsResponse.md) - - [GetModerator200Response](docs/GetModerator200Response.md) - [GetModeratorResponse](docs/GetModeratorResponse.md) - - [GetModerators200Response](docs/GetModerators200Response.md) - [GetModeratorsResponse](docs/GetModeratorsResponse.md) - [GetMyNotificationsResponse](docs/GetMyNotificationsResponse.md) - - [GetNotificationCount200Response](docs/GetNotificationCount200Response.md) - [GetNotificationCountResponse](docs/GetNotificationCountResponse.md) - - [GetNotifications200Response](docs/GetNotifications200Response.md) - [GetNotificationsResponse](docs/GetNotificationsResponse.md) - [GetPageByURLIdAPIResponse](docs/GetPageByURLIdAPIResponse.md) - [GetPagesAPIResponse](docs/GetPagesAPIResponse.md) - - [GetPendingWebhookEventCount200Response](docs/GetPendingWebhookEventCount200Response.md) - [GetPendingWebhookEventCountResponse](docs/GetPendingWebhookEventCountResponse.md) - - [GetPendingWebhookEvents200Response](docs/GetPendingWebhookEvents200Response.md) - [GetPendingWebhookEventsResponse](docs/GetPendingWebhookEventsResponse.md) - [GetPublicFeedPostsResponse](docs/GetPublicFeedPostsResponse.md) - - [GetQuestionConfig200Response](docs/GetQuestionConfig200Response.md) + - [GetPublicPagesResponse](docs/GetPublicPagesResponse.md) - [GetQuestionConfigResponse](docs/GetQuestionConfigResponse.md) - - [GetQuestionConfigs200Response](docs/GetQuestionConfigs200Response.md) - [GetQuestionConfigsResponse](docs/GetQuestionConfigsResponse.md) - - [GetQuestionResult200Response](docs/GetQuestionResult200Response.md) - [GetQuestionResultResponse](docs/GetQuestionResultResponse.md) - - [GetQuestionResults200Response](docs/GetQuestionResults200Response.md) - [GetQuestionResultsResponse](docs/GetQuestionResultsResponse.md) - [GetSSOUserByEmailAPIResponse](docs/GetSSOUserByEmailAPIResponse.md) - [GetSSOUserByIdAPIResponse](docs/GetSSOUserByIdAPIResponse.md) - - [GetSSOUsers200Response](docs/GetSSOUsers200Response.md) + - [GetSSOUsersResponse](docs/GetSSOUsersResponse.md) - [GetSubscriptionsAPIResponse](docs/GetSubscriptionsAPIResponse.md) - - [GetTenant200Response](docs/GetTenant200Response.md) - - [GetTenantDailyUsages200Response](docs/GetTenantDailyUsages200Response.md) - [GetTenantDailyUsagesResponse](docs/GetTenantDailyUsagesResponse.md) - - [GetTenantPackage200Response](docs/GetTenantPackage200Response.md) + - [GetTenantManualBadgesResponse](docs/GetTenantManualBadgesResponse.md) - [GetTenantPackageResponse](docs/GetTenantPackageResponse.md) - - [GetTenantPackages200Response](docs/GetTenantPackages200Response.md) - [GetTenantPackagesResponse](docs/GetTenantPackagesResponse.md) - [GetTenantResponse](docs/GetTenantResponse.md) - - [GetTenantUser200Response](docs/GetTenantUser200Response.md) - [GetTenantUserResponse](docs/GetTenantUserResponse.md) - - [GetTenantUsers200Response](docs/GetTenantUsers200Response.md) - [GetTenantUsersResponse](docs/GetTenantUsersResponse.md) - - [GetTenants200Response](docs/GetTenants200Response.md) - [GetTenantsResponse](docs/GetTenantsResponse.md) - - [GetTicket200Response](docs/GetTicket200Response.md) - [GetTicketResponse](docs/GetTicketResponse.md) - - [GetTickets200Response](docs/GetTickets200Response.md) - [GetTicketsResponse](docs/GetTicketsResponse.md) - - [GetUser200Response](docs/GetUser200Response.md) - - [GetUserBadge200Response](docs/GetUserBadge200Response.md) - - [GetUserBadgeProgressById200Response](docs/GetUserBadgeProgressById200Response.md) - - [GetUserBadgeProgressList200Response](docs/GetUserBadgeProgressList200Response.md) - - [GetUserBadges200Response](docs/GetUserBadges200Response.md) - - [GetUserNotificationCount200Response](docs/GetUserNotificationCount200Response.md) + - [GetTranslationsResponse](docs/GetTranslationsResponse.md) + - [GetUserInternalProfileResponse](docs/GetUserInternalProfileResponse.md) + - [GetUserInternalProfileResponseProfile](docs/GetUserInternalProfileResponseProfile.md) + - [GetUserManualBadgesResponse](docs/GetUserManualBadgesResponse.md) - [GetUserNotificationCountResponse](docs/GetUserNotificationCountResponse.md) - - [GetUserNotifications200Response](docs/GetUserNotifications200Response.md) - - [GetUserPresenceStatuses200Response](docs/GetUserPresenceStatuses200Response.md) - [GetUserPresenceStatusesResponse](docs/GetUserPresenceStatusesResponse.md) - - [GetUserReactsPublic200Response](docs/GetUserReactsPublic200Response.md) - [GetUserResponse](docs/GetUserResponse.md) - - [GetVotes200Response](docs/GetVotes200Response.md) - - [GetVotesForUser200Response](docs/GetVotesForUser200Response.md) + - [GetUserTrustFactorResponse](docs/GetUserTrustFactorResponse.md) + - [GetV1PageLikes](docs/GetV1PageLikes.md) + - [GetV2PageReactUsersResponse](docs/GetV2PageReactUsersResponse.md) + - [GetV2PageReacts](docs/GetV2PageReacts.md) - [GetVotesForUserResponse](docs/GetVotesForUserResponse.md) - [GetVotesResponse](docs/GetVotesResponse.md) + - [GifGetLargeResponse](docs/GifGetLargeResponse.md) - [GifRating](docs/GifRating.md) + - [GifSearchInternalError](docs/GifSearchInternalError.md) + - [GifSearchResponse](docs/GifSearchResponse.md) + - [GifSearchResponseImagesInnerInner](docs/GifSearchResponseImagesInnerInner.md) - [HeaderAccountNotification](docs/HeaderAccountNotification.md) - [HeaderState](docs/HeaderState.md) - [IgnoredResponse](docs/IgnoredResponse.md) - [ImageContentProfanityLevel](docs/ImageContentProfanityLevel.md) + - [ImportedAgentApprovalNotificationFrequency](docs/ImportedAgentApprovalNotificationFrequency.md) - [ImportedSiteType](docs/ImportedSiteType.md) - [LiveEvent](docs/LiveEvent.md) - [LiveEventExtraInfo](docs/LiveEventExtraInfo.md) - [LiveEventType](docs/LiveEventType.md) - - [LockComment200Response](docs/LockComment200Response.md) - [MediaAsset](docs/MediaAsset.md) - [MentionAutoCompleteMode](docs/MentionAutoCompleteMode.md) - [MetaItem](docs/MetaItem.md) + - [ModerationAPIChildCommentsResponse](docs/ModerationAPIChildCommentsResponse.md) + - [ModerationAPIComment](docs/ModerationAPIComment.md) + - [ModerationAPICommentLog](docs/ModerationAPICommentLog.md) + - [ModerationAPICommentResponse](docs/ModerationAPICommentResponse.md) + - [ModerationAPICountCommentsResponse](docs/ModerationAPICountCommentsResponse.md) + - [ModerationAPIGetCommentIdsResponse](docs/ModerationAPIGetCommentIdsResponse.md) + - [ModerationAPIGetCommentsResponse](docs/ModerationAPIGetCommentsResponse.md) + - [ModerationAPIGetLogsResponse](docs/ModerationAPIGetLogsResponse.md) + - [ModerationCommentSearchResponse](docs/ModerationCommentSearchResponse.md) + - [ModerationExportResponse](docs/ModerationExportResponse.md) + - [ModerationExportStatusResponse](docs/ModerationExportStatusResponse.md) + - [ModerationFilter](docs/ModerationFilter.md) + - [ModerationPageSearchProjected](docs/ModerationPageSearchProjected.md) + - [ModerationPageSearchResponse](docs/ModerationPageSearchResponse.md) + - [ModerationSiteSearchProjected](docs/ModerationSiteSearchProjected.md) + - [ModerationSiteSearchResponse](docs/ModerationSiteSearchResponse.md) + - [ModerationSuggestResponse](docs/ModerationSuggestResponse.md) + - [ModerationUserSearchProjected](docs/ModerationUserSearchProjected.md) + - [ModerationUserSearchResponse](docs/ModerationUserSearchResponse.md) - [Moderator](docs/Moderator.md) - [NotificationAndCount](docs/NotificationAndCount.md) - [NotificationObjectType](docs/NotificationObjectType.md) - [NotificationType](docs/NotificationType.md) + - [PageUserEntry](docs/PageUserEntry.md) + - [PageUsersInfoResponse](docs/PageUsersInfoResponse.md) + - [PageUsersOfflineResponse](docs/PageUsersOfflineResponse.md) + - [PageUsersOnlineResponse](docs/PageUsersOnlineResponse.md) + - [PagesSortBy](docs/PagesSortBy.md) - [PatchDomainConfigParams](docs/PatchDomainConfigParams.md) - - [PatchHashTag200Response](docs/PatchHashTag200Response.md) + - [PatchDomainConfigResponse](docs/PatchDomainConfigResponse.md) - [PatchPageAPIResponse](docs/PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](docs/PatchSSOUserAPIResponse.md) - [PendingCommentToSyncOutbound](docs/PendingCommentToSyncOutbound.md) - - [PinComment200Response](docs/PinComment200Response.md) + - [PostRemoveCommentResponse](docs/PostRemoveCommentResponse.md) + - [PreBanSummary](docs/PreBanSummary.md) - [PubSubComment](docs/PubSubComment.md) - [PubSubCommentBase](docs/PubSubCommentBase.md) - [PubSubVote](docs/PubSubVote.md) @@ -548,7 +607,9 @@ Class | Method | HTTP request | Description - [PublicComment](docs/PublicComment.md) - [PublicCommentBase](docs/PublicCommentBase.md) - [PublicFeedPostsResponse](docs/PublicFeedPostsResponse.md) + - [PublicPage](docs/PublicPage.md) - [PublicVote](docs/PublicVote.md) + - [PutDomainConfigResponse](docs/PutDomainConfigResponse.md) - [PutSSOUserAPIResponse](docs/PutSSOUserAPIResponse.md) - [QueryPredicate](docs/QueryPredicate.md) - [QueryPredicateValue](docs/QueryPredicateValue.md) @@ -561,11 +622,10 @@ Class | Method | HTTP request | Description - [QuestionSubQuestionVisibility](docs/QuestionSubQuestionVisibility.md) - [QuestionWhenSave](docs/QuestionWhenSave.md) - [ReactBodyParams](docs/ReactBodyParams.md) - - [ReactFeedPostPublic200Response](docs/ReactFeedPostPublic200Response.md) - [ReactFeedPostResponse](docs/ReactFeedPostResponse.md) - [RecordStringBeforeStringOrNullAfterStringOrNullValue](docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md) - - [RecordStringStringOrNumberValue](docs/RecordStringStringOrNumberValue.md) - - [RenderEmailTemplate200Response](docs/RenderEmailTemplate200Response.md) + - [RemoveCommentActionResponse](docs/RemoveCommentActionResponse.md) + - [RemoveUserBadgeResponse](docs/RemoveUserBadgeResponse.md) - [RenderEmailTemplateBody](docs/RenderEmailTemplateBody.md) - [RenderEmailTemplateResponse](docs/RenderEmailTemplateResponse.md) - [RenderableUserNotification](docs/RenderableUserNotification.md) @@ -573,26 +633,27 @@ Class | Method | HTTP request | Description - [RepeatCommentHandlingAction](docs/RepeatCommentHandlingAction.md) - [ReplaceTenantPackageBody](docs/ReplaceTenantPackageBody.md) - [ReplaceTenantUserBody](docs/ReplaceTenantUserBody.md) - - [ResetUserNotifications200Response](docs/ResetUserNotifications200Response.md) - [ResetUserNotificationsResponse](docs/ResetUserNotificationsResponse.md) - [SORTDIR](docs/SORTDIR.md) - [SSOSecurityLevel](docs/SSOSecurityLevel.md) - - [SaveComment200Response](docs/SaveComment200Response.md) - - [SaveCommentResponse](docs/SaveCommentResponse.md) - [SaveCommentResponseOptimized](docs/SaveCommentResponseOptimized.md) + - [SaveCommentsBulkResponse](docs/SaveCommentsBulkResponse.md) - [SaveCommentsResponseWithPresence](docs/SaveCommentsResponseWithPresence.md) - - [SearchUsers200Response](docs/SearchUsers200Response.md) - [SearchUsersResponse](docs/SearchUsersResponse.md) + - [SearchUsersResult](docs/SearchUsersResult.md) - [SearchUsersSectionedResponse](docs/SearchUsersSectionedResponse.md) - - [SetCommentText200Response](docs/SetCommentText200Response.md) + - [SetCommentApprovedResponse](docs/SetCommentApprovedResponse.md) + - [SetCommentTextParams](docs/SetCommentTextParams.md) + - [SetCommentTextResponse](docs/SetCommentTextResponse.md) - [SetCommentTextResult](docs/SetCommentTextResult.md) + - [SetUserTrustFactorResponse](docs/SetUserTrustFactorResponse.md) - [SizePreset](docs/SizePreset.md) - [SortDirections](docs/SortDirections.md) - [SpamRule](docs/SpamRule.md) - [TOSConfig](docs/TOSConfig.md) + - [TenantBadge](docs/TenantBadge.md) - [TenantHashTag](docs/TenantHashTag.md) - [TenantPackage](docs/TenantPackage.md) - - [UnBlockCommentPublic200Response](docs/UnBlockCommentPublic200Response.md) - [UnBlockFromCommentParams](docs/UnBlockFromCommentParams.md) - [UnblockSuccess](docs/UnblockSuccess.md) - [UpdatableCommentParams](docs/UpdatableCommentParams.md) @@ -612,9 +673,10 @@ Class | Method | HTTP request | Description - [UpdateTenantBody](docs/UpdateTenantBody.md) - [UpdateTenantPackageBody](docs/UpdateTenantPackageBody.md) - [UpdateTenantUserBody](docs/UpdateTenantUserBody.md) - - [UpdateUserBadge200Response](docs/UpdateUserBadge200Response.md) - [UpdateUserBadgeParams](docs/UpdateUserBadgeParams.md) - - [UpdateUserNotificationStatus200Response](docs/UpdateUserNotificationStatus200Response.md) + - [UpdateUserNotificationCommentSubscriptionStatusResponse](docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md) + - [UpdateUserNotificationPageSubscriptionStatusResponse](docs/UpdateUserNotificationPageSubscriptionStatusResponse.md) + - [UpdateUserNotificationStatusResponse](docs/UpdateUserNotificationStatusResponse.md) - [UploadImageResponse](docs/UploadImageResponse.md) - [User](docs/User.md) - [UserBadge](docs/UserBadge.md) @@ -628,8 +690,8 @@ Class | Method | HTTP request | Description - [UserSearchSection](docs/UserSearchSection.md) - [UserSearchSectionResult](docs/UserSearchSectionResult.md) - [UserSessionInfo](docs/UserSessionInfo.md) + - [UsersListLocation](docs/UsersListLocation.md) - [VoteBodyParams](docs/VoteBodyParams.md) - - [VoteComment200Response](docs/VoteComment200Response.md) - [VoteDeleteResponse](docs/VoteDeleteResponse.md) - [VoteResponse](docs/VoteResponse.md) - [VoteResponseUser](docs/VoteResponseUser.md) diff --git a/client/api/openapi.yaml b/client/api/openapi.yaml index 082c41b8..a0379b03 100644 --- a/client/api/openapi.yaml +++ b/client/api/openapi.yaml @@ -63,8 +63,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SearchUsers_200_response" + $ref: "#/components/schemas/SearchUsersResult" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -100,7 +106,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserPresenceStatuses_200_response" + $ref: "#/components/schemas/GetUserPresenceStatusesResponse" description: Ok "422": content: @@ -108,6 +114,12 @@ paths: schema: $ref: "#/components/schemas/APIError" description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -124,6 +136,14 @@ paths: schema: type: string style: form + - description: Used to determine whether the current page is subscribed. + explode: true + in: query + name: urlId + required: false + schema: + type: string + style: form - explode: true in: query name: pageSize @@ -182,6 +202,13 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: includeTenantNotifications + required: false + schema: + type: boolean + style: form - explode: true in: query name: sso @@ -194,8 +221,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserNotifications_200_response" + $ref: "#/components/schemas/GetMyNotificationsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -260,8 +293,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ResetUserNotifications_200_response" + $ref: "#/components/schemas/ResetUserNotificationsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -290,8 +329,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserNotificationCount_200_response" + $ref: "#/components/schemas/GetUserNotificationCountResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -320,8 +365,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ResetUserNotifications_200_response" + $ref: "#/components/schemas/ResetUserNotificationsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -367,8 +418,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateUserNotificationStatus_200_response" + $ref: "#/components/schemas/UpdateUserNotificationStatusResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -422,8 +479,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateUserNotificationStatus_200_response" + $ref: "#/components/schemas/UpdateUserNotificationCommentSubscriptionStatusResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -486,8 +549,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateUserNotificationStatus_200_response" + $ref: "#/components/schemas/UpdateUserNotificationPageSubscriptionStatusResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -541,58 +610,75 @@ paths: x-content-type: multipart/form-data x-accepts: - application/json - /flag-comment/{commentId}: - post: - operationId: FlagCommentPublic + /translations/{namespace}/{component}: + get: + operationId: GetTranslations parameters: - - explode: true - in: query - name: tenantId + - explode: false + in: path + name: namespace required: true schema: type: string - style: form + style: simple - explode: false in: path - name: commentId + name: component required: true schema: type: string style: simple - explode: true in: query - name: isFlagged - required: true + name: locale + required: false schema: - type: boolean + type: string style: form - explode: true in: query - name: sso + name: useFullTranslationIds required: false schema: - type: string + type: boolean style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/GetTranslationsResponse" description: Ok + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Validation Failed + "500": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Internal + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public x-accepts: - application/json - /feed-posts/{tenantId}: + /pages/{tenantId}: get: - description: |2- - - req - tenantId - afterId - operationId: GetFeedPostsPublic + description: |- + 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. + operationId: GetPagesPublic parameters: - explode: false in: path @@ -601,14 +687,17 @@ paths: schema: type: string style: simple - - explode: true + - description: Opaque pagination cursor returned as `nextCursor` from a prior + request. Tied to the same `sortBy`. + explode: true in: query - name: afterId + name: cursor required: false schema: type: string style: form - - explode: true + - description: "1..200, default 50" + explode: true in: query name: limit required: false @@ -616,32 +705,27 @@ paths: format: int32 type: integer style: form - - explode: true - in: query - name: tags - required: false - schema: - items: - type: string - type: array - style: form - - explode: true + - description: Optional case-insensitive title prefix filter. + explode: true in: query - name: sso + name: q required: false schema: type: string style: form - - explode: true + - description: "Sort order. `updatedAt` (default, newest first), `commentCount`\ + \ (most comments first), or `title` (alphabetical)." + explode: true in: query - name: isCrawler + name: sortBy required: false schema: - type: boolean + $ref: "#/components/schemas/PagesSortBy" style: form - - explode: true + - description: "If true, only return pages with at least one comment." + explode: true in: query - name: includeUserInfo + name: hasComments required: false schema: type: boolean @@ -651,15 +735,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetFeedPostsPublic_200_response" + $ref: "#/components/schemas/GetPublicPagesResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public x-accepts: - application/json - post: - operationId: CreateFeedPostPublic + /pages/{tenantId}/users/online: + get: + description: |- + 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). + operationId: GetOnlineUsers parameters: - explode: false in: path @@ -668,42 +762,69 @@ paths: schema: type: string style: simple - - explode: true + - description: Page URL identifier (cleaned server-side). + explode: true in: query - name: broadcastId + name: urlId + required: true + schema: + type: string + style: form + - description: "Cursor: pass nextAfterName from the previous response." + explode: true + in: query + name: afterName required: false schema: type: string style: form - - explode: true + - description: "Cursor tiebreaker: pass nextAfterUserId from the previous response.\ + \ Required when afterName is set so name-ties don't drop entries." + explode: true in: query - name: sso + name: afterUserId required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateFeedPostParams" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateFeedPostPublic_200_response" + $ref: "#/components/schemas/PageUsersOnlineResponse" description: Ok + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Forbidden + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - x-content-type: application/json x-accepts: - application/json - /feed-posts/{tenantId}/react/{postId}: - post: - operationId: ReactFeedPostPublic + /pages/{tenantId}/users/offline: + get: + description: |- + 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. + operationId: GetOfflineUsers parameters: - explode: false in: path @@ -712,56 +833,68 @@ paths: schema: type: string style: simple - - explode: false - in: path - name: postId + - description: Page URL identifier (cleaned server-side). + explode: true + in: query + name: urlId required: true schema: type: string - style: simple - - explode: true - in: query - name: isUndo - required: false - schema: - type: boolean style: form - - explode: true + - description: "Cursor: pass nextAfterName from the previous response." + explode: true in: query - name: broadcastId + name: afterName required: false schema: type: string style: form - - explode: true + - description: "Cursor tiebreaker: pass nextAfterUserId from the previous response.\ + \ Required when afterName is set so name-ties don't drop entries." + explode: true in: query - name: sso + name: afterUserId required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ReactBodyParams" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ReactFeedPostPublic_200_response" + $ref: "#/components/schemas/PageUsersOfflineResponse" description: Ok + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Forbidden + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - x-content-type: application/json x-accepts: - application/json - /feed-posts/{tenantId}/user-reacts: + /pages/{tenantId}/users/info: get: - operationId: GetUserReactsPublic + description: |- + 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). + operationId: GetUsersInfo parameters: - explode: false in: path @@ -770,19 +903,11 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: postIds - required: false - schema: - items: - type: string - type: array - style: form - - explode: true + - description: Comma-delimited userIds. + explode: true in: query - name: sso - required: false + name: ids + required: true schema: type: string style: form @@ -791,16 +916,28 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserReactsPublic_200_response" + $ref: "#/components/schemas/PageUsersInfoResponse" description: Ok + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public x-accepts: - application/json - /feed-posts/{tenantId}/{postId}: + /page-reacts/v1/likes/{tenantId}: delete: - operationId: DeleteFeedPostPublic + operationId: DeleteV1PageReact parameters: - explode: false in: path @@ -809,24 +946,10 @@ paths: schema: type: string style: simple - - explode: false - in: path - name: postId - required: true - schema: - type: string - style: simple - explode: true in: query - name: broadcastId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: sso - required: false + name: urlId + required: true schema: type: string style: form @@ -835,15 +958,21 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteFeedPostPublic_200_response" + $ref: "#/components/schemas/DeleteV1PageReact" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public x-accepts: - application/json - put: - operationId: UpdateFeedPostPublic + get: + operationId: GetV1PageLikes parameters: - explode: false in: path @@ -852,49 +981,33 @@ paths: schema: type: string style: simple - - explode: false - in: path - name: postId - required: true - schema: - type: string - style: simple - - explode: true - in: query - name: broadcastId - required: false - schema: - type: string - style: form - explode: true in: query - name: sso - required: false + name: urlId + required: true schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateFeedPostParams" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateFeedPostPublic_200_response" + $ref: "#/components/schemas/GetV1PageLikes" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - x-content-type: application/json x-accepts: - application/json - /feed-posts/{tenantId}/stats: - get: - operationId: GetFeedPostsStats + post: + operationId: CreateV1PageReact parameters: - explode: false in: path @@ -905,16 +1018,14 @@ paths: style: simple - explode: true in: query - name: postIds + name: urlId required: true schema: - items: - type: string - type: array + type: string style: form - explode: true in: query - name: sso + name: title required: false schema: type: string @@ -924,22 +1035,22 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetFeedPostsStats_200_response" + $ref: "#/components/schemas/CreateV1PageReact" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public x-accepts: - application/json - /event-log/{tenantId}: + /page-reacts/v2/{tenantId}/list: get: - description: |2- - - req - tenantId - urlId - userIdWS - operationId: GetEventLog + operationId: GetV2PageReactUsers parameters: - explode: false in: path @@ -957,48 +1068,32 @@ paths: style: form - explode: true in: query - name: userIdWS + name: id required: true schema: type: string style: form - - explode: true - in: query - name: startTime - required: true - schema: - format: int64 - type: integer - style: form - - explode: true - in: query - name: endTime - required: true - schema: - format: int64 - type: integer - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetEventLog_200_response" + $ref: "#/components/schemas/GetV2PageReactUsersResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public x-accepts: - application/json - /event-log/global/{tenantId}: - get: - description: |2- - - req - tenantId - urlId - userIdWS - operationId: GetGlobalEventLog + /page-reacts/v2/{tenantId}: + delete: + operationId: DeleteV2PageReact parameters: - explode: false in: path @@ -1016,42 +1111,31 @@ paths: style: form - explode: true in: query - name: userIdWS + name: id required: true schema: type: string style: form - - explode: true - in: query - name: startTime - required: true - schema: - format: int64 - type: integer - style: form - - explode: true - in: query - name: endTime - required: true - schema: - format: int64 - type: integer - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetEventLog_200_response" + $ref: "#/components/schemas/DeleteV2PageReact" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public x-accepts: - application/json - /comments/{tenantId}/{commentId}/text: get: - operationId: GetCommentText + operationId: GetV2PageReacts parameters: - explode: false in: path @@ -1060,24 +1144,10 @@ paths: schema: type: string style: simple - - explode: false - in: path - name: commentId - required: true - schema: - type: string - style: simple - - explode: true - in: query - name: editKey - required: false - schema: - type: string - style: form - explode: true in: query - name: sso - required: false + name: urlId + required: true schema: type: string style: form @@ -1086,16 +1156,21 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentText_200_response" + $ref: "#/components/schemas/GetV2PageReacts" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public x-accepts: - application/json - /comments/{tenantId}/{commentId}/update-text: post: - operationId: SetCommentText + operationId: CreateV2PageReact parameters: - explode: false in: path @@ -1104,262 +1179,309 @@ paths: schema: type: string style: simple - - explode: false - in: path - name: commentId - required: true - schema: - type: string - style: simple - explode: true in: query - name: broadcastId + name: urlId required: true schema: type: string style: form - explode: true in: query - name: editKey - required: false + name: id + required: true schema: type: string style: form - explode: true in: query - name: sso + name: title required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CommentTextUpdateRequest" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/SetCommentText_200_response" + $ref: "#/components/schemas/CreateV2PageReact" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - x-content-type: application/json x-accepts: - application/json - /comments/{tenantId}: + /auth/my-account/moderate-comments/count: get: - description: |2- - - req - tenantId - urlId - operationId: GetCommentsPublic + operationId: GetCount parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - explode: true in: query - name: urlId - required: true + name: text-search + required: false schema: type: string style: form - explode: true in: query - name: page + name: byIPFromComment required: false schema: - format: int32 - type: integer + type: string style: form - explode: true in: query - name: direction + name: filter required: false schema: - $ref: "#/components/schemas/SortDirections" + type: string style: form - explode: true in: query - name: sso + name: searchFilters required: false schema: type: string style: form - explode: true in: query - name: skip + name: demo required: false schema: - format: int32 - type: integer + type: boolean style: form - explode: true in: query - name: skipChildren + name: sso required: false schema: - format: int32 - type: integer + type: string style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ModerationAPICountCommentsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + x-accepts: + - application/json + /auth/my-account/moderate-comments/api/ids: + get: + operationId: GetApiIds + parameters: - explode: true in: query - name: limit + name: text-search required: false schema: - format: int32 - type: integer + type: string style: form - explode: true in: query - name: limitChildren + name: byIPFromComment required: false schema: - format: int32 - type: integer + type: string style: form - explode: true in: query - name: countChildren + name: filters required: false schema: - type: boolean + type: string style: form - explode: true in: query - name: fetchPageForCommentId + name: searchFilters required: false schema: type: string style: form - explode: true in: query - name: includeConfig + name: afterId required: false schema: - type: boolean + type: string style: form - explode: true in: query - name: countAll + name: demo required: false schema: type: boolean style: form - explode: true in: query - name: includei10n + name: sso required: false schema: - type: boolean + type: string style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ModerationAPIGetCommentIdsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + x-accepts: + - application/json + /auth/my-account/moderate-comments/api/comments: + get: + operationId: GetApiComments + parameters: - explode: true in: query - name: locale + name: page required: false schema: - type: string + format: double + type: number style: form - explode: true in: query - name: modules + name: count required: false schema: - type: string + format: double + type: number style: form - explode: true in: query - name: isCrawler + name: text-search required: false schema: - type: boolean + type: string style: form - explode: true in: query - name: includeNotificationCount + name: byIPFromComment required: false schema: - type: boolean + type: string style: form - explode: true in: query - name: asTree + name: filters required: false schema: - type: boolean + type: string style: form - explode: true in: query - name: maxTreeDepth + name: searchFilters required: false schema: - format: int32 - type: integer + type: string style: form - explode: true in: query - name: useFullTranslationIds + name: sorts + required: false + schema: + type: string + style: form + - explode: true + in: query + name: demo required: false schema: type: boolean style: form - explode: true in: query - name: parentId + name: sso required: false schema: type: string style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ModerationAPIGetCommentsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + x-accepts: + - application/json + /auth/my-account/moderate-comments/api/export: + post: + operationId: PostApiExport + parameters: - explode: true in: query - name: searchText + name: text-search required: false schema: type: string style: form - explode: true in: query - name: hashTags + name: byIPFromComment required: false schema: - items: - type: string - type: array + type: string style: form - explode: true in: query - name: userId + name: filters required: false schema: type: string style: form - explode: true in: query - name: customConfigStr + name: searchFilters required: false schema: type: string style: form - explode: true in: query - name: afterCommentId + name: sorts required: false schema: type: string style: form - explode: true in: query - name: beforeCommentId + name: sso required: false schema: type: string @@ -1369,40 +1491,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentsPublic_200_response" + $ref: "#/components/schemas/ModerationExportResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public + - Moderation x-accepts: - application/json - post: - operationId: CreateCommentPublic + /auth/my-account/moderate-comments/api/export/status: + get: + operationId: GetApiExportStatus parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - - explode: true - in: query - name: urlId - required: true - schema: - type: string - style: form - - explode: true - in: query - name: broadcastId - required: true - schema: - type: string - style: form - explode: true in: query - name: sessionId + name: batchJobId required: false schema: type: string @@ -1414,53 +1522,31 @@ paths: schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CommentData" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateCommentPublic_200_response" + $ref: "#/components/schemas/ModerationExportStatusResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public - x-content-type: application/json + - Moderation x-accepts: - application/json - /comments/{tenantId}/{commentId}: - delete: - operationId: DeleteCommentPublic + /auth/my-account/moderate-comments/search/users: + get: + operationId: GetSearchUsers parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: commentId - required: true - schema: - type: string - style: simple - - explode: true - in: query - name: broadcastId - required: true - schema: - type: string - style: form - explode: true in: query - name: editKey + name: value required: false schema: type: string @@ -1477,29 +1563,27 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteCommentPublic_200_response" + $ref: "#/components/schemas/ModerationUserSearchResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public + - Moderation x-accepts: - application/json - /check-blocked-comments: + /auth/my-account/moderate-comments/search/pages: get: - operationId: CheckedCommentsForBlocked + operationId: GetSearchPages parameters: - explode: true in: query - name: tenantId - required: true - schema: - type: string - style: form - - description: A comma separated list of comment ids. - explode: true - in: query - name: commentIds - required: true + name: value + required: false schema: type: string style: form @@ -1515,48 +1599,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CheckedCommentsForBlocked_200_response" + $ref: "#/components/schemas/ModerationPageSearchResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public + - Moderation x-accepts: - application/json - /comments/{tenantId}/{commentId}/vote: - post: - operationId: VoteComment + /auth/my-account/moderate-comments/search/sites: + get: + operationId: GetSearchSites parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: commentId - required: true - schema: - type: string - style: simple - - explode: true - in: query - name: urlId - required: true - schema: - type: string - style: form - - explode: true - in: query - name: broadcastId - required: true - schema: - type: string - style: form - explode: true in: query - name: sessionId + name: value required: false schema: type: string @@ -1568,67 +1630,45 @@ paths: schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/VoteBodyParams" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/VoteComment_200_response" + $ref: "#/components/schemas/ModerationSiteSearchResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public - x-content-type: application/json + - Moderation x-accepts: - application/json - /comments/{tenantId}/{commentId}/vote/{voteId}: - delete: - operationId: DeleteCommentVote + /auth/my-account/moderate-comments/search/comments/summary: + get: + operationId: GetSearchCommentsSummary parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: commentId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: voteId - required: true - schema: - type: string - style: simple - explode: true in: query - name: urlId - required: true + name: value + required: false schema: type: string style: form - explode: true in: query - name: broadcastId - required: true + name: filters + required: false schema: type: string style: form - explode: true in: query - name: editKey + name: searchFilters required: false schema: type: string @@ -1645,38 +1685,29 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteCommentVote_200_response" + $ref: "#/components/schemas/ModerationCommentSearchResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public + - Moderation x-accepts: - application/json - /comments/{tenantId}/{commentId}/votes: + /auth/my-account/moderate-comments/search/suggest: get: - operationId: GetCommentVoteUserNames + operationId: GetSearchSuggest parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: commentId - required: true - schema: - type: string - style: simple - explode: true in: query - name: dir - required: true + name: text-search + required: false schema: - format: int32 - type: integer + type: string style: form - explode: true in: query @@ -1690,37 +1721,50 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentVoteUserNames_200_response" + $ref: "#/components/schemas/ModerationSuggestResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public + - Moderation x-accepts: - application/json - /comments/{tenantId}/{commentId}/pin: - post: - operationId: PinComment + /auth/my-account/moderate-comments/pre-ban-summary/{commentId}: + get: + operationId: GetPreBanSummary parameters: - explode: false in: path - name: tenantId + name: commentId required: true schema: type: string style: simple - - explode: false - in: path - name: commentId - required: true + - explode: true + in: query + name: includeByUserIdAndEmail + required: false schema: - type: string - style: simple + type: boolean + style: form - explode: true in: query - name: broadcastId - required: true + name: includeByIP + required: false schema: - type: string + type: boolean + style: form + - explode: true + in: query + name: includeByEmailDomain + required: false + schema: + type: boolean style: form - explode: true in: query @@ -1734,37 +1778,43 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PinComment_200_response" + $ref: "#/components/schemas/PreBanSummary" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public + - Moderation x-accepts: - application/json - /comments/{tenantId}/{commentId}/unpin: + /auth/my-account/moderate-comments/bulk-pre-ban-summary: post: - operationId: UnPinComment + operationId: PostBulkPreBanSummary parameters: - - explode: false - in: path - name: tenantId - required: true + - explode: true + in: query + name: includeByUserIdAndEmail + required: false schema: - type: string - style: simple - - explode: false - in: path - name: commentId - required: true + type: boolean + style: form + - explode: true + in: query + name: includeByIP + required: false schema: - type: string - style: simple + type: boolean + style: form - explode: true in: query - name: broadcastId - required: true + name: includeByEmailDomain + required: false schema: - type: string + type: boolean style: form - explode: true in: query @@ -1773,40 +1823,95 @@ paths: schema: type: string style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/BulkPreBanParams" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/PinComment_200_response" + $ref: "#/components/schemas/BulkPreBanSummary" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public + - Moderation + x-content-type: application/json x-accepts: - application/json - /comments/{tenantId}/{commentId}/lock: + /auth/my-account/moderate-comments/ban-user/from-comment/{commentId}: post: - operationId: LockComment + operationId: PostBanUserFromComment parameters: - explode: false in: path - name: tenantId + name: commentId required: true schema: type: string style: simple - - explode: false - in: path - name: commentId - required: true + - explode: true + in: query + name: banEmail + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: banEmailDomain + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: banIP + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: deleteAllUsersComments + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: bannedUntil + required: false schema: type: string - style: simple + style: form - explode: true in: query - name: broadcastId - required: true + name: isShadowBan + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: updateId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: banReason + required: false schema: type: string style: form @@ -1822,24 +1927,23 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/LockComment_200_response" + $ref: "#/components/schemas/BanUserFromCommentResult" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public + - Moderation x-accepts: - application/json - /comments/{tenantId}/{commentId}/unlock: - post: - operationId: UnLockComment + /auth/my-account/moderate-comments/ban-users/from-comment/{commentId}: + get: + operationId: GetBanUsersFromComment parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - explode: false in: path name: commentId @@ -1847,13 +1951,6 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: broadcastId - required: true - schema: - type: string - style: form - explode: true in: query name: sso @@ -1866,31 +1963,23 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/LockComment_200_response" + $ref: "#/components/schemas/GetBannedUsersFromCommentResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public + - Moderation x-accepts: - application/json - /block-from-comment/{commentId}: - delete: - operationId: UnBlockCommentPublic + /auth/my-account/moderate-comments/ban-user/undo: + post: + operationId: PostBanUserUndo parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - - explode: false - in: path - name: commentId - required: true - schema: - type: string - style: simple - explode: true in: query name: sso @@ -1902,31 +1991,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PublicBlockFromCommentParams" + $ref: "#/components/schemas/BanUserUndoParams" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/UnBlockCommentPublic_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public + - Moderation x-content-type: application/json x-accepts: - application/json + /auth/my-account/moderate-comments/remove-comment/{commentId}: post: - operationId: BlockFromCommentPublic + operationId: PostRemoveComment parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path name: commentId @@ -1941,39 +2030,38 @@ paths: schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PublicBlockFromCommentParams" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/BlockFromCommentPublic_200_response" + $ref: "#/components/schemas/PostRemoveCommentResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public - x-content-type: application/json + - Moderation x-accepts: - application/json - /api/v1/subscriptions: - get: - operationId: GetSubscriptions + /auth/my-account/moderate-comments/restore-deleted-comment/{commentId}: + post: + operationId: PostRestoreDeletedComment parameters: - - explode: true - in: query - name: tenantId + - explode: false + in: path + name: commentId required: true schema: type: string - style: form + style: simple - explode: true in: query - name: userId + name: sso required: false schema: type: string @@ -1983,61 +2071,69 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetSubscriptionsAPIResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json + /auth/my-account/moderate-comments/flag-comment/{commentId}: post: - operationId: CreateSubscription + operationId: PostFlagComment parameters: + - explode: false + in: path + name: commentId + required: true + schema: + type: string + style: simple - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateAPIUserSubscriptionData" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateSubscriptionAPIResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] - x-content-type: application/json + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - /api/v1/subscriptions/{id}: - delete: - operationId: DeleteSubscription + /auth/my-account/moderate-comments/un-flag-comment/{commentId}: + post: + operationId: PostUnFlagComment parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: userId + name: sso required: false schema: type: string @@ -2047,198 +2143,219 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteSubscriptionAPIResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - patch: - operationId: UpdateSubscription + /auth/my-account/moderate-comments/set-comment-review-status/{commentId}: + post: + operationId: PostSetCommentReviewStatus parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: userId + name: reviewed + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: sso required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateAPIUserSubscriptionData" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/UpdateSubscriptionAPIResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] - x-content-type: application/json + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - /api/v1/sso-users: - get: - operationId: GetSSOUsers + /auth/my-account/moderate-comments/set-comment-spam-status/{commentId}: + post: + operationId: PostSetCommentSpamStatus parameters: - - explode: true - in: query - name: tenantId + - explode: false + in: path + name: commentId required: true schema: type: string + style: simple + - explode: true + in: query + name: spam + required: false + schema: + type: boolean style: form - explode: true in: query - name: skip + name: permNotSpam required: false schema: - format: int32 - type: integer + type: boolean style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetSSOUsers_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - post: - operationId: AddSSOUser - parameters: - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateAPISSOUserData" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/AddSSOUserAPIResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] - x-content-type: application/json + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - /api/v1/sso-users/by-id/{id}: - get: - operationId: GetSSOUserById + /auth/my-account/moderate-comments/set-comment-approval-status/{commentId}: + post: + operationId: PostSetCommentApprovalStatus parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple + - explode: true + in: query + name: approved + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: sso + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetSSOUserByIdAPIResponse" + $ref: "#/components/schemas/SetCommentApprovedResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - /api/v1/sso-users/by-email/{email}: + /auth/my-account/moderate-comments/logs/{commentId}: get: - operationId: GetSSOUserByEmail + operationId: GetLogs parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: email + name: commentId required: true schema: type: string style: simple + - explode: true + in: query + name: sso + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetSSOUserByEmailAPIResponse" + $ref: "#/components/schemas/ModerationAPIGetLogsResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - /api/v1/sso-users/{id}: - delete: - operationId: DeleteSSOUser + /auth/my-account/moderate-comments/comment/{commentId}: + get: + operationId: GetModerationComment parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: deleteComments + name: includeEmail required: false schema: type: boolean style: form - explode: true in: query - name: commentDeleteMode + name: includeIP + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: sso required: false schema: type: string @@ -2248,104 +2365,106 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteSSOUserAPIResponse" + $ref: "#/components/schemas/ModerationAPICommentResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - patch: - operationId: PatchSSOUser + /auth/my-account/moderate-comments/comments-by-ids: + post: + operationId: PostCommentsByIds parameters: - explode: true in: query - name: tenantId - required: true - schema: - type: string - style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - - explode: true - in: query - name: updateComments + name: sso required: false schema: - type: boolean + type: string style: form requestBody: content: application/json: schema: - $ref: "#/components/schemas/UpdateAPISSOUserData" + $ref: "#/components/schemas/CommentsByIdsParams" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/PatchSSOUserAPIResponse" + $ref: "#/components/schemas/ModerationAPIChildCommentsResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-content-type: application/json x-accepts: - application/json - put: - operationId: PutSSOUser + /auth/my-account/moderate-comments/comment-children/{commentId}: + get: + operationId: GetCommentChildren parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: updateComments + name: sso required: false schema: - type: boolean + type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateAPISSOUserData" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/PutSSOUserAPIResponse" + $ref: "#/components/schemas/ModerationAPIChildCommentsResponse" description: Ok - security: - - api_key: [] - x-content-type: application/json + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - /api/v1/pages: + /auth/my-account/moderate-comments/get-comment-text/{commentId}: get: - operationId: GetPages + operationId: GetModerationCommentText parameters: - - explode: true - in: query - name: tenantId + - explode: false + in: path + name: commentId required: true + schema: + type: string + style: simple + - explode: true + in: query + name: sso + required: false schema: type: string style: form @@ -2354,19 +2473,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetPagesAPIResponse" + $ref: "#/components/schemas/GetCommentTextResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json + /auth/my-account/moderate-comments/set-comment-text/{commentId}: post: - operationId: AddPage + operationId: PostSetCommentText parameters: + - explode: false + in: path + name: commentId + required: true + schema: + type: string + style: simple - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form @@ -2374,128 +2508,171 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateAPIPageData" + $ref: "#/components/schemas/SetCommentTextParams" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/AddPageAPIResponse" + $ref: "#/components/schemas/SetCommentTextResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-content-type: application/json x-accepts: - application/json - /api/v1/pages/by-url-id: - get: - operationId: GetPageByURLId + /auth/my-account/moderate-comments/adjust-comment-votes/{commentId}: + post: + operationId: PostAdjustCommentVotes parameters: - - explode: true - in: query - name: tenantId + - explode: false + in: path + name: commentId required: true schema: type: string - style: form + style: simple - explode: true in: query - name: urlId - required: true + name: sso + required: false schema: type: string style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AdjustCommentVotesParams" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetPageByURLIdAPIResponse" + $ref: "#/components/schemas/AdjustVotesResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + x-content-type: application/json x-accepts: - application/json - /api/v1/pages/{id}: - delete: - operationId: DeletePage + /auth/my-account/moderate-comments/vote/{commentId}: + post: + operationId: PostVote parameters: + - explode: false + in: path + name: commentId + required: true + schema: + type: string + style: simple - explode: true in: query - name: tenantId - required: true + name: direction + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: sso + required: false schema: type: string - style: simple + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/DeletePageAPIResponse" + $ref: "#/components/schemas/VoteResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - patch: - operationId: PatchPage + /auth/my-account/moderate-comments/vote/{commentId}/{voteId}: + delete: + operationId: DeleteModerationVote parameters: - - explode: true - in: query - name: tenantId + - explode: false + in: path + name: commentId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: voteId required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateAPIPageData" - required: true + - explode: true + in: query + name: sso + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/PatchPageAPIResponse" + $ref: "#/components/schemas/VoteDeleteResponse" description: Ok - security: - - api_key: [] - x-content-type: application/json + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - /api/v1/votes: + /auth/my-account/moderate-comments/get-comment-ban-status/{commentId}: get: - operationId: GetVotes + operationId: GetCommentBanStatus parameters: - - explode: true - in: query - name: tenantId + - explode: false + in: path + name: commentId required: true schema: type: string - style: form + style: simple - explode: true in: query - name: urlId - required: true + name: sso + required: false schema: type: string style: form @@ -2504,49 +2681,98 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetVotes_200_response" + $ref: "#/components/schemas/GetCommentBanStatusResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - post: - operationId: CreateVote + /auth/my-account/moderate-comments/user-ban-preference: + get: + operationId: GetUserBanPreference parameters: - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIModerateGetUserBanPreferencesResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + x-accepts: + - application/json + /auth/my-account/moderate-comments/get-manual-badges: + get: + operationId: GetManualBadges + parameters: - explode: true in: query - name: commentId - required: true + name: sso + required: false schema: type: string style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetTenantManualBadgesResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + x-accepts: + - application/json + /auth/my-account/moderate-comments/get-manual-badges-for-user: + get: + operationId: GetManualBadgesForUser + parameters: - explode: true in: query - name: direction - required: true + name: badgesUserId + required: false schema: - enum: - - up - - down type: string style: form - explode: true in: query - name: userId + name: commentId required: false schema: type: string style: form - explode: true in: query - name: anonUserId + name: sso required: false schema: type: string @@ -2556,40 +2782,54 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/VoteComment_200_response" + $ref: "#/components/schemas/GetUserManualBadgesResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - /api/v1/votes/for-user: - get: - operationId: GetVotesForUser + /auth/my-account/moderate-comments/award-badge: + put: + operationId: PutAwardBadge parameters: - explode: true in: query - name: tenantId + name: badgeId required: true schema: type: string style: form - explode: true in: query - name: urlId - required: true + name: userId + required: false schema: type: string style: form - explode: true in: query - name: userId + name: commentId required: false schema: type: string style: form - explode: true in: query - name: anonUserId + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: sso required: false schema: type: string @@ -2599,33 +2839,54 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetVotesForUser_200_response" + $ref: "#/components/schemas/AwardUserBadgeResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - /api/v1/votes/{id}: - delete: - operationId: DeleteVote + /auth/my-account/moderate-comments/remove-badge: + put: + operationId: PutRemoveBadge parameters: - explode: true in: query - name: tenantId + name: badgeId required: true schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: userId + required: false schema: type: string - style: simple + style: form - explode: true in: query - name: editKey + name: commentId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: sso required: false schema: type: string @@ -2635,286 +2896,263 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteCommentVote_200_response" + $ref: "#/components/schemas/RemoveUserBadgeResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - /api/v1/users/{id}: + /auth/my-account/moderate-comments/get-trust-factor: get: - operationId: GetUser + operationId: GetTrustFactor parameters: - explode: true in: query - name: tenantId - required: true + name: userId + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: sso + required: false schema: type: string - style: simple + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetUser_200_response" + $ref: "#/components/schemas/GetUserTrustFactorResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - /api/v1/user-badges/{id}: - delete: - operationId: DeleteUserBadge + /auth/my-account/moderate-comments/set-trust-factor: + put: + operationId: SetTrustFactor parameters: - explode: true in: query - name: tenantId - required: true + name: userId + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: trustFactor + required: false schema: type: string - style: simple + style: form + - explode: true + in: query + name: sso + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/UpdateUserBadge_200_response" + $ref: "#/components/schemas/SetUserTrustFactorResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json + /auth/my-account/moderate-comments/get-user-internal-profile: get: - operationId: GetUserBadge + operationId: GetUserInternalProfile parameters: - explode: true in: query - name: tenantId - required: true + name: commentId + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: sso + required: false schema: type: string - style: simple + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetUserBadge_200_response" + $ref: "#/components/schemas/GetUserInternalProfileResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json + /auth/my-account/moderate-comments/reopen-thread: put: - operationId: UpdateUserBadge + operationId: PutReopenThread parameters: - explode: true in: query - name: tenantId + name: urlId required: true schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: sso + required: false schema: type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateUserBadgeParams" - required: true + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/UpdateUserBadge_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] - x-content-type: application/json + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - /api/v1/user-badges: - get: - operationId: GetUserBadges + /auth/my-account/moderate-comments/close-thread: + put: + operationId: PutCloseThread parameters: - explode: true in: query - name: tenantId + name: urlId required: true schema: type: string style: form - explode: true in: query - name: userId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: badgeId + name: sso required: false schema: type: string style: form - - explode: true - in: query - name: type - required: false - schema: - format: double - type: number - style: form - - explode: true - in: query - name: displayedOnComments - required: false - schema: - type: boolean - style: form - - explode: true - in: query - name: limit - required: false - schema: - format: double - type: number - style: form - - explode: true - in: query - name: skip - required: false - schema: - format: double - type: number - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetUserBadges_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - post: - operationId: CreateUserBadge + /auth/my-account/moderate-comments/banned-users/counts: + get: + operationId: GetCounts parameters: - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateUserBadgeParams" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateUserBadge_200_response" + $ref: "#/components/schemas/GetBannedUsersCountResponse" description: Ok - security: - - api_key: [] - x-content-type: application/json + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation x-accepts: - application/json - /api/v1/user-badge-progress/{id}: + /gifs/trending/{tenantId}: get: - operationId: GetUserBadgeProgressById + operationId: GetGifsTrending parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: tenantId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetUserBadgeProgressById_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - /api/v1/user-badge-progress: - get: - operationId: GetUserBadgeProgressList - parameters: - explode: true in: query - name: tenantId - required: true + name: locale + required: false schema: type: string style: form - explode: true in: query - name: userId + name: rating required: false schema: type: string style: form - explode: true in: query - name: limit - required: false - schema: - format: double - type: number - style: form - - explode: true - in: query - name: skip + name: page required: false schema: format: double @@ -2925,78 +3163,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserBadgeProgressList_200_response" + $ref: "#/components/schemas/GetGifsTrendingResponse" description: Ok - security: - - api_key: [] + security: [] + tags: + - Public x-accepts: - application/json - /api/v1/user-badge-progress/user/{userId}: + /gifs/search/{tenantId}: get: - operationId: GetUserBadgeProgressByUserId + operationId: GetGifsSearch parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: userId + name: tenantId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetUserBadgeProgressById_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - /api/v1/tickets: - get: - operationId: GetTickets - parameters: - explode: true in: query - name: tenantId + name: search required: true schema: type: string style: form - explode: true in: query - name: userId + name: locale required: false schema: type: string style: form - explode: true in: query - name: state - required: false - schema: - format: double - type: number - style: form - - explode: true - in: query - name: skip + name: rating required: false schema: - format: double - type: number + type: string style: form - explode: true in: query - name: limit + name: page required: false schema: format: double @@ -3007,50 +3215,70 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTickets_200_response" + $ref: "#/components/schemas/GetGifsSearchResponse" description: Ok - security: - - api_key: [] + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - post: - operationId: CreateTicket + /gifs/get-large/{tenantId}: + get: + operationId: GetGifLarge parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: true in: query - name: userId + name: largeInternalURLSanitized required: true schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateTicketBody" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateTicket_200_response" + $ref: "#/components/schemas/GifGetLargeResponse" description: Ok - security: - - api_key: [] - x-content-type: application/json + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - /api/v1/tickets/{id}: - get: - operationId: GetTicket + /flag-comment/{commentId}: + post: + operationId: FlagCommentPublic parameters: - explode: true in: query @@ -3061,14 +3289,21 @@ paths: style: form - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: userId + name: isFlagged + required: true + schema: + type: boolean + style: form + - explode: true + in: query + name: sso required: false schema: type: string @@ -3078,247 +3313,284 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTicket_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - /api/v1/tickets/{id}/state: - patch: - operationId: ChangeTicketState + /feed-posts/{tenantId}: + get: + description: |2- + + req + tenantId + afterId + operationId: GetFeedPostsPublic parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: true in: query - name: userId - required: true + name: afterId + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: tags + required: false + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: sso + required: false schema: type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ChangeTicketStateBody" - required: true + style: form + - explode: true + in: query + name: isCrawler + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: includeUserInfo + required: false + schema: + type: boolean + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ChangeTicketState_200_response" + $ref: "#/components/schemas/PublicFeedPostsResponse" description: Ok - security: - - api_key: [] - x-content-type: application/json + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - /api/v1/tenants/{id}: - delete: - operationId: DeleteTenant + post: + operationId: CreateFeedPostPublic parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: tenantId required: true schema: type: string style: simple - explode: true in: query - name: sure + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: sso required: false schema: type: string style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateFeedPostParams" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/CreateFeedPostResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + x-content-type: application/json x-accepts: - application/json - get: - operationId: GetTenant + /feed-posts/{tenantId}/react/{postId}: + post: + operationId: ReactFeedPostPublic parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: postId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetTenant_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - patch: - operationId: UpdateTenant - parameters: - explode: true in: query - name: tenantId - required: true + name: isUndo + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: broadcastId + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: sso + required: false schema: type: string - style: simple + style: form requestBody: content: application/json: schema: - $ref: "#/components/schemas/UpdateTenantBody" + $ref: "#/components/schemas/ReactBodyParams" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/ReactFeedPostResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-content-type: application/json x-accepts: - application/json - /api/v1/tenants: + /feed-posts/{tenantId}/user-reacts: get: - operationId: GetTenants + operationId: GetUserReactsPublic parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: true in: query - name: meta + name: postIds required: false schema: - type: string + items: + type: string + type: array style: form - explode: true in: query - name: skip + name: sso required: false schema: - format: double - type: number + type: string style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetTenants_200_response" + $ref: "#/components/schemas/UserReactsResponse" description: Ok - security: - - api_key: [] - x-accepts: - - application/json - post: - operationId: CreateTenant - parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateTenantBody" - required: true - responses: - "200": + default: content: application/json: schema: - $ref: "#/components/schemas/CreateTenant_200_response" - description: Ok - security: - - api_key: [] - x-content-type: application/json + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - /api/v1/tenant-users/{id}: + /feed-posts/{tenantId}/{postId}: delete: - operationId: DeleteTenantUser + operationId: DeleteFeedPostPublic parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: postId required: true schema: type: string style: simple - explode: true in: query - name: deleteComments + name: broadcastId required: false schema: type: string style: form - explode: true in: query - name: commentDeleteMode + name: sso required: false schema: type: string @@ -3328,60 +3600,46 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/DeleteFeedPostPublicResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - get: - operationId: GetTenantUser + put: + operationId: UpdateFeedPostPublic parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: postId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetTenantUser_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - patch: - operationId: UpdateTenantUser - parameters: - explode: true in: query - name: tenantId - required: true + name: broadcastId + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - explode: true in: query - name: updateComments + name: sso required: false schema: type: string @@ -3390,320 +3648,288 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateTenantUserBody" + $ref: "#/components/schemas/UpdateFeedPostParams" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/CreateFeedPostResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-content-type: application/json x-accepts: - application/json - put: - operationId: ReplaceTenantUser + /feed-posts/{tenantId}/stats: + get: + operationId: GetFeedPostsStats parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: tenantId required: true schema: type: string style: simple - explode: true in: query - name: updateComments + name: postIds + required: true + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: sso required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ReplaceTenantUserBody" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/FeedPostsStatsResponse" description: Ok - security: - - api_key: [] - x-content-type: application/json + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - /api/v1/tenant-users: + /event-log/{tenantId}: get: - operationId: GetTenantUsers + description: |2- + + req + tenantId + urlId + userIdWS + operationId: GetEventLog parameters: + - explode: false + in: path + name: tenantId + required: true + schema: + type: string + style: simple - explode: true in: query - name: tenantId + name: urlId required: true schema: type: string style: form - explode: true in: query - name: skip + name: userIdWS + required: true + schema: + type: string + style: form + - explode: true + in: query + name: startTime + required: true + schema: + format: int64 + type: integer + style: form + - explode: true + in: query + name: endTime required: false schema: - format: double - type: number + format: int64 + type: integer style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetTenantUsers_200_response" + $ref: "#/components/schemas/GetEventLogResponse" description: Ok - security: - - api_key: [] - x-accepts: - - application/json - post: - operationId: CreateTenantUser - parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateTenantUserBody" - required: true - responses: - "200": + default: content: application/json: schema: - $ref: "#/components/schemas/CreateTenantUser_200_response" - description: Ok - security: - - api_key: [] - x-content-type: application/json + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - /api/v1/tenant-users/{id}/send-login-link: - post: - operationId: SendLoginLink + /event-log/global/{tenantId}: + get: + description: |2- + + req + tenantId + urlId + userIdWS + operationId: GetGlobalEventLog parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: tenantId required: true schema: type: string style: simple - explode: true in: query - name: redirectURL - required: false + name: urlId + required: true schema: type: string style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - /api/v1/tenant-packages/{id}: - delete: - operationId: DeleteTenantPackage - parameters: - explode: true in: query - name: tenantId + name: userIdWS required: true schema: type: string style: form - - explode: false - in: path - name: id + - explode: true + in: query + name: startTime required: true schema: - type: string - style: simple + format: int64 + type: integer + style: form + - explode: true + in: query + name: endTime + required: false + schema: + format: int64 + type: integer + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/GetEventLogResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json + /comments/{tenantId}/{commentId}/text: get: - operationId: GetTenantPackage + operationId: GetCommentText parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetTenantPackage_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - patch: - operationId: UpdateTenantPackage - parameters: - explode: true in: query - name: tenantId - required: true + name: editKey + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: sso + required: false schema: type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateTenantPackageBody" - required: true + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/PublicAPIGetCommentTextResponse" description: Ok - security: - - api_key: [] - x-content-type: application/json + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - put: - operationId: ReplaceTenantPackage + /comments/{tenantId}/{commentId}/update-text: + post: + operationId: SetCommentText parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ReplaceTenantPackageBody" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - x-content-type: application/json - x-accepts: - - application/json - /api/v1/tenant-packages: - get: - operationId: GetTenantPackages - parameters: - explode: true in: query - name: tenantId + name: broadcastId required: true schema: type: string style: form - explode: true in: query - name: skip + name: editKey required: false schema: - format: double - type: number + type: string style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetTenantPackages_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - post: - operationId: CreateTenantPackage - parameters: - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form @@ -3711,50 +3937,55 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateTenantPackageBody" + $ref: "#/components/schemas/CommentTextUpdateRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateTenantPackage_200_response" + $ref: "#/components/schemas/PublicAPISetCommentTextResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-content-type: application/json x-accepts: - application/json - /api/v1/tenant-daily-usage: + /comments-for-user: get: - operationId: GetTenantDailyUsages + operationId: GetCommentsForUser parameters: - explode: true in: query - name: tenantId - required: true + name: userId + required: false schema: type: string style: form - explode: true in: query - name: yearNumber + name: direction required: false schema: - format: double - type: number + $ref: "#/components/schemas/SortDirections" style: form - explode: true in: query - name: monthNumber + name: repliesToUserId required: false schema: - format: double - type: number + type: string style: form - explode: true in: query - name: dayNumber + name: page required: false schema: format: double @@ -3762,332 +3993,222 @@ paths: style: form - explode: true in: query - name: skip + name: includei10n required: false schema: - format: double - type: number + type: boolean + style: form + - explode: true + in: query + name: locale + required: false + schema: + type: string + style: form + - explode: true + in: query + name: isCrawler + required: false + schema: + type: boolean style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetTenantDailyUsages_200_response" + $ref: "#/components/schemas/GetCommentsForUserResponse" description: Ok - security: - - api_key: [] - x-accepts: - - application/json - /api/v1/question-results/{id}: - delete: - operationId: DeleteQuestionResult - parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": + default: content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json + /comments/{tenantId}: get: - operationId: GetQuestionResult + description: |2- + + req + tenantId + urlId + operationId: GetCommentsPublic parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: tenantId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetQuestionResult_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - patch: - operationId: UpdateQuestionResult - parameters: - explode: true in: query - name: tenantId + name: urlId required: true schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: page + required: false schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateQuestionResultBody" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - x-content-type: application/json - x-accepts: - - application/json - /api/v1/question-results: - get: - operationId: GetQuestionResults - parameters: + format: int32 + type: integer + style: form - explode: true in: query - name: tenantId - required: true + name: direction + required: false schema: - type: string + $ref: "#/components/schemas/SortDirections" style: form - explode: true in: query - name: urlId + name: sso required: false schema: type: string style: form - explode: true in: query - name: userId + name: skip required: false schema: - type: string + format: int32 + type: integer style: form - explode: true in: query - name: startDate + name: skipChildren required: false schema: - type: string + format: int32 + type: integer style: form - explode: true in: query - name: questionId + name: limit required: false schema: - type: string + format: int32 + type: integer style: form - explode: true in: query - name: questionIds + name: limitChildren required: false schema: - type: string + format: int32 + type: integer style: form - explode: true in: query - name: skip + name: countChildren required: false schema: - format: double - type: number + type: boolean style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetQuestionResults_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - post: - operationId: CreateQuestionResult - parameters: - explode: true in: query - name: tenantId - required: true + name: fetchPageForCommentId + required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateQuestionResultBody" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/CreateQuestionResult_200_response" - description: Ok - security: - - api_key: [] - x-content-type: application/json - x-accepts: - - application/json - /api/v1/question-results-aggregation: - get: - operationId: AggregateQuestionResults - parameters: - explode: true in: query - name: tenantId - required: true + name: includeConfig + required: false schema: - type: string + type: boolean style: form - explode: true in: query - name: questionId + name: countAll required: false schema: - type: string + type: boolean style: form - explode: true in: query - name: questionIds + name: includei10n required: false schema: - items: - type: string - type: array + type: boolean style: form - explode: true in: query - name: urlId + name: locale required: false schema: type: string style: form - explode: true in: query - name: timeBucket + name: modules required: false schema: - $ref: "#/components/schemas/AggregateTimeBucket" + type: string style: form - explode: true in: query - name: startDate + name: isCrawler required: false schema: - format: date-time - type: string + type: boolean style: form - explode: true in: query - name: forceRecalculate + name: includeNotificationCount required: false schema: type: boolean style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/AggregateQuestionResults_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - /api/v1/question-results-aggregation/bulk: - post: - operationId: BulkAggregateQuestionResults - parameters: - explode: true in: query - name: tenantId - required: true + name: asTree + required: false schema: - type: string + type: boolean style: form - explode: true in: query - name: forceRecalculate + name: maxTreeDepth + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: useFullTranslationIds required: false schema: type: boolean style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/BulkAggregateQuestionResultsRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/BulkAggregateQuestionResults_200_response" - description: Ok - security: - - api_key: [] - x-content-type: application/json - x-accepts: - - application/json - /api/v1/question-results-aggregation/combine/comments: - get: - operationId: CombineCommentsWithQuestionResults - parameters: - explode: true in: query - name: tenantId - required: true + name: parentId + required: false schema: type: string style: form - explode: true in: query - name: questionId + name: searchText required: false schema: type: string style: form - explode: true in: query - name: questionIds + name: hashTags required: false schema: items: @@ -4096,190 +4217,85 @@ paths: style: form - explode: true in: query - name: urlId + name: userId required: false schema: type: string style: form - explode: true in: query - name: startDate + name: customConfigStr required: false schema: - format: date-time type: string style: form - explode: true in: query - name: forceRecalculate - required: false - schema: - type: boolean - style: form - - explode: true - in: query - name: minValue - required: false - schema: - format: double - type: number - style: form - - explode: true - in: query - name: maxValue + name: afterCommentId required: false schema: - format: double - type: number + type: string style: form - explode: true in: query - name: limit + name: beforeCommentId required: false schema: - format: double - type: number + type: string style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CombineCommentsWithQuestionResults_200_response" + $ref: "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" description: Ok - security: - - api_key: [] - x-accepts: - - application/json - /api/v1/question-configs/{id}: - delete: - operationId: DeleteQuestionConfig - parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": + default: content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - get: - operationId: GetQuestionConfig + post: + operationId: CreateCommentPublic parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: tenantId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetQuestionConfig_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - patch: - operationId: UpdateQuestionConfig - parameters: - explode: true in: query - name: tenantId + name: urlId required: true schema: type: string style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateQuestionConfigBody" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - x-content-type: application/json - x-accepts: - - application/json - /api/v1/question-configs: - get: - operationId: GetQuestionConfigs - parameters: - explode: true in: query - name: tenantId + name: broadcastId required: true schema: type: string style: form - explode: true in: query - name: skip + name: sessionId required: false schema: - format: double - type: number + type: string style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetQuestionConfigs_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - post: - operationId: CreateQuestionConfig - parameters: - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form @@ -4287,294 +4303,299 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateQuestionConfigBody" + $ref: "#/components/schemas/CommentData" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateQuestionConfig_200_response" + $ref: "#/components/schemas/SaveCommentsResponseWithPresence" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-content-type: application/json x-accepts: - application/json - /api/v1/pending-webhook-events: - get: - operationId: GetPendingWebhookEvents + /comments/{tenantId}/{commentId}: + delete: + operationId: DeleteCommentPublic parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form - - explode: true - in: query + style: simple + - explode: false + in: path name: commentId - required: false + required: true schema: type: string - style: form + style: simple - explode: true in: query - name: externalId - required: false + name: broadcastId + required: true schema: type: string style: form - explode: true in: query - name: eventType + name: editKey required: false schema: type: string style: form - explode: true in: query - name: type + name: sso required: false schema: type: string style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PublicAPIDeleteCommentResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + x-accepts: + - application/json + /check-blocked-comments: + get: + operationId: CheckedCommentsForBlocked + parameters: - explode: true in: query - name: domain - required: false + name: tenantId + required: true schema: type: string style: form - - explode: true + - description: A comma separated list of comment ids. + explode: true in: query - name: attemptCountGT - required: false + name: commentIds + required: true schema: - format: double - type: number + type: string style: form - explode: true in: query - name: skip + name: sso required: false schema: - format: double - type: number + type: string style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetPendingWebhookEvents_200_response" + $ref: "#/components/schemas/CheckBlockedCommentsResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - /api/v1/pending-webhook-events/count: - get: - operationId: GetPendingWebhookEventCount + /comments/{tenantId}/{commentId}/vote: + post: + operationId: VoteComment parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple + - explode: false + in: path + name: commentId + required: true + schema: + type: string + style: simple - explode: true in: query - name: commentId - required: false + name: urlId + required: true schema: type: string style: form - explode: true in: query - name: externalId - required: false + name: broadcastId + required: true schema: type: string style: form - explode: true in: query - name: eventType + name: sessionId required: false schema: type: string style: form - explode: true in: query - name: type + name: sso required: false schema: type: string style: form - - explode: true - in: query - name: domain - required: false - schema: - type: string - style: form - - explode: true - in: query - name: attemptCountGT - required: false - schema: - format: double - type: number - style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/VoteBodyParams" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetPendingWebhookEventCount_200_response" + $ref: "#/components/schemas/VoteResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + x-content-type: application/json x-accepts: - application/json - /api/v1/pending-webhook-events/{id}: + /comments/{tenantId}/{commentId}/vote/{voteId}: delete: - operationId: DeletePendingWebhookEvent + operationId: DeleteCommentVote parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - /api/v1/notifications: - get: - operationId: GetNotifications - parameters: - - explode: true - in: query - name: tenantId + - explode: false + in: path + name: voteId required: true schema: type: string - style: form - - explode: true - in: query - name: userId - required: false - schema: - type: string - style: form + style: simple - explode: true in: query name: urlId - required: false + required: true schema: type: string style: form - explode: true in: query - name: fromCommentId - required: false + name: broadcastId + required: true schema: type: string style: form - explode: true in: query - name: viewed - required: false - schema: - type: boolean - style: form - - explode: true - in: query - name: type + name: editKey required: false schema: type: string style: form - explode: true in: query - name: skip + name: sso required: false schema: - format: double - type: number + type: string style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetNotifications_200_response" + $ref: "#/components/schemas/VoteDeleteResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - /api/v1/notifications/count: + /comments/{tenantId}/{commentId}/votes: get: - operationId: GetNotificationCount + operationId: GetCommentVoteUserNames parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form - - explode: true - in: query - name: userId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: urlId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: fromCommentId - required: false + style: simple + - explode: false + in: path + name: commentId + required: true schema: type: string - style: form + style: simple - explode: true in: query - name: viewed - required: false + name: dir + required: true schema: - type: boolean + format: int32 + type: integer style: form - explode: true in: query - name: type + name: sso required: false schema: type: string @@ -4584,243 +4605,222 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetNotificationCount_200_response" + $ref: "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - /api/v1/notifications/{id}: - patch: - operationId: UpdateNotification + /comments/{tenantId}/{commentId}/pin: + post: + operationId: PinComment parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: userId + name: broadcastId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: sso required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateNotificationBody" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/ChangeCommentPinStatusResponse" description: Ok - security: - - api_key: [] - x-content-type: application/json + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - /api/v1/notification-count/{id}: - delete: - operationId: DeleteNotificationCount + /comments/{tenantId}/{commentId}/unpin: + post: + operationId: UnPinComment parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - get: - operationId: GetCachedNotificationCount - parameters: - explode: true in: query - name: tenantId + name: broadcastId required: true schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: sso + required: false schema: type: string - style: simple + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetCachedNotificationCount_200_response" + $ref: "#/components/schemas/ChangeCommentPinStatusResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - /api/v1/moderators/{id}: - delete: - operationId: DeleteModerator + /comments/{tenantId}/{commentId}/lock: + post: + operationId: LockComment parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: sendEmail - required: false + name: broadcastId + required: true schema: type: string style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - get: - operationId: GetModerator - parameters: - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetModerator_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - patch: - operationId: UpdateModerator + /comments/{tenantId}/{commentId}/unlock: + post: + operationId: UnLockComment parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateModeratorBody" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - x-content-type: application/json - x-accepts: - - application/json - /api/v1/moderators: - get: - operationId: GetModerators - parameters: - explode: true in: query - name: tenantId + name: broadcastId required: true schema: type: string style: form - explode: true in: query - name: skip + name: sso required: false schema: - format: double - type: number + type: string style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetModerators_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-accepts: - application/json - post: - operationId: CreateModerator + /block-from-comment/{commentId}: + delete: + operationId: UnBlockCommentPublic parameters: - explode: true in: query @@ -4829,27 +4829,47 @@ paths: schema: type: string style: form + - explode: false + in: path + name: commentId + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: sso + required: false + schema: + type: string + style: form requestBody: content: application/json: schema: - $ref: "#/components/schemas/CreateModeratorBody" + $ref: "#/components/schemas/PublicBlockFromCommentParams" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateModerator_200_response" + $ref: "#/components/schemas/UnblockSuccess" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public x-content-type: application/json x-accepts: - application/json - /api/v1/moderators/{id}/send-invite: post: - operationId: SendInvite + operationId: BlockFromCommentPublic parameters: - explode: true in: query @@ -4860,32 +4880,62 @@ paths: style: form - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: fromName - required: true + name: sso + required: false schema: type: string style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PublicBlockFromCommentParams" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/BlockSuccess" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + x-content-type: application/json x-accepts: - application/json - /api/v1/hash-tags: + /auth/logout: + put: + operationId: LogoutPublic + parameters: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + security: [] + tags: + - Public + x-accepts: + - application/json + /api/v1/subscriptions: get: - operationId: GetHashTags + operationId: GetSubscriptions parameters: - explode: true in: query @@ -4896,30 +4946,29 @@ paths: style: form - explode: true in: query - name: page + name: userId required: false schema: - format: double - type: number + type: string style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetHashTags_200_response" + $ref: "#/components/schemas/GetSubscriptionsAPIResponse" description: Ok security: - api_key: [] x-accepts: - application/json post: - operationId: AddHashTag + operationId: CreateSubscription parameters: - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form @@ -4927,98 +4976,76 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateHashTagBody" - required: false + $ref: "#/components/schemas/CreateAPIUserSubscriptionData" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/AddHashTag_200_response" + $ref: "#/components/schemas/CreateSubscriptionAPIResponse" description: Ok security: - api_key: [] x-content-type: application/json x-accepts: - application/json - /api/v1/hash-tags/bulk: - post: - operationId: AddHashTagsBulk + /api/v1/subscriptions/{id}: + delete: + operationId: DeleteSubscription parameters: - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/BulkCreateHashTagsBody" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/AddHashTagsBulk_200_response" - description: Ok - security: - - api_key: [] - x-content-type: application/json - x-accepts: - - application/json - /api/v1/hash-tags/{tag}: - delete: - operationId: DeleteHashTag - parameters: - explode: false in: path - name: tag + name: id required: true schema: type: string style: simple - explode: true in: query - name: tenantId + name: userId required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/DeleteHashTag_request" - required: false responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/DeleteSubscriptionAPIResponse" description: Ok security: - api_key: [] - x-content-type: application/json x-accepts: - application/json patch: - operationId: PatchHashTag + operationId: UpdateSubscription parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path - name: tag + name: id required: true schema: type: string style: simple - explode: true in: query - name: tenantId + name: userId required: false schema: type: string @@ -5027,28 +5054,23 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateHashTagBody" - required: false + $ref: "#/components/schemas/UpdateAPIUserSubscriptionData" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/PatchHashTag_200_response" + $ref: "#/components/schemas/UpdateSubscriptionAPIResponse" description: Ok security: - api_key: [] x-content-type: application/json x-accepts: - application/json - /api/v1/feed-posts: + /api/v1/sso-users: get: - description: |2- - - req - tenantId - afterId - operationId: GetFeedPosts + operationId: GetSSOUsers parameters: - explode: true in: query @@ -5059,41 +5081,25 @@ paths: style: form - explode: true in: query - name: afterId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: limit + name: skip required: false schema: format: int32 type: integer style: form - - explode: true - in: query - name: tags - required: false - schema: - items: - type: string - type: array - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetFeedPosts_200_response" + $ref: "#/components/schemas/GetSSOUsersResponse" description: Ok security: - api_key: [] x-accepts: - application/json post: - operationId: CreateFeedPost + operationId: AddSSOUser parameters: - explode: true in: query @@ -5102,55 +5108,27 @@ paths: schema: type: string style: form - - explode: true - in: query - name: broadcastId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: isLive - required: false - schema: - type: boolean - style: form - - explode: true - in: query - name: doSpamCheck - required: false - schema: - type: boolean - style: form - - explode: true - in: query - name: skipDupCheck - required: false - schema: - type: boolean - style: form requestBody: content: application/json: schema: - $ref: "#/components/schemas/CreateFeedPostParams" + $ref: "#/components/schemas/CreateAPISSOUserData" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateFeedPost_200_response" + $ref: "#/components/schemas/AddSSOUserAPIResponse" description: Ok security: - api_key: [] x-content-type: application/json x-accepts: - application/json - /api/v1/feed-posts/{id}: - patch: - operationId: UpdateFeedPost + /api/v1/sso-users/by-id/{id}: + get: + operationId: GetSSOUserById parameters: - explode: true in: query @@ -5166,27 +5144,20 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/FeedPost" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/GetSSOUserByIdAPIResponse" description: Ok security: - api_key: [] - x-content-type: application/json x-accepts: - application/json - /api/v1/email-templates/definitions: + /api/v1/sso-users/by-email/{email}: get: - operationId: GetEmailTemplateDefinitions + operationId: GetSSOUserByEmail parameters: - explode: true in: query @@ -5195,20 +5166,27 @@ paths: schema: type: string style: form + - explode: false + in: path + name: email + required: true + schema: + type: string + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetEmailTemplateDefinitions_200_response" + $ref: "#/components/schemas/GetSSOUserByEmailAPIResponse" description: Ok security: - api_key: [] x-accepts: - application/json - /api/v1/email-templates/{id}/render-errors: - get: - operationId: GetEmailTemplateRenderErrors + /api/v1/sso-users/{id}: + delete: + operationId: DeleteSSOUser parameters: - explode: true in: query @@ -5226,62 +5204,31 @@ paths: style: simple - explode: true in: query - name: skip + name: deleteComments required: false schema: - format: double - type: number + type: boolean style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetEmailTemplateRenderErrors_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - /api/v1/email-templates/{id}/render-errors/{errorId}: - delete: - operationId: DeleteEmailTemplateRenderError - parameters: - explode: true in: query - name: tenantId - required: true + name: commentDeleteMode + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: errorId - required: true - schema: - type: string - style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/DeleteSSOUserAPIResponse" description: Ok security: - api_key: [] x-accepts: - application/json - /api/v1/email-templates/{id}: - delete: - operationId: DeleteEmailTemplate + patch: + operationId: PatchSSOUser parameters: - explode: true in: query @@ -5297,47 +5244,33 @@ paths: schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - get: - operationId: GetEmailTemplate - parameters: - explode: true in: query - name: tenantId - required: true + name: updateComments + required: false schema: - type: string + type: boolean style: form - - explode: false - in: path - name: id + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateAPISSOUserData" required: true - schema: - type: string - style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetEmailTemplate_200_response" + $ref: "#/components/schemas/PatchSSOUserAPIResponse" description: Ok security: - api_key: [] + x-content-type: application/json x-accepts: - application/json - patch: - operationId: UpdateEmailTemplate + put: + operationId: PutSSOUser parameters: - explode: true in: query @@ -5353,27 +5286,34 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: updateComments + required: false + schema: + type: boolean + style: form requestBody: content: application/json: schema: - $ref: "#/components/schemas/UpdateEmailTemplateBody" + $ref: "#/components/schemas/UpdateAPISSOUserData" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/PutSSOUserAPIResponse" description: Ok security: - api_key: [] x-content-type: application/json x-accepts: - application/json - /api/v1/email-templates: + /api/v1/pages: get: - operationId: GetEmailTemplates + operationId: GetPages parameters: - explode: true in: query @@ -5382,27 +5322,19 @@ paths: schema: type: string style: form - - explode: true - in: query - name: skip - required: false - schema: - format: double - type: number - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetEmailTemplates_200_response" + $ref: "#/components/schemas/GetPagesAPIResponse" description: Ok security: - api_key: [] x-accepts: - application/json post: - operationId: CreateEmailTemplate + operationId: AddPage parameters: - explode: true in: query @@ -5415,23 +5347,23 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateEmailTemplateBody" + $ref: "#/components/schemas/CreateAPIPageData" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateEmailTemplate_200_response" + $ref: "#/components/schemas/AddPageAPIResponse" description: Ok security: - api_key: [] x-content-type: application/json x-accepts: - application/json - /api/v1/email-templates/render: - post: - operationId: RenderEmailTemplate + /api/v1/pages/by-url-id: + get: + operationId: GetPageByURLId parameters: - explode: true in: query @@ -5442,32 +5374,25 @@ paths: style: form - explode: true in: query - name: locale - required: false + name: urlId + required: true schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RenderEmailTemplateBody" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/RenderEmailTemplate_200_response" + $ref: "#/components/schemas/GetPageByURLIdAPIResponse" description: Ok security: - api_key: [] - x-content-type: application/json x-accepts: - application/json - /api/v1/domain-configs: - get: - operationId: GetDomainConfigs + /api/v1/pages/{id}: + delete: + operationId: DeletePage parameters: - explode: true in: query @@ -5476,19 +5401,26 @@ paths: schema: type: string style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetDomainConfigs_200_response" + $ref: "#/components/schemas/DeletePageAPIResponse" description: Ok security: - api_key: [] x-accepts: - application/json - post: - operationId: AddDomainConfig + patch: + operationId: PatchPage parameters: - explode: true in: query @@ -5497,27 +5429,34 @@ paths: schema: type: string style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple requestBody: content: application/json: schema: - $ref: "#/components/schemas/AddDomainConfigParams" + $ref: "#/components/schemas/UpdateAPIPageData" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/AddDomainConfig_200_response" + $ref: "#/components/schemas/PatchPageAPIResponse" description: Ok security: - api_key: [] x-content-type: application/json x-accepts: - application/json - /api/v1/domain-configs/{domain}: - delete: - operationId: DeleteDomainConfig + /api/v1/votes: + get: + operationId: GetVotes parameters: - explode: true in: query @@ -5526,26 +5465,32 @@ paths: schema: type: string style: form - - explode: false - in: path - name: domain + - explode: true + in: query + name: urlId required: true schema: type: string - style: simple + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/DeleteDomainConfig_200_response" + $ref: "#/components/schemas/GetVotesResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: - application/json - get: - operationId: GetDomainConfig + post: + operationId: CreateVote parameters: - explode: true in: query @@ -5554,62 +5499,57 @@ paths: schema: type: string style: form - - explode: false - in: path - name: domain + - explode: true + in: query + name: commentId required: true schema: type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetDomainConfig_200_response" - description: Ok - security: - - api_key: [] - x-accepts: - - application/json - /api/v1/domain-configs/{domainToUpdate}: - patch: - operationId: PatchDomainConfig - parameters: + style: form - explode: true in: query - name: tenantId + name: direction required: true schema: + enum: + - up + - down type: string style: form - - explode: false - in: path - name: domainToUpdate - required: true + - explode: true + in: query + name: userId + required: false schema: type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PatchDomainConfigParams" - required: true + style: form + - explode: true + in: query + name: anonUserId + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetDomainConfig_200_response" + $ref: "#/components/schemas/VoteResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - x-content-type: application/json x-accepts: - application/json - put: - operationId: PutDomainConfig + /api/v1/votes/for-user: + get: + operationId: GetVotesForUser parameters: - explode: true in: query @@ -5618,34 +5558,47 @@ paths: schema: type: string style: form - - explode: false - in: path - name: domainToUpdate + - explode: true + in: query + name: urlId required: true schema: type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateDomainConfigParams" - required: true + style: form + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: anonUserId + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetDomainConfig_200_response" + $ref: "#/components/schemas/GetVotesForUserResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - x-content-type: application/json x-accepts: - application/json - /api/v1/comments/{id}: + /api/v1/votes/{id}: delete: - operationId: DeleteComment + operationId: DeleteVote parameters: - explode: true in: query @@ -5663,31 +5616,31 @@ paths: style: simple - explode: true in: query - name: contextUserId + name: editKey required: false schema: type: string style: form - - explode: true - in: query - name: isLive - required: false - schema: - type: boolean - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/DeleteComment_200_response" + $ref: "#/components/schemas/VoteDeleteResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: - application/json + /api/v1/users/{id}: get: - operationId: GetComment + operationId: GetUser parameters: - explode: true in: query @@ -5708,14 +5661,21 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetComment_200_response" + $ref: "#/components/schemas/GetUserResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: - application/json - patch: - operationId: UpdateComment + /api/v1/user-badges/{id}: + delete: + operationId: DeleteUserBadge parameters: - explode: true in: query @@ -5731,48 +5691,101 @@ paths: schema: type: string style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptySuccessResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + get: + operationId: GetUserBadge + parameters: - explode: true in: query - name: contextUserId - required: false + name: tenantId + required: true schema: type: string style: form - - explode: true - in: query - name: doSpamCheck - required: false + - explode: false + in: path + name: id + required: true schema: - type: boolean - style: form + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIGetUserBadgeResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + put: + operationId: UpdateUserBadge + parameters: - explode: true in: query - name: isLive - required: false + name: tenantId + required: true schema: - type: boolean + type: string style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple requestBody: content: application/json: schema: - $ref: "#/components/schemas/UpdatableCommentParams" + $ref: "#/components/schemas/UpdateUserBadgeParams" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/APIEmptySuccessResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-content-type: application/json x-accepts: - application/json - /api/v1/comments: + /api/v1/user-badges: get: - operationId: GetComments + operationId: GetUserBadges parameters: - explode: true in: query @@ -5783,121 +5796,138 @@ paths: style: form - explode: true in: query - name: page + name: userId required: false schema: - format: int32 - type: integer + type: string style: form - explode: true in: query - name: limit + name: badgeId required: false schema: - format: int32 - type: integer + type: string style: form - explode: true in: query - name: skip + name: type required: false schema: - format: int32 - type: integer + format: double + type: number style: form - explode: true in: query - name: asTree + name: displayedOnComments required: false schema: type: boolean style: form - explode: true in: query - name: skipChildren - required: false - schema: - format: int32 - type: integer - style: form - - explode: true - in: query - name: limitChildren - required: false - schema: - format: int32 - type: integer - style: form - - explode: true - in: query - name: maxTreeDepth - required: false - schema: - format: int32 - type: integer - style: form - - explode: true - in: query - name: urlId + name: limit required: false schema: - type: string + format: double + type: number style: form - explode: true in: query - name: userId + name: skip required: false schema: - type: string + format: double + type: number style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIGetUserBadgesResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + post: + operationId: CreateUserBadge + parameters: - explode: true in: query - name: anonUserId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: contextUserId - required: false + name: tenantId + required: true schema: type: string style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateUserBadgeParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APICreateUserBadgeResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/user-badge-progress/{id}: + get: + operationId: GetUserBadgeProgressById + parameters: - explode: true in: query - name: hashTag - required: false + name: tenantId + required: true schema: type: string style: form - - explode: true - in: query - name: parentId - required: false + - explode: false + in: path + name: id + required: true schema: type: string - style: form - - explode: true - in: query - name: direction - required: false - schema: - $ref: "#/components/schemas/SortDirections" - style: form + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetComments_200_response" + $ref: "#/components/schemas/APIGetUserBadgeProgressResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: - application/json - post: - operationId: SaveComment + /api/v1/user-badge-progress: + get: + operationId: GetUserBadgeProgressList parameters: - explode: true in: query @@ -5908,53 +5938,82 @@ paths: style: form - explode: true in: query - name: isLive + name: userId required: false schema: - type: boolean + type: string style: form - explode: true in: query - name: doSpamCheck + name: limit required: false schema: - type: boolean + format: double + type: number style: form - explode: true in: query - name: sendEmails + name: skip required: false schema: - type: boolean + format: double + type: number style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIGetUserBadgeProgressListResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/user-badge-progress/user/{userId}: + get: + operationId: GetUserBadgeProgressByUserId + parameters: - explode: true in: query - name: populateNotifications - required: false + name: tenantId + required: true schema: - type: boolean + type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateCommentParams" + - explode: false + in: path + name: userId required: true + schema: + type: string + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/SaveComment_200_response" + $ref: "#/components/schemas/APIGetUserBadgeProgressResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - x-content-type: application/json x-accepts: - application/json - /api/v1/comments/bulk: - post: - operationId: SaveCommentsBulk + /api/v1/tickets: + get: + operationId: GetTickets parameters: - explode: true in: query @@ -5965,57 +6024,54 @@ paths: style: form - explode: true in: query - name: isLive + name: userId required: false schema: - type: boolean + type: string style: form - explode: true in: query - name: doSpamCheck + name: state required: false schema: - type: boolean + format: double + type: number style: form - explode: true in: query - name: sendEmails + name: skip required: false schema: - type: boolean + format: double + type: number style: form - explode: true in: query - name: populateNotifications + name: limit required: false schema: - type: boolean + format: double + type: number style: form - requestBody: - content: - application/json: - schema: - items: - $ref: "#/components/schemas/CreateCommentParams" - type: array - required: true responses: "200": content: application/json: schema: - items: - $ref: "#/components/schemas/SaveComment_200_response" - type: array + $ref: "#/components/schemas/GetTicketsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - x-content-type: application/json x-accepts: - application/json - /api/v1/comments/{id}/flag: post: - operationId: FlagComment + operationId: CreateTicket parameters: - explode: true in: query @@ -6024,41 +6080,40 @@ paths: schema: type: string style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - explode: true in: query name: userId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: anonUserId - required: false + required: true schema: type: string style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateTicketBody" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagComment_200_response" + $ref: "#/components/schemas/CreateTicketResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] + x-content-type: application/json x-accepts: - application/json - /api/v1/comments/{id}/un-flag: - post: - operationId: UnFlagComment + /api/v1/tickets/{id}: + get: + operationId: GetTicket parameters: - explode: true in: query @@ -6081,27 +6136,26 @@ paths: schema: type: string style: form - - explode: true - in: query - name: anonUserId - required: false - schema: - type: string - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagComment_200_response" + $ref: "#/components/schemas/GetTicketResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: - application/json - /api/v1/comments/{id}/block: - post: - operationId: BlockUserFromComment + /api/v1/tickets/{id}/state: + patch: + operationId: ChangeTicketState parameters: - explode: true in: query @@ -6110,48 +6164,47 @@ paths: schema: type: string style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - explode: true in: query name: userId - required: false + required: true schema: type: string style: form - - explode: true - in: query - name: anonUserId - required: false + - explode: false + in: path + name: id + required: true schema: type: string - style: form + style: simple requestBody: content: application/json: schema: - $ref: "#/components/schemas/BlockFromCommentParams" + $ref: "#/components/schemas/ChangeTicketStateBody" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/BlockFromCommentPublic_200_response" + $ref: "#/components/schemas/ChangeTicketStateResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-content-type: application/json x-accepts: - application/json - /api/v1/comments/{id}/un-block: - post: - operationId: UnBlockUserFromComment + /api/v1/tenants/{id}: + delete: + operationId: DeleteTenant parameters: - explode: true in: query @@ -6169,39 +6222,30 @@ paths: style: simple - explode: true in: query - name: userId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: anonUserId + name: sure required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UnBlockFromCommentParams" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/UnBlockCommentPublic_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - x-content-type: application/json x-accepts: - application/json - /api/v1/audit-logs: get: - operationId: GetAuditLogs + operationId: GetTenant parameters: - explode: true in: query @@ -6210,13 +6254,88 @@ paths: schema: type: string style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetTenantResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + patch: + operationId: UpdateTenant + parameters: - explode: true in: query - name: limit + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateTenantBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/tenants: + get: + operationId: GetTenants + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: meta required: false schema: - format: double - type: number + type: string style: form - explode: true in: query @@ -6226,46 +6345,108 @@ paths: format: double type: number style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetTenantsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + post: + operationId: CreateTenant + parameters: - explode: true in: query - name: order - required: false + name: tenantId + required: true schema: - $ref: "#/components/schemas/SORT_DIR" + type: string style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateTenantBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateTenantResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/tenant-users/{id}: + delete: + operationId: DeleteTenantUser + parameters: - explode: true in: query - name: after + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: deleteComments required: false schema: - format: double - type: number + type: string style: form - explode: true in: query - name: before + name: commentDeleteMode required: false schema: - format: double - type: number + type: string style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetAuditLogs_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: - application/json - /api/v1/aggregate: - post: - description: |- - Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. - Different operations (e.g. sum, countDistinct, avg, etc.) are supported. - operationId: Aggregate + get: + operationId: GetTenantUser parameters: - explode: true in: query @@ -6274,1172 +6455,7059 @@ paths: schema: type: string style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetTenantUserResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + patch: + operationId: UpdateTenantUser + parameters: - explode: true in: query - name: parentTenantId - required: false + name: tenantId + required: true schema: type: string style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple - explode: true in: query - name: includeStats + name: updateComments required: false schema: - type: boolean + type: string style: form requestBody: content: application/json: schema: - $ref: "#/components/schemas/AggregationRequest" + $ref: "#/components/schemas/UpdateTenantUserBody" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/AggregationResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-content-type: application/json x-accepts: - application/json -components: - examples: {} - headers: {} - parameters: {} - requestBodies: {} - responses: {} - schemas: - APIStatus: - enum: - - success - - failed - type: string - UserSearchSection: - enum: - - moderators - - onThisPage - - onThisSite - type: string - UserSearchResult: - additionalProperties: false - example: - displayName: displayName - name: name - avatarSrc: avatarSrc - id: id - type: user - properties: - id: - type: string - name: - type: string - displayName: + put: + operationId: ReplaceTenantUser + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: type: string - avatarSrc: - nullable: true + style: form + - explode: false + in: path + name: id + required: true + schema: type: string - type: + style: simple + - explode: true + in: query + name: updateComments + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ReplaceTenantUserBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/tenant-users: + get: + operationId: GetTenantUsers + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetTenantUsersResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + post: + operationId: CreateTenantUser + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateTenantUserBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateTenantUserResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/tenant-users/{id}/send-login-link: + post: + operationId: SendLoginLink + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: redirectURL + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/tenant-packages/{id}: + delete: + operationId: DeleteTenantPackage + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + get: + operationId: GetTenantPackage + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetTenantPackageResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + patch: + operationId: UpdateTenantPackage + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateTenantPackageBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + put: + operationId: ReplaceTenantPackage + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ReplaceTenantPackageBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/tenant-packages: + get: + operationId: GetTenantPackages + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetTenantPackagesResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + post: + operationId: CreateTenantPackage + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateTenantPackageBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateTenantPackageResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/tenant-daily-usage: + get: + operationId: GetTenantDailyUsages + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: yearNumber + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: monthNumber + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: dayNumber + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetTenantDailyUsagesResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/question-results/{id}: + delete: + operationId: DeleteQuestionResult + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + get: + operationId: GetQuestionResult + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetQuestionResultResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + patch: + operationId: UpdateQuestionResult + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateQuestionResultBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/question-results: + get: + operationId: GetQuestionResults + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: urlId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: startDate + required: false + schema: + type: string + style: form + - explode: true + in: query + name: questionId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: questionIds + required: false + schema: + type: string + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetQuestionResultsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + post: + operationId: CreateQuestionResult + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateQuestionResultBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateQuestionResultResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/question-results-aggregation: + get: + operationId: AggregateQuestionResults + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: questionId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: questionIds + required: false + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: urlId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: timeBucket + required: false + schema: + $ref: "#/components/schemas/AggregateTimeBucket" + style: form + - explode: true + in: query + name: startDate + required: false + schema: + format: date-time + type: string + style: form + - explode: true + in: query + name: forceRecalculate + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/AggregateQuestionResultsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/question-results-aggregation/bulk: + post: + operationId: BulkAggregateQuestionResults + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: forceRecalculate + required: false + schema: + type: boolean + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/BulkAggregateQuestionResultsRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/BulkAggregateQuestionResultsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/question-results-aggregation/combine/comments: + get: + operationId: CombineCommentsWithQuestionResults + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: questionId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: questionIds + required: false + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: urlId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: startDate + required: false + schema: + format: date-time + type: string + style: form + - explode: true + in: query + name: forceRecalculate + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: minValue + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: maxValue + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: limit + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CombineQuestionResultsWithCommentsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/question-configs/{id}: + delete: + operationId: DeleteQuestionConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + get: + operationId: GetQuestionConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetQuestionConfigResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + patch: + operationId: UpdateQuestionConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateQuestionConfigBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/question-configs: + get: + operationId: GetQuestionConfigs + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetQuestionConfigsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + post: + operationId: CreateQuestionConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateQuestionConfigBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateQuestionConfigResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/pending-webhook-events: + get: + operationId: GetPendingWebhookEvents + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: commentId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: externalId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: eventType + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + - explode: true + in: query + name: domain + required: false + schema: + type: string + style: form + - explode: true + in: query + name: attemptCountGT + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetPendingWebhookEventsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/pending-webhook-events/count: + get: + operationId: GetPendingWebhookEventCount + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: commentId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: externalId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: eventType + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + - explode: true + in: query + name: domain + required: false + schema: + type: string + style: form + - explode: true + in: query + name: attemptCountGT + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetPendingWebhookEventCountResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/pending-webhook-events/{id}: + delete: + operationId: DeletePendingWebhookEvent + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/notifications: + get: + operationId: GetNotifications + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: urlId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: fromCommentId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: viewed + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetNotificationsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/notifications/count: + get: + operationId: GetNotificationCount + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: urlId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: fromCommentId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: viewed + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetNotificationCountResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/notifications/{id}: + patch: + operationId: UpdateNotification + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNotificationBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/notification-count/{id}: + delete: + operationId: DeleteNotificationCount + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + get: + operationId: GetCachedNotificationCount + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetCachedNotificationCountResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/moderators/{id}: + delete: + operationId: DeleteModerator + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: sendEmail + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + get: + operationId: GetModerator + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetModeratorResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + patch: + operationId: UpdateModerator + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateModeratorBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/moderators: + get: + operationId: GetModerators + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetModeratorsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + post: + operationId: CreateModerator + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateModeratorBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateModeratorResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/moderators/{id}/send-invite: + post: + operationId: SendInvite + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: fromName + required: true + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/hash-tags: + get: + operationId: GetHashTags + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: page + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetHashTagsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + post: + operationId: AddHashTag + parameters: + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateHashTagBody" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateHashTagResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/hash-tags/bulk: + post: + operationId: AddHashTagsBulk + parameters: + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/BulkCreateHashTagsBody" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/BulkCreateHashTagsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/hash-tags/{tag}: + delete: + operationId: DeleteHashTag + parameters: + - explode: false + in: path + name: tag + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/DeleteHashTagRequestBody" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + patch: + operationId: PatchHashTag + parameters: + - explode: false + in: path + name: tag + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateHashTagBody" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateHashTagResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/feed-posts: + get: + description: |2- + + req + tenantId + afterId + operationId: GetFeedPosts + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: afterId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: tags + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetFeedPostsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + post: + operationId: CreateFeedPost + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: isLive + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: doSpamCheck + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: skipDupCheck + required: false + schema: + type: boolean + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateFeedPostParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateFeedPostsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/feed-posts/{id}: + patch: + operationId: UpdateFeedPost + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/FeedPost" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/email-templates/definitions: + get: + operationId: GetEmailTemplateDefinitions + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetEmailTemplateDefinitionsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/email-templates/{id}/render-errors: + get: + operationId: GetEmailTemplateRenderErrors + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetEmailTemplateRenderErrorsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/email-templates/{id}/render-errors/{errorId}: + delete: + operationId: DeleteEmailTemplateRenderError + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: errorId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/email-templates/{id}: + delete: + operationId: DeleteEmailTemplate + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + get: + operationId: GetEmailTemplate + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetEmailTemplateResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + patch: + operationId: UpdateEmailTemplate + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateEmailTemplateBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/email-templates: + get: + operationId: GetEmailTemplates + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetEmailTemplatesResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + post: + operationId: CreateEmailTemplate + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateEmailTemplateBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateEmailTemplateResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/email-templates/render: + post: + operationId: RenderEmailTemplate + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: locale + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RenderEmailTemplateBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/RenderEmailTemplateResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/domain-configs: + get: + operationId: GetDomainConfigs + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetDomainConfigsResponse" + description: Ok + security: + - api_key: [] + x-accepts: + - application/json + post: + operationId: AddDomainConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AddDomainConfigParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/AddDomainConfigResponse" + description: Ok + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/domain-configs/{domain}: + delete: + operationId: DeleteDomainConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: domain + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/DeleteDomainConfigResponse" + description: Ok + security: + - api_key: [] + x-accepts: + - application/json + get: + operationId: GetDomainConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: domain + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetDomainConfigResponse" + description: Ok + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/domain-configs/{domainToUpdate}: + patch: + operationId: PatchDomainConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: domainToUpdate + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PatchDomainConfigParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PatchDomainConfigResponse" + description: Ok + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + put: + operationId: PutDomainConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: domainToUpdate + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateDomainConfigParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PutDomainConfigResponse" + description: Ok + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/comments/{id}: + delete: + operationId: DeleteComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: contextUserId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: isLive + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/DeleteCommentResult" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + get: + operationId: GetComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIGetCommentResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + patch: + operationId: UpdateComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: contextUserId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: doSpamCheck + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: isLive + required: false + schema: + type: boolean + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdatableCommentParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/comments: + get: + operationId: GetComments + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: page + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: asTree + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: skipChildren + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: limitChildren + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: maxTreeDepth + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: urlId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: anonUserId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: contextUserId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: hashTag + required: false + schema: + type: string + style: form + - explode: true + in: query + name: parentId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: direction + required: false + schema: + $ref: "#/components/schemas/SortDirections" + style: form + - explode: true + in: query + name: fromDate + required: false + schema: + format: int64 + type: integer + style: form + - explode: true + in: query + name: toDate + required: false + schema: + format: int64 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIGetCommentsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + post: + operationId: SaveComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: isLive + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: doSpamCheck + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: sendEmails + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: populateNotifications + required: false + schema: + type: boolean + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateCommentParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APISaveCommentResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/comments/bulk: + post: + operationId: SaveCommentsBulk + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: isLive + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: doSpamCheck + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: sendEmails + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: populateNotifications + required: false + schema: + type: boolean + style: form + requestBody: + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CreateCommentParams" + type: array + required: true + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/SaveCommentsBulkResponse" + type: array + description: Ok + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/comments/{id}/flag: + post: + operationId: FlagComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: anonUserId + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/FlagCommentResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/comments/{id}/un-flag: + post: + operationId: UnFlagComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: anonUserId + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/FlagCommentResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/comments/{id}/block: + post: + operationId: BlockUserFromComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: anonUserId + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/BlockFromCommentParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/BlockSuccess" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/comments/{id}/un-block: + post: + operationId: UnBlockUserFromComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: anonUserId + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UnBlockFromCommentParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/UnblockSuccess" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json + /api/v1/audit-logs: + get: + operationId: GetAuditLogs + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: limit + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: order + required: false + schema: + $ref: "#/components/schemas/SORT_DIR" + style: form + - explode: true + in: query + name: after + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: before + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetAuditLogsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + x-accepts: + - application/json + /api/v1/aggregate: + post: + description: |- + Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. + Different operations (e.g. sum, countDistinct, avg, etc.) are supported. + operationId: Aggregate + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: parentTenantId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: includeStats + required: false + schema: + type: boolean + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AggregationRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/AggregateResponse" + description: Ok + security: + - api_key: [] + x-content-type: application/json + x-accepts: + - application/json +components: + examples: {} + headers: {} + parameters: {} + requestBodies: {} + responses: {} + schemas: + APIStatus: + enum: + - success + - failed + type: string + UserSearchSection: + enum: + - moderators + - onThisPage + - onThisSite + type: string + UserSearchResult: + additionalProperties: false + example: + displayName: displayName + name: name + avatarSrc: avatarSrc + id: id + type: user + properties: + id: + type: string + name: + type: string + displayName: + type: string + avatarSrc: + nullable: true + type: string + type: + enum: + - user + - sso + type: string + required: + - id + - name + - type + type: object + UserSearchSectionResult: + additionalProperties: false + example: + section: moderators + users: + - displayName: displayName + name: name + avatarSrc: avatarSrc + id: id + type: user + - displayName: displayName + name: name + avatarSrc: avatarSrc + id: id + type: user + properties: + section: + $ref: "#/components/schemas/UserSearchSection" + users: + items: + $ref: "#/components/schemas/UserSearchResult" + type: array + required: + - section + - users + type: object + SearchUsersSectionedResponse: + example: + sections: + - section: moderators + users: + - displayName: displayName + name: name + avatarSrc: avatarSrc + id: id + type: user + - displayName: displayName + name: name + avatarSrc: avatarSrc + id: id + type: user + - section: moderators + users: + - displayName: displayName + name: name + avatarSrc: avatarSrc + id: id + type: user + - displayName: displayName + name: name + avatarSrc: avatarSrc + id: id + type: user + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + sections: + items: + $ref: "#/components/schemas/UserSearchSectionResult" + type: array + required: + - sections + - status + type: object + SearchUsersResponse: + properties: + status: + $ref: "#/components/schemas/APIStatus" + users: + items: + $ref: "#/components/schemas/UserSearchResult" + type: array + required: + - status + - users + type: object + SearchUsersResult: + anyOf: + - $ref: "#/components/schemas/SearchUsersSectionedResponse" + - $ref: "#/components/schemas/SearchUsersResponse" + CommentHTMLRenderingMode: + enum: + - 0 + - 1 + type: integer + CommentThreadDeletionMode: + enum: + - 0 + - 1 + - 2 + - 3 + type: integer + CommenterNameFormats: + enum: + - 0 + - 1 + - 2 + - 3 + - 4 + type: integer + SortDirections: + enum: + - OF + - NF + - MR + type: string + GifRating: + enum: + - g + - pg + - pg-13 + - r + type: string + ImageContentProfanityLevel: + enum: + - "off" + - low + - medium + - high + type: string + MentionAutoCompleteMode: + enum: + - 0 + - 1 + - 2 + type: integer + SpamRule: + additionalProperties: false + example: + commentContains: commentContains + actions: + - spam + - spam + properties: + actions: + items: + enum: + - spam + - not-spam + - ignore-repeat + type: string + type: array + commentContains: + type: string + required: + - actions + type: object + SSOSecurityLevel: + enum: + - 0 + - 1 + type: integer + Record_string.string_: + additionalProperties: + type: string + description: Construct a type with a set of properties K of type T + example: {} + properties: {} + type: object + VoteStyle: + enum: + - 0 + - 1 + type: integer + CommentQuestionResultsRenderingType: + enum: + - 0 + - 1 + - 2 + type: integer + QuestionRenderingType: + enum: + - 0 + - 1 + type: integer + QuestionWhenSave: + enum: + - 0 + - 1 + type: integer + CommentQuestionsRequired: + enum: + - 0 + - 1 + type: integer + QuestionSubQuestionVisibility: + enum: + - 0 + - 1 + type: integer + UsersListLocation: + enum: + - 0 + - 1 + - 2 + - 3 + type: integer + TOSConfig: + additionalProperties: false + example: + lastUpdated: 2000-01-23T04:56:07.000+00:00 + textByLocale: + key: textByLocale + enabled: true + properties: + enabled: + type: boolean + textByLocale: + additionalProperties: + type: string + description: Construct a type with a set of properties K of type T + example: {} + properties: {} + type: object + lastUpdated: + format: date-time + type: string + type: object + CustomConfigParameters: + additionalProperties: false + example: + disableAutoHashTagCreation: true + disableCommenterCommentDelete: true + enableVoteList: true + pageSize: 7 + collapseReplies: true + disableProfiles: true + disableSuccessMessage: true + allowAnon: true + countAboveToggle: 5 + readonly: true + useShowCommentsToggle: true + usersListLocation: 1 + noImageUploads: true + spamRules: + - commentContains: commentContains + actions: + - spam + - spam + - commentContains: commentContains + actions: + - spam + - spam + translations: "" + widgetQuestionId: widgetQuestionId + disableLiveCommenting: true + ssoSecLvl: 9 + defaultSortDirection: "" + disableVoting: true + noCustomConfig: true + allowedEmbedDomains: + - allowedEmbedDomains + - allowedEmbedDomains + gifRating: g + ticketAutoAssignUserIds: + - ticketAutoAssignUserIds + - ticketAutoAssignUserIds + enableSearch: true + requireSSO: true + disableToolbar: true + hideCommentsUnderCountTextFormat: hideCommentsUnderCountTextFormat + maxCommentCreatedCountPUPM: 2 + disableProfileDirectMessages: true + disableBlocking: true + disableEmailInputs: true + widgetQuestionWhenToSave: 7 + allowAnonFlag: true + ticketKBSearchEndpoint: ticketKBSearchEndpoint + widgetSubQuestionVisibility: 1 + showBadgesInTopBar: true + widgetQuestionStyle: 4 + restrictedLinkDomains: + - restrictedLinkDomains + - restrictedLinkDomains + showQuestion: true + inputAfterComments: true + allowAnonVotes: true + commentThreadDeleteMode: "" + commentCountFormat: commentCountFormat + disableNotificationBell: true + enableFChat: true + voteStyle: 3 + disableAutoAdminMigration: true + disableProfileComments: true + absoluteAndRelativeDates: true + commenterNameFormat: "" + enableThirdPartyCookieBypass: true + ticketMaxFileSize: 6 + locale: locale + showCommentSaveSuccess: true + disableCommenterCommentEdit: true + enableCommenterLinks: true + imageContentProfanityLevel: "off" + enableSpoilers: true + disableUnverifiedLabel: true + noStyles: true + enableResizeHandle: true + absoluteDates: true + limitCommentsByGroups: true + enableWYSIWYG: true + tos: + lastUpdated: 2000-01-23T04:56:07.000+00:00 + textByLocale: + key: textByLocale + enabled: true + widgetQuestionShowBreakdown: true + mentionAutoCompleteMode: "" + customCSS: customCSS + enableViewCounts: true + headerHTML: headerHTML + hideAvatars: true + defaultAvatarSrc: defaultAvatarSrc + usersListIncludeOffline: true + commentHTMLRenderingMode: 1 + noNewRootComments: true + ticketFileUploadsEnabled: true + maxCommentCharacterLength: 5 + useSingleLineCommentInput: true + allowedLanguages: + - allowedLanguages + - allowedLanguages + allowEmbeds: true + defaultUsername: defaultUsername + widgetQuestionResultsStyle: 2 + showLiveRightAway: true + widgetQuestionsRequired: 1 + hasDarkBackground: true + wrap: true + ticketBaseUrl: ticketBaseUrl + properties: + absoluteAndRelativeDates: + type: boolean + absoluteDates: + type: boolean + allowAnon: + type: boolean + allowAnonFlag: + type: boolean + allowAnonVotes: + type: boolean + allowedLanguages: + items: + type: string + nullable: true + type: array + collapseReplies: + type: boolean + commentCountFormat: + nullable: true + type: string + commentHTMLRenderingMode: + $ref: "#/components/schemas/CommentHTMLRenderingMode" + commentThreadDeleteMode: + allOf: + - $ref: "#/components/schemas/CommentThreadDeletionMode" + nullable: true + commenterNameFormat: + allOf: + - $ref: "#/components/schemas/CommenterNameFormats" + nullable: true + countAboveToggle: + format: int32 + type: integer + customCSS: + nullable: true + type: string + defaultAvatarSrc: + nullable: true + type: string + defaultSortDirection: + allOf: + - $ref: "#/components/schemas/SortDirections" + nullable: true + defaultUsername: + nullable: true + type: string + disableAutoAdminMigration: + type: boolean + disableAutoHashTagCreation: + type: boolean + disableBlocking: + type: boolean + disableCommenterCommentDelete: + type: boolean + disableCommenterCommentEdit: + type: boolean + disableEmailInputs: + type: boolean + disableLiveCommenting: + type: boolean + disableNotificationBell: + type: boolean + disableProfileComments: + type: boolean + disableProfileDirectMessages: + type: boolean + disableProfiles: + type: boolean + disableSuccessMessage: + type: boolean + disableToolbar: + type: boolean + disableUnverifiedLabel: + type: boolean + disableVoting: + type: boolean + enableCommenterLinks: + type: boolean + enableSearch: + type: boolean + enableSpoilers: + type: boolean + enableThirdPartyCookieBypass: + type: boolean + enableViewCounts: + type: boolean + enableVoteList: + type: boolean + enableWYSIWYG: + type: boolean + gifRating: + $ref: "#/components/schemas/GifRating" + hasDarkBackground: + type: boolean + headerHTML: + nullable: true + type: string + hideAvatars: + type: boolean + hideCommentsUnderCountTextFormat: + nullable: true + type: string + imageContentProfanityLevel: + $ref: "#/components/schemas/ImageContentProfanityLevel" + inputAfterComments: + type: boolean + limitCommentsByGroups: + type: boolean + locale: + nullable: true + type: string + maxCommentCharacterLength: + format: int32 + nullable: true + type: integer + maxCommentCreatedCountPUPM: + format: int32 + nullable: true + type: integer + noCustomConfig: + type: boolean + mentionAutoCompleteMode: + allOf: + - $ref: "#/components/schemas/MentionAutoCompleteMode" + nullable: true + noImageUploads: + type: boolean + allowEmbeds: + type: boolean + allowedEmbedDomains: + items: + type: string + nullable: true + type: array + noStyles: + type: boolean + pageSize: + format: int32 + nullable: true + type: integer + readonly: + type: boolean + noNewRootComments: + type: boolean + requireSSO: + type: boolean + enableFChat: + type: boolean + enableResizeHandle: + type: boolean + restrictedLinkDomains: + items: + type: string + nullable: true + type: array + showBadgesInTopBar: + type: boolean + showCommentSaveSuccess: + type: boolean + showLiveRightAway: + type: boolean + showQuestion: + type: boolean + spamRules: + items: + $ref: "#/components/schemas/SpamRule" + type: array + ssoSecLvl: + $ref: "#/components/schemas/SSOSecurityLevel" + translations: + allOf: + - $ref: "#/components/schemas/Record_string.string_" + nullable: true + useShowCommentsToggle: + type: boolean + useSingleLineCommentInput: + type: boolean + voteStyle: + $ref: "#/components/schemas/VoteStyle" + widgetQuestionId: + type: string + widgetQuestionResultsStyle: + $ref: "#/components/schemas/CommentQuestionResultsRenderingType" + widgetQuestionShowBreakdown: + type: boolean + widgetQuestionStyle: + $ref: "#/components/schemas/QuestionRenderingType" + widgetQuestionWhenToSave: + $ref: "#/components/schemas/QuestionWhenSave" + widgetQuestionsRequired: + $ref: "#/components/schemas/CommentQuestionsRequired" + widgetSubQuestionVisibility: + $ref: "#/components/schemas/QuestionSubQuestionVisibility" + wrap: + type: boolean + usersListLocation: + $ref: "#/components/schemas/UsersListLocation" + usersListIncludeOffline: + type: boolean + ticketBaseUrl: + type: string + ticketKBSearchEndpoint: + type: string + ticketFileUploadsEnabled: + type: boolean + ticketMaxFileSize: + format: int32 + type: integer + ticketAutoAssignUserIds: + items: + type: string + type: array + tos: + $ref: "#/components/schemas/TOSConfig" + type: object + APIError: + additionalProperties: false + example: + reason: reason + code: code + bannedUntil: 0 + customConfig: + disableAutoHashTagCreation: true + disableCommenterCommentDelete: true + enableVoteList: true + pageSize: 7 + collapseReplies: true + disableProfiles: true + disableSuccessMessage: true + allowAnon: true + countAboveToggle: 5 + readonly: true + useShowCommentsToggle: true + usersListLocation: 1 + noImageUploads: true + spamRules: + - commentContains: commentContains + actions: + - spam + - spam + - commentContains: commentContains + actions: + - spam + - spam + translations: "" + widgetQuestionId: widgetQuestionId + disableLiveCommenting: true + ssoSecLvl: 9 + defaultSortDirection: "" + disableVoting: true + noCustomConfig: true + allowedEmbedDomains: + - allowedEmbedDomains + - allowedEmbedDomains + gifRating: g + ticketAutoAssignUserIds: + - ticketAutoAssignUserIds + - ticketAutoAssignUserIds + enableSearch: true + requireSSO: true + disableToolbar: true + hideCommentsUnderCountTextFormat: hideCommentsUnderCountTextFormat + maxCommentCreatedCountPUPM: 2 + disableProfileDirectMessages: true + disableBlocking: true + disableEmailInputs: true + widgetQuestionWhenToSave: 7 + allowAnonFlag: true + ticketKBSearchEndpoint: ticketKBSearchEndpoint + widgetSubQuestionVisibility: 1 + showBadgesInTopBar: true + widgetQuestionStyle: 4 + restrictedLinkDomains: + - restrictedLinkDomains + - restrictedLinkDomains + showQuestion: true + inputAfterComments: true + allowAnonVotes: true + commentThreadDeleteMode: "" + commentCountFormat: commentCountFormat + disableNotificationBell: true + enableFChat: true + voteStyle: 3 + disableAutoAdminMigration: true + disableProfileComments: true + absoluteAndRelativeDates: true + commenterNameFormat: "" + enableThirdPartyCookieBypass: true + ticketMaxFileSize: 6 + locale: locale + showCommentSaveSuccess: true + disableCommenterCommentEdit: true + enableCommenterLinks: true + imageContentProfanityLevel: "off" + enableSpoilers: true + disableUnverifiedLabel: true + noStyles: true + enableResizeHandle: true + absoluteDates: true + limitCommentsByGroups: true + enableWYSIWYG: true + tos: + lastUpdated: 2000-01-23T04:56:07.000+00:00 + textByLocale: + key: textByLocale + enabled: true + widgetQuestionShowBreakdown: true + mentionAutoCompleteMode: "" + customCSS: customCSS + enableViewCounts: true + headerHTML: headerHTML + hideAvatars: true + defaultAvatarSrc: defaultAvatarSrc + usersListIncludeOffline: true + commentHTMLRenderingMode: 1 + noNewRootComments: true + ticketFileUploadsEnabled: true + maxCommentCharacterLength: 5 + useSingleLineCommentInput: true + allowedLanguages: + - allowedLanguages + - allowedLanguages + allowEmbeds: true + defaultUsername: defaultUsername + widgetQuestionResultsStyle: 2 + showLiveRightAway: true + widgetQuestionsRequired: 1 + hasDarkBackground: true + wrap: true + ticketBaseUrl: ticketBaseUrl + translatedError: translatedError + secondaryCode: secondaryCode + maxCharacterLength: 6 + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + reason: + type: string + code: + type: string + secondaryCode: + type: string + bannedUntil: + format: int64 + type: integer + maxCharacterLength: + format: int32 + type: integer + translatedError: + type: string + customConfig: + $ref: "#/components/schemas/CustomConfigParameters" + required: + - code + - reason + - status + type: object + Record_string.boolean_: + additionalProperties: + type: boolean + description: Construct a type with a set of properties K of type T + properties: {} + type: object + GetUserPresenceStatusesResponse: + example: + userIdsOnline: + key: true + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + userIdsOnline: + additionalProperties: + type: boolean + description: Construct a type with a set of properties K of type T + properties: {} + type: object + required: + - status + - userIdsOnline + type: object + NotificationObjectType: + enum: + - 0 + - 1 + - 2 + type: integer + NotificationType: + enum: + - 0 + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 81 + - 82 + - 9 + - 10 + type: integer + RenderableUserNotification: + example: + fromUserAvatarSrc: fromUserAvatarSrc + contextHTML: contextHTML + fromCommentId: fromCommentId + relatedObjectId: relatedObjectId + conversationId: conversationId + fromUserNames: + - fromUserNames + - fromUserNames + fromUserId: fromUserId + pageTitle: pageTitle + count: 0 + type: 6 + urlId: urlId + sent: sent + url: url + fromUserIds: + - fromUserIds + - fromUserIds + optedOut: true + fromUserName: fromUserName + createdAt: createdAt + relatedIds: + - relatedIds + - relatedIds + viewed: viewed + relatedObjectType: 1 + _id: _id + properties: + conversationId: + type: string + contextHTML: + type: string + fromUserNames: + items: + type: string + type: array + fromUserIds: + items: + type: string + type: array + relatedIds: + items: + type: string + type: array + count: + format: int64 + type: integer + optedOut: + type: boolean + fromUserAvatarSrc: + nullable: true + type: string + fromUserId: + nullable: true + type: string + fromUserName: + nullable: true + type: string + fromCommentId: + nullable: true + type: string + type: + $ref: "#/components/schemas/NotificationType" + createdAt: + type: string + sent: + type: string + viewed: + type: string + relatedObjectId: + type: string + relatedObjectType: + $ref: "#/components/schemas/NotificationObjectType" + pageTitle: + nullable: true + type: string + url: + type: string + urlId: + type: string + _id: + type: string + required: + - _id + - createdAt + - optedOut + - relatedObjectId + - relatedObjectType + - sent + - type + - url + - urlId + - viewed + type: object + GetMyNotificationsResponse: + example: + isSubscribed: true + translations: + key: translations + hasMore: true + notifications: + - fromUserAvatarSrc: fromUserAvatarSrc + contextHTML: contextHTML + fromCommentId: fromCommentId + relatedObjectId: relatedObjectId + conversationId: conversationId + fromUserNames: + - fromUserNames + - fromUserNames + fromUserId: fromUserId + pageTitle: pageTitle + count: 0 + type: 6 + urlId: urlId + sent: sent + url: url + fromUserIds: + - fromUserIds + - fromUserIds + optedOut: true + fromUserName: fromUserName + createdAt: createdAt + relatedIds: + - relatedIds + - relatedIds + viewed: viewed + relatedObjectType: 1 + _id: _id + - fromUserAvatarSrc: fromUserAvatarSrc + contextHTML: contextHTML + fromCommentId: fromCommentId + relatedObjectId: relatedObjectId + conversationId: conversationId + fromUserNames: + - fromUserNames + - fromUserNames + fromUserId: fromUserId + pageTitle: pageTitle + count: 0 + type: 6 + urlId: urlId + sent: sent + url: url + fromUserIds: + - fromUserIds + - fromUserIds + optedOut: true + fromUserName: fromUserName + createdAt: createdAt + relatedIds: + - relatedIds + - relatedIds + viewed: viewed + relatedObjectType: 1 + _id: _id + status: success + properties: + translations: + additionalProperties: + type: string + description: Construct a type with a set of properties K of type T + example: {} + properties: {} + type: object + isSubscribed: + type: boolean + hasMore: + type: boolean + notifications: + items: + $ref: "#/components/schemas/RenderableUserNotification" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - hasMore + - isSubscribed + - notifications + - status + type: object + ResetUserNotificationsResponse: + additionalProperties: false + example: + code: ignored-since-impersonated + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + code: + enum: + - ignored-since-impersonated + nullable: false + type: string + required: + - status + type: object + GetUserNotificationCountResponse: + additionalProperties: false + example: + count: 0 + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + count: + format: int64 + type: integer + required: + - count + - status + type: object + EnumAsObject_typeofNotificationType_: + properties: {} + type: object + NotificationAndCount: + additionalProperties: false + properties: + type: + $ref: "#/components/schemas/NotificationType" + count: + format: int64 + type: integer + required: + - count + - type + type: object + HeaderAccountNotification: + additionalProperties: false + properties: + _id: + type: string + title: + type: string + message: + type: string + messagesByLocale: + allOf: + - $ref: "#/components/schemas/Record_string.string_" + nullable: true + dates: + allOf: + - $ref: "#/components/schemas/Record_string.string_" + nullable: true + severity: + type: string + linkUrl: + nullable: true + type: string + linkText: + nullable: true + type: string + createdAt: + format: date-time + type: string + type: + description: Discriminator for notifications with a special layout/click + handler (e.g. "feedback-offer"). + nullable: true + type: string + required: + - _id + - createdAt + - dates + - linkText + - linkUrl + - message + - messagesByLocale + - severity + - title + type: object + HeaderState: + additionalProperties: false + properties: + status: + $ref: "#/components/schemas/APIStatus" + NotificationType: + properties: {} + type: object + userId: + type: string + userIdWS: + type: string + notificationCounts: + items: + $ref: "#/components/schemas/NotificationAndCount" + type: array + accountNotifications: + items: + $ref: "#/components/schemas/HeaderAccountNotification" + type: array + required: + - NotificationType + - accountNotifications + - notificationCounts + - status + - userId + - userIdWS + type: object + UserNotificationWriteResponse: + additionalProperties: false + example: + modifiedCount: 6 + matchedCount: 0 + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + matchedCount: + format: int64 + type: integer + modifiedCount: + format: int64 + type: integer + required: + - matchedCount + - modifiedCount + - status + type: object + IgnoredResponse: + additionalProperties: false + properties: + status: + $ref: "#/components/schemas/APIStatus" + note: + enum: + - ignored-since-impersonated + - demo-noop + type: string + required: + - note + - status + type: object + MediaAsset: + additionalProperties: false + example: + src: src + w: 0 + h: 6 + properties: + w: + format: int32 + type: integer + h: + format: int32 + type: integer + src: + type: string + required: + - h + - src + - w + type: object + UploadImageResponse: + additionalProperties: false + example: + reason: reason + code: code + media: + - src: src + w: 0 + h: 6 + - src: src + w: 0 + h: 6 + url: url + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + url: + type: string + media: + items: + $ref: "#/components/schemas/MediaAsset" + type: array + reason: + type: string + code: + type: string + required: + - status + type: object + SizePreset: + enum: + - Default + - CrossPlatform + type: string + GetTranslationsResponse: + example: + translations: + key: translations + status: success + properties: + translations: + additionalProperties: + type: string + description: Construct a type with a set of properties K of type T + example: {} + properties: {} + type: object + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + - translations + type: object + PublicPage: + example: + title: title + urlId: urlId + url: url + updatedAt: 0 + commentCount: 6 + properties: + updatedAt: + format: int64 + type: integer + commentCount: + format: int32 + type: integer + title: + type: string + url: + type: string + urlId: + type: string + required: + - commentCount + - title + - updatedAt + - url + - urlId + type: object + GetPublicPagesResponse: + example: + nextCursor: nextCursor + pages: + - title: title + urlId: urlId + url: url + updatedAt: 0 + commentCount: 6 + - title: title + urlId: urlId + url: url + updatedAt: 0 + commentCount: 6 + status: success + properties: + nextCursor: + nullable: true + type: string + pages: + items: + $ref: "#/components/schemas/PublicPage" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - nextCursor + - pages + - status + type: object + PagesSortBy: + enum: + - updatedAt + - commentCount + - title + type: string + PageUserEntry: + example: + displayName: displayName + avatarSrc: avatarSrc + isPrivate: true + id: id + properties: + isPrivate: + type: boolean + avatarSrc: + type: string + displayName: + type: string + id: + type: string + required: + - displayName + - id + type: object + PageUsersOnlineResponse: + example: + nextAfterUserId: nextAfterUserId + nextAfterName: nextAfterName + totalCount: 0.8008281904610115 + users: + - displayName: displayName + avatarSrc: avatarSrc + isPrivate: true + id: id + - displayName: displayName + avatarSrc: avatarSrc + isPrivate: true + id: id + anonCount: 6.027456183070403 + status: success + properties: + nextAfterUserId: + nullable: true + type: string + nextAfterName: + nullable: true + type: string + totalCount: + format: double + type: number + anonCount: + format: double + type: number + users: + items: + $ref: "#/components/schemas/PageUserEntry" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - anonCount + - nextAfterName + - nextAfterUserId + - status + - totalCount + - users + type: object + PageUsersOfflineResponse: + example: + nextAfterUserId: nextAfterUserId + nextAfterName: nextAfterName + users: + - displayName: displayName + avatarSrc: avatarSrc + isPrivate: true + id: id + - displayName: displayName + avatarSrc: avatarSrc + isPrivate: true + id: id + status: success + properties: + nextAfterUserId: + nullable: true + type: string + nextAfterName: + nullable: true + type: string + users: + items: + $ref: "#/components/schemas/PageUserEntry" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - nextAfterName + - nextAfterUserId + - status + - users + type: object + PageUsersInfoResponse: + example: + users: + - displayName: displayName + avatarSrc: avatarSrc + isPrivate: true + id: id + - displayName: displayName + avatarSrc: avatarSrc + isPrivate: true + id: id + status: success + properties: + users: + items: + $ref: "#/components/schemas/PageUserEntry" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + - users + type: object + GetV1PageLikes: + example: + urlIdWS: urlIdWS + didLike: true + likeCount: 6 + commentCount: 0 + status: success + properties: + urlIdWS: + type: string + didLike: + type: boolean + commentCount: + format: int32 + type: integer + likeCount: + format: int32 + type: integer + status: + $ref: "#/components/schemas/APIStatus" + required: + - commentCount + - didLike + - likeCount + - status + - urlIdWS + type: object + GetV2PageReactUsersResponse: + example: + userNames: + - userNames + - userNames + status: success + properties: + userNames: + items: + type: string + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + - userNames + type: object + Record_string.number_: + additionalProperties: + format: double + type: number + description: Construct a type with a set of properties K of type T + properties: {} + type: object + GetV2PageReacts: + example: + reactedIds: + - reactedIds + - reactedIds + counts: + key: 0.8008281904610115 + status: success + properties: + reactedIds: + items: + type: string + type: array + counts: + additionalProperties: + format: double + type: number + description: Construct a type with a set of properties K of type T + properties: {} + type: object + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + type: object + CreateV1PageReact: + example: + code: code + status: success + properties: + code: + type: string + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + type: object + CreateV2PageReact: + $ref: "#/components/schemas/CreateV1PageReact" + DeleteV1PageReact: + $ref: "#/components/schemas/CreateV1PageReact" + DeleteV2PageReact: + $ref: "#/components/schemas/CreateV1PageReact" + ModerationFilter: + additionalProperties: false + example: + flagCountGt: 7.061401241503109 + approved: true + moderationGroupIds: + - moderationGroupIds + - moderationGroupIds + isLocked: true + domain: domain + exactCommentText: exactCommentText + reviewed: true + isSpam: true + isBannedUser: true + urlId: urlId + userId: userId + commentTextSearch: + - commentTextSearch + - commentTextSearch + properties: + reviewed: + type: boolean + approved: + type: boolean + isSpam: + type: boolean + isBannedUser: + type: boolean + isLocked: + type: boolean + flagCountGt: + format: double + type: number + userId: + type: string + urlId: + type: string + domain: + type: string + moderationGroupIds: + items: + type: string + type: array + commentTextSearch: + description: |- + Text search terms. Each term is matched case-insensitively against the comment text. + A term wrapped in quotes means exact phrase match. + items: + type: string + type: array + exactCommentText: + description: |- + 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. + type: string + type: object + BuildModerationFilterResponse: + additionalProperties: false + properties: + status: + type: string + moderationFilter: + $ref: "#/components/schemas/ModerationFilter" + required: + - moderationFilter + - status + type: object + BuildModerationFilterParams: + additionalProperties: {} + properties: + userId: + type: string + tenantId: + type: string + filters: + type: string + searchFilters: + type: string + textSearch: + type: string + required: + - tenantId + - userId + type: object + ModerationAPICountCommentsResponse: + additionalProperties: false + example: + count: 0.8008281904610115 + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + count: + format: double + type: number + required: + - count + - status + type: object + ModerationAPIGetCommentIdsResponse: + example: + hasMore: true + ids: + - ids + - ids + status: success + properties: + ids: + items: + type: string + type: array + hasMore: + type: boolean + status: + $ref: "#/components/schemas/APIStatus" + required: + - hasMore + - ids + - status + type: object + UserId: + type: string + CommentUserBadgeInfo: + additionalProperties: false + example: + displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + properties: + id: + type: string + type: + format: int32 + type: integer + description: + type: string + displayLabel: + nullable: true + type: string + displaySrc: + nullable: true + type: string + backgroundColor: + nullable: true + type: string + borderColor: + nullable: true + type: string + textColor: + nullable: true + type: string + cssClass: + nullable: true + type: string + required: + - description + - id + - type + type: object + ModerationAPIComment: + additionalProperties: false + example: + date: 2000-01-23T04:56:07.000+00:00 + votesDown: 5.962133916683182 + pageTitle: pageTitle + commenterName: commenterName + isLocalDeleted: true + isByModerator: true + commenterLink: commenterLink + isVotedDown: true + urlId: urlId + locale: locale + commentHTML: commentHTML + approved: true + localDateString: localDateString + isDeleted: true + permNotSpam: true + isLocked: true + reviewed: true + votesUp: 1.4658129805029452 + displayLabel: displayLabel + flagCount: 5.637376656633329 + hasCode: true + isPinned: true + isVotedUp: true + verified: true + feedbackIds: + - feedbackIds + - feedbackIds + anonUserId: anonUserId + feedbackResults: + - feedbackResults + - feedbackResults + hasLinks: true + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" + url: url + parentId: parentId + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + replyCount: 0.8008281904610115 + myVoteId: myVoteId + tenantId: tenantId + avatarSrc: avatarSrc + votes: 6.027456183070403 + _id: _id + isSpam: true + isBannedUser: true + isByAdmin: true + properties: + isLocalDeleted: + type: boolean + replyCount: + format: double + type: number + feedbackResults: + items: + type: string + type: array + isVotedUp: + type: boolean + isVotedDown: + type: boolean + myVoteId: + type: string + _id: + type: string + tenantId: + type: string + urlId: + type: string + url: + type: string + pageTitle: + nullable: true + type: string + userId: + allOf: + - $ref: "#/components/schemas/UserId" + nullable: true + anonUserId: + nullable: true + type: string + commenterName: + type: string + commenterLink: + nullable: true + type: string + commentHTML: + type: string + parentId: + nullable: true + type: string + date: + format: date-time + nullable: true + type: string + localDateString: + nullable: true + type: string + votes: + format: double + nullable: true + type: number + votesUp: + format: double + nullable: true + type: number + votesDown: + format: double + nullable: true + type: number + expireAt: + format: date-time + nullable: true + type: string + reviewed: + type: boolean + avatarSrc: + nullable: true + type: string + isSpam: + type: boolean + permNotSpam: + type: boolean + hasLinks: + type: boolean + hasCode: + type: boolean + approved: + type: boolean + locale: + nullable: true + type: string + isBannedUser: + type: boolean + isByAdmin: + type: boolean + isByModerator: + type: boolean + isPinned: + nullable: true + type: boolean + isLocked: + nullable: true + type: boolean + flagCount: + format: double + nullable: true + type: number + displayLabel: + nullable: true + type: string + badges: + items: + $ref: "#/components/schemas/CommentUserBadgeInfo" + nullable: true + type: array + verified: + type: boolean + feedbackIds: + items: + type: string + type: array + isDeleted: + type: boolean + required: + - _id + - approved + - commentHTML + - commenterName + - date + - locale + - tenantId + - url + - urlId + - verified + type: object + ModerationAPIGetCommentsResponse: + additionalProperties: false + example: + moderationFilter: + flagCountGt: 7.061401241503109 + approved: true + moderationGroupIds: + - moderationGroupIds + - moderationGroupIds + isLocked: true + domain: domain + exactCommentText: exactCommentText + reviewed: true + isSpam: true + isBannedUser: true + urlId: urlId + userId: userId + commentTextSearch: + - commentTextSearch + - commentTextSearch + comments: + - date: 2000-01-23T04:56:07.000+00:00 + votesDown: 5.962133916683182 + pageTitle: pageTitle + commenterName: commenterName + isLocalDeleted: true + isByModerator: true + commenterLink: commenterLink + isVotedDown: true + urlId: urlId + locale: locale + commentHTML: commentHTML + approved: true + localDateString: localDateString + isDeleted: true + permNotSpam: true + isLocked: true + reviewed: true + votesUp: 1.4658129805029452 + displayLabel: displayLabel + flagCount: 5.637376656633329 + hasCode: true + isPinned: true + isVotedUp: true + verified: true + feedbackIds: + - feedbackIds + - feedbackIds + anonUserId: anonUserId + feedbackResults: + - feedbackResults + - feedbackResults + hasLinks: true + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" + url: url + parentId: parentId + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + replyCount: 0.8008281904610115 + myVoteId: myVoteId + tenantId: tenantId + avatarSrc: avatarSrc + votes: 6.027456183070403 + _id: _id + isSpam: true + isBannedUser: true + isByAdmin: true + - date: 2000-01-23T04:56:07.000+00:00 + votesDown: 5.962133916683182 + pageTitle: pageTitle + commenterName: commenterName + isLocalDeleted: true + isByModerator: true + commenterLink: commenterLink + isVotedDown: true + urlId: urlId + locale: locale + commentHTML: commentHTML + approved: true + localDateString: localDateString + isDeleted: true + permNotSpam: true + isLocked: true + reviewed: true + votesUp: 1.4658129805029452 + displayLabel: displayLabel + flagCount: 5.637376656633329 + hasCode: true + isPinned: true + isVotedUp: true + verified: true + feedbackIds: + - feedbackIds + - feedbackIds + anonUserId: anonUserId + feedbackResults: + - feedbackResults + - feedbackResults + hasLinks: true + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" + url: url + parentId: parentId + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + replyCount: 0.8008281904610115 + myVoteId: myVoteId + tenantId: tenantId + avatarSrc: avatarSrc + votes: 6.027456183070403 + _id: _id + isSpam: true + isBannedUser: true + isByAdmin: true + translations: "{}" + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + translations: + additionalProperties: false + type: object + comments: + items: + $ref: "#/components/schemas/ModerationAPIComment" + type: array + moderationFilter: + $ref: "#/components/schemas/ModerationFilter" + required: + - comments + - status + - translations + type: object + ModerationExportResponse: + additionalProperties: false + example: + batchJobId: batchJobId + status: status + properties: + status: + type: string + batchJobId: + type: string + required: + - batchJobId + - status + type: object + ModerationExportStatusResponse: + additionalProperties: false + example: + jobStatus: jobStatus + recordCount: 0 + downloadUrl: downloadUrl + status: status + properties: + status: + type: string + jobStatus: + type: string + recordCount: + format: int32 + type: integer + downloadUrl: + type: string + required: + - jobStatus + - recordCount + - status + type: object + ModerationUserSearchProjected: + additionalProperties: false + example: + displayName: displayName + avatarSrc: avatarSrc + _id: _id + username: username + properties: + _id: + type: string + username: + type: string + displayName: + nullable: true + type: string + avatarSrc: + nullable: true + type: string + required: + - _id + - username + type: object + ModerationUserSearchResponse: + example: + users: + - displayName: displayName + avatarSrc: avatarSrc + _id: _id + username: username + - displayName: displayName + avatarSrc: avatarSrc + _id: _id + username: username + status: success + properties: + users: + items: + $ref: "#/components/schemas/ModerationUserSearchProjected" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + - users + type: object + ModerationPageSearchProjected: + additionalProperties: false + example: + urlId: urlId + title: title + url: url + commentCount: 0.8008281904610115 + properties: + urlId: + type: string + url: + type: string + title: + type: string + commentCount: + format: double + type: number + required: + - commentCount + - title + - url + - urlId + type: object + ModerationPageSearchResponse: + example: + pages: + - urlId: urlId + title: title + url: url + commentCount: 0.8008281904610115 + - urlId: urlId + title: title + url: url + commentCount: 0.8008281904610115 + status: success + properties: + pages: + items: + $ref: "#/components/schemas/ModerationPageSearchProjected" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - pages + - status + type: object + ModerationSiteSearchProjected: + additionalProperties: false + example: + logoSrc100px: logoSrc100px + domain: domain + properties: + domain: + type: string + logoSrc100px: + nullable: true + type: string + required: + - domain + type: object + ModerationSiteSearchResponse: + example: + sites: + - logoSrc100px: logoSrc100px + domain: domain + - logoSrc100px: logoSrc100px + domain: domain + status: success + properties: + sites: + items: + $ref: "#/components/schemas/ModerationSiteSearchProjected" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - sites + - status + type: object + ModerationCommentSearchResponse: + example: + commentCount: 0 + status: success + properties: + commentCount: + format: int32 + type: integer + status: + $ref: "#/components/schemas/APIStatus" + required: + - commentCount + - status + type: object + ModerationSuggestResponse: + additionalProperties: false + example: + pages: + - urlId: urlId + title: title + url: url + commentCount: 0.8008281904610115 + - urlId: urlId + title: title + url: url + commentCount: 0.8008281904610115 + code: code + users: + - displayName: displayName + avatarSrc: avatarSrc + _id: _id + username: username + - displayName: displayName + avatarSrc: avatarSrc + _id: _id + username: username + status: status + properties: + status: + type: string + pages: + items: + $ref: "#/components/schemas/ModerationPageSearchProjected" + type: array + users: + items: + $ref: "#/components/schemas/ModerationUserSearchProjected" + type: array + code: + type: string + required: + - status + type: object + PreBanSummary: + additionalProperties: false + example: + count: 0.8008281904610115 + usernames: + - usernames + - usernames + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + usernames: + items: + type: string + type: array + count: + format: double + type: number + required: + - count + - status + - usernames + type: object + BulkPreBanSummary: + additionalProperties: false + example: + emails: + - emails + - emails + totalRelatedCommentCount: 0 + userIds: + - userIds + - userIds + emailDomains: + - emailDomains + - emailDomains + ipHashes: + - ipHashes + - ipHashes + status: status + properties: + status: + type: string + totalRelatedCommentCount: + format: int32 + type: integer + emailDomains: + items: + type: string + type: array + emails: + items: + type: string + type: array + userIds: + items: + type: string + type: array + ipHashes: + items: + type: string + type: array + required: + - emailDomains + - emails + - ipHashes + - status + - totalRelatedCommentCount + - userIds + type: object + BulkPreBanParams: + additionalProperties: false + example: + commentIds: + - commentIds + - commentIds + properties: + commentIds: + items: + type: string + type: array + required: + - commentIds + type: object + APIBannedUser: + additionalProperties: false + example: + bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + properties: + _id: + type: string + tenantId: + type: string + userId: + nullable: true + type: string + email: + nullable: true + type: string + username: + nullable: true + type: string + ipHash: + nullable: true + type: string + createdAt: + format: date-time + type: string + bannedByUserId: + type: string + bannedCommentText: + type: string + banType: + type: string + bannedUntil: + format: date-time + nullable: true + type: string + hasEmailWildcard: + type: boolean + banReason: + type: string + required: + - _id + - banType + - bannedByUserId + - bannedCommentText + - bannedUntil + - createdAt + - hasEmailWildcard + - tenantId + type: object + APIBanUserChangedValues: + additionalProperties: false + example: + bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + properties: + _id: + type: string + tenantId: + type: string + userId: + nullable: true + type: string + email: + nullable: true + type: string + username: + nullable: true + type: string + ipHash: + nullable: true + type: string + createdAt: + format: date-time + type: string + bannedByUserId: + type: string + bannedCommentText: + type: string + banType: + type: string + bannedUntil: + format: date-time + nullable: true + type: string + hasEmailWildcard: + type: boolean + banReason: + type: string + type: object + APIBanUserChangeLog: + additionalProperties: false + example: + deletedBannedUsers: + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + updatedBannedUserId: updatedBannedUserId + changedValuesBefore: + bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + createdBannedUserId: createdBannedUserId + properties: + createdBannedUserId: + type: string + updatedBannedUserId: + type: string + deletedBannedUsers: + items: + $ref: "#/components/schemas/APIBannedUser" + type: array + changedValuesBefore: + $ref: "#/components/schemas/APIBanUserChangedValues" + type: object + BanUserFromCommentResult: + additionalProperties: false + example: + reason: reason + code: code + changelog: + deletedBannedUsers: + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + updatedBannedUserId: updatedBannedUserId + changedValuesBefore: + bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + createdBannedUserId: createdBannedUserId + status: status + properties: + status: + type: string + changelog: + $ref: "#/components/schemas/APIBanUserChangeLog" + code: + type: string + reason: + type: string + required: + - status + type: object + BannedUserMatchType: + enum: + - userId + - email + - email-wildcard + - IP + type: string + BannedUserMatch: + additionalProperties: false + example: + matchedOn: userId + matchedOnValue: BannedUserMatch_matchedOnValue + properties: + matchedOn: + $ref: "#/components/schemas/BannedUserMatchType" + matchedOnValue: + $ref: "#/components/schemas/BannedUserMatch_matchedOnValue" + required: + - matchedOn + - matchedOnValue + type: object + APICommentCommonBannedUser: + additionalProperties: false + properties: + _id: + type: string + userId: + nullable: true + type: string + banType: + type: string + email: + nullable: true + type: string + ipHash: + nullable: true + type: string + bannedUntil: + format: date-time + nullable: true + type: string + hasEmailWildcard: + type: boolean + banReason: + type: string + required: + - _id + - banType + - bannedUntil + - hasEmailWildcard + type: object + APIBannedUserWithMultiMatchInfo: + allOf: + - properties: + matches: + items: + $ref: "#/components/schemas/BannedUserMatch" + type: array + required: + - matches + type: object + - $ref: "#/components/schemas/APICommentCommonBannedUser" + example: + bannedUntil: 2000-01-23T04:56:07.000+00:00 + banType: banType + _id: _id + ipHash: ipHash + hasEmailWildcard: true + matches: + - matchedOn: userId + matchedOnValue: BannedUserMatch_matchedOnValue + - matchedOn: userId + matchedOnValue: BannedUserMatch_matchedOnValue + userId: userId + email: email + banReason: banReason + GetBannedUsersFromCommentResponse: + example: + code: not-found + bannedUsers: + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + banType: banType + _id: _id + ipHash: ipHash + hasEmailWildcard: true + matches: + - matchedOn: userId + matchedOnValue: BannedUserMatch_matchedOnValue + - matchedOn: userId + matchedOnValue: BannedUserMatch_matchedOnValue + userId: userId + email: email + banReason: banReason + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + banType: banType + _id: _id + ipHash: ipHash + hasEmailWildcard: true + matches: + - matchedOn: userId + matchedOnValue: BannedUserMatch_matchedOnValue + - matchedOn: userId + matchedOnValue: BannedUserMatch_matchedOnValue + userId: userId + email: email + banReason: banReason + status: success + properties: + bannedUsers: + items: + $ref: "#/components/schemas/APIBannedUserWithMultiMatchInfo" + type: array + code: enum: - - user - - sso + - not-found + - not-logged-in type: string + status: + $ref: "#/components/schemas/APIStatus" + required: + - bannedUsers + - status + type: object + APIEmptyResponse: + example: + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" required: - - id - - name - - type + - status type: object - UserSearchSectionResult: + BanUserUndoParams: additionalProperties: false example: - section: moderators - users: - - displayName: displayName - name: name - avatarSrc: avatarSrc - id: id - type: user - - displayName: displayName - name: name - avatarSrc: avatarSrc - id: id - type: user + changelog: + deletedBannedUsers: + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + updatedBannedUserId: updatedBannedUserId + changedValuesBefore: + bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + createdBannedUserId: createdBannedUserId properties: - section: - $ref: "#/components/schemas/UserSearchSection" - users: - items: - $ref: "#/components/schemas/UserSearchResult" - type: array + changelog: + $ref: "#/components/schemas/APIBanUserChangeLog" required: - - section - - users + - changelog type: object - SearchUsersSectionedResponse: + DeleteCommentAction: + enum: + - already-deleted + - hard-removed + - anonymized + type: string + DeleteCommentResult: example: - sections: - - section: moderators - users: - - displayName: displayName - name: name - avatarSrc: avatarSrc - id: id - type: user - - displayName: displayName - name: name - avatarSrc: avatarSrc - id: id - type: user - - section: moderators - users: - - displayName: displayName - name: name - avatarSrc: avatarSrc - id: id - type: user - - displayName: displayName - name: name - avatarSrc: avatarSrc - id: id - type: user + action: already-deleted status: success properties: + action: + $ref: "#/components/schemas/DeleteCommentAction" status: $ref: "#/components/schemas/APIStatus" - sections: - items: - $ref: "#/components/schemas/UserSearchSectionResult" - type: array required: - - sections + - action - status type: object - SearchUsersResponse: + RemoveCommentActionResponse: + additionalProperties: false + properties: + status: + type: string + action: + type: string + required: + - action + - status + type: object + SetCommentApprovedResponse: + example: + didResetFlaggedCount: true + status: success properties: + didResetFlaggedCount: + type: boolean status: $ref: "#/components/schemas/APIStatus" - users: - items: - $ref: "#/components/schemas/UserSearchResult" - type: array required: - status - - users type: object - CommentHTMLRenderingMode: - enum: - - 0 - - 1 - type: integer - CommentThreadDeletionMode: - enum: - - 0 - - 1 - - 2 - - 3 - type: integer - CommenterNameFormats: - enum: - - 0 - - 1 - - 2 - - 3 - - 4 - type: integer - SortDirections: - enum: - - OF - - NF - - MR - type: string - GifRating: - enum: - - g - - pg - - pg-13 - - r - type: string - ImageContentProfanityLevel: - enum: - - "off" - - low - - medium - - high - type: string - MentionAutoCompleteMode: - enum: - - 0 - - 1 - - 2 - type: integer - SpamRule: + ModerationAPICommentLog: additionalProperties: false example: - commentContains: commentContains - actions: - - spam - - spam + date: 2000-01-23T04:56:07.000+00:00 + messageHTML: messageHTML + username: username + actionName: actionName properties: - actions: - items: - enum: - - spam - - not-spam - - ignore-repeat - type: string - type: array - commentContains: + date: + format: date-time + type: string + username: + type: string + actionName: + type: string + messageHTML: type: string required: - - actions + - actionName + - date + - messageHTML type: object - SSOSecurityLevel: - enum: - - 0 - - 1 - type: integer - Record_string.string_: - additionalProperties: - type: string - description: Construct a type with a set of properties K of type T - example: {} - properties: {} + ModerationAPIGetLogsResponse: + example: + logs: + - date: 2000-01-23T04:56:07.000+00:00 + messageHTML: messageHTML + username: username + actionName: actionName + - date: 2000-01-23T04:56:07.000+00:00 + messageHTML: messageHTML + username: username + actionName: actionName + status: success + properties: + logs: + items: + $ref: "#/components/schemas/ModerationAPICommentLog" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - logs + - status type: object - VoteStyle: - enum: - - 0 - - 1 - type: integer - CommentQuestionResultsRenderingType: - enum: - - 0 - - 1 - - 2 - type: integer - QuestionRenderingType: - enum: - - 0 - - 1 - type: integer - QuestionWhenSave: - enum: - - 0 - - 1 - type: integer - CommentQuestionsRequired: - enum: - - 0 - - 1 - type: integer - QuestionSubQuestionVisibility: - enum: - - 0 - - 1 - type: integer - TOSConfig: - additionalProperties: false + ModerationAPICommentResponse: example: - lastUpdated: 2000-01-23T04:56:07.000+00:00 - textByLocale: - key: textByLocale - enabled: true + comment: + date: 2000-01-23T04:56:07.000+00:00 + votesDown: 5.962133916683182 + pageTitle: pageTitle + commenterName: commenterName + isLocalDeleted: true + isByModerator: true + commenterLink: commenterLink + isVotedDown: true + urlId: urlId + locale: locale + commentHTML: commentHTML + approved: true + localDateString: localDateString + isDeleted: true + permNotSpam: true + isLocked: true + reviewed: true + votesUp: 1.4658129805029452 + displayLabel: displayLabel + flagCount: 5.637376656633329 + hasCode: true + isPinned: true + isVotedUp: true + verified: true + feedbackIds: + - feedbackIds + - feedbackIds + anonUserId: anonUserId + feedbackResults: + - feedbackResults + - feedbackResults + hasLinks: true + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" + url: url + parentId: parentId + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + replyCount: 0.8008281904610115 + myVoteId: myVoteId + tenantId: tenantId + avatarSrc: avatarSrc + votes: 6.027456183070403 + _id: _id + isSpam: true + isBannedUser: true + isByAdmin: true + status: success properties: - enabled: - type: boolean - textByLocale: - additionalProperties: - type: string - description: Construct a type with a set of properties K of type T - example: {} - properties: {} - type: object - lastUpdated: - format: date-time - type: string + comment: + $ref: "#/components/schemas/ModerationAPIComment" + status: + $ref: "#/components/schemas/APIStatus" + required: + - comment + - status type: object - CustomConfigParameters: - additionalProperties: false + ModerationAPIChildCommentsResponse: example: - disableAutoHashTagCreation: true - disableCommenterCommentDelete: true - enableVoteList: true - pageSize: 7 - collapseReplies: true - disableProfiles: true - disableSuccessMessage: true - allowAnon: true - countAboveToggle: 5 - readonly: true - useShowCommentsToggle: true - noImageUploads: true - spamRules: - - commentContains: commentContains - actions: - - spam - - spam - - commentContains: commentContains - actions: - - spam - - spam - translations: "" - widgetQuestionId: widgetQuestionId - disableLiveCommenting: true - ssoSecLvl: 9 - defaultSortDirection: "" - disableVoting: true - noCustomConfig: true - gifRating: g - ticketAutoAssignUserIds: - - ticketAutoAssignUserIds - - ticketAutoAssignUserIds - enableSearch: true - requireSSO: true - disableToolbar: true - hideCommentsUnderCountTextFormat: hideCommentsUnderCountTextFormat - maxCommentCreatedCountPUPM: 2 - disableProfileDirectMessages: true - disableBlocking: true - disableEmailInputs: true - widgetQuestionWhenToSave: 7 - allowAnonFlag: true - ticketKBSearchEndpoint: ticketKBSearchEndpoint - widgetSubQuestionVisibility: 1 - showBadgesInTopBar: true - widgetQuestionStyle: 4 - restrictedLinkDomains: - - restrictedLinkDomains - - restrictedLinkDomains - showQuestion: true - inputAfterComments: true - allowAnonVotes: true - commentThreadDeleteMode: "" - commentCountFormat: commentCountFormat - disableNotificationBell: true - voteStyle: 3 - disableAutoAdminMigration: true - disableProfileComments: true - absoluteAndRelativeDates: true - commenterNameFormat: "" - enableThirdPartyCookieBypass: true - ticketMaxFileSize: 1 - locale: locale - showCommentSaveSuccess: true - disableCommenterCommentEdit: true - enableCommenterLinks: true - imageContentProfanityLevel: "off" - enableSpoilers: true - disableUnverifiedLabel: true - noStyles: true - enableResizeHandle: true - absoluteDates: true - limitCommentsByGroups: true - enableWYSIWYG: true - tos: - lastUpdated: 2000-01-23T04:56:07.000+00:00 - textByLocale: - key: textByLocale - enabled: true - widgetQuestionShowBreakdown: true - mentionAutoCompleteMode: "" - customCSS: customCSS - enableViewCounts: true - headerHTML: headerHTML - hideAvatars: true - defaultAvatarSrc: defaultAvatarSrc - commentHTMLRenderingMode: 1 - noNewRootComments: true - ticketFileUploadsEnabled: true - maxCommentCharacterLength: 5 - useSingleLineCommentInput: true - allowedLanguages: - - allowedLanguages - - allowedLanguages - defaultUsername: defaultUsername - widgetQuestionResultsStyle: 2 - showLiveRightAway: true - widgetQuestionsRequired: 1 - hasDarkBackground: true - wrap: true - ticketBaseUrl: ticketBaseUrl + comments: + - date: 2000-01-23T04:56:07.000+00:00 + votesDown: 5.962133916683182 + pageTitle: pageTitle + commenterName: commenterName + isLocalDeleted: true + isByModerator: true + commenterLink: commenterLink + isVotedDown: true + urlId: urlId + locale: locale + commentHTML: commentHTML + approved: true + localDateString: localDateString + isDeleted: true + permNotSpam: true + isLocked: true + reviewed: true + votesUp: 1.4658129805029452 + displayLabel: displayLabel + flagCount: 5.637376656633329 + hasCode: true + isPinned: true + isVotedUp: true + verified: true + feedbackIds: + - feedbackIds + - feedbackIds + anonUserId: anonUserId + feedbackResults: + - feedbackResults + - feedbackResults + hasLinks: true + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" + url: url + parentId: parentId + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + replyCount: 0.8008281904610115 + myVoteId: myVoteId + tenantId: tenantId + avatarSrc: avatarSrc + votes: 6.027456183070403 + _id: _id + isSpam: true + isBannedUser: true + isByAdmin: true + - date: 2000-01-23T04:56:07.000+00:00 + votesDown: 5.962133916683182 + pageTitle: pageTitle + commenterName: commenterName + isLocalDeleted: true + isByModerator: true + commenterLink: commenterLink + isVotedDown: true + urlId: urlId + locale: locale + commentHTML: commentHTML + approved: true + localDateString: localDateString + isDeleted: true + permNotSpam: true + isLocked: true + reviewed: true + votesUp: 1.4658129805029452 + displayLabel: displayLabel + flagCount: 5.637376656633329 + hasCode: true + isPinned: true + isVotedUp: true + verified: true + feedbackIds: + - feedbackIds + - feedbackIds + anonUserId: anonUserId + feedbackResults: + - feedbackResults + - feedbackResults + hasLinks: true + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" + url: url + parentId: parentId + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + replyCount: 0.8008281904610115 + myVoteId: myVoteId + tenantId: tenantId + avatarSrc: avatarSrc + votes: 6.027456183070403 + _id: _id + isSpam: true + isBannedUser: true + isByAdmin: true + status: success properties: - absoluteAndRelativeDates: - type: boolean - absoluteDates: - type: boolean - allowAnon: - type: boolean - allowAnonFlag: - type: boolean - allowAnonVotes: - type: boolean - allowedLanguages: + comments: + items: + $ref: "#/components/schemas/ModerationAPIComment" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - comments + - status + type: object + CommentsByIdsParams: + additionalProperties: false + example: + ids: + - ids + - ids + properties: + ids: items: type: string - nullable: true type: array - collapseReplies: - type: boolean - commentCountFormat: - nullable: true - type: string - commentHTMLRenderingMode: - $ref: "#/components/schemas/CommentHTMLRenderingMode" - commentThreadDeleteMode: - allOf: - - $ref: "#/components/schemas/CommentThreadDeletionMode" - nullable: true - commenterNameFormat: - allOf: - - $ref: "#/components/schemas/CommenterNameFormats" - nullable: true - countAboveToggle: - format: int32 - type: integer - customCSS: - nullable: true - type: string - defaultAvatarSrc: - nullable: true - type: string - defaultSortDirection: - allOf: - - $ref: "#/components/schemas/SortDirections" - nullable: true - defaultUsername: + required: + - ids + type: object + GetCommentTextResponse: + example: + comment: comment + status: success + properties: + comment: nullable: true type: string - disableAutoAdminMigration: - type: boolean - disableAutoHashTagCreation: - type: boolean - disableBlocking: - type: boolean - disableCommenterCommentDelete: - type: boolean - disableCommenterCommentEdit: - type: boolean - disableEmailInputs: - type: boolean - disableLiveCommenting: - type: boolean - disableNotificationBell: - type: boolean - disableProfileComments: - type: boolean - disableProfileDirectMessages: - type: boolean - disableProfiles: - type: boolean - disableSuccessMessage: - type: boolean - disableToolbar: - type: boolean - disableUnverifiedLabel: - type: boolean - disableVoting: - type: boolean - enableCommenterLinks: - type: boolean - enableSearch: - type: boolean - enableSpoilers: - type: boolean - enableThirdPartyCookieBypass: - type: boolean - enableViewCounts: - type: boolean - enableVoteList: - type: boolean - enableWYSIWYG: - type: boolean - gifRating: - $ref: "#/components/schemas/GifRating" - hasDarkBackground: - type: boolean - headerHTML: - nullable: true + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + type: object + SetCommentTextResponse: + example: + newCommentTextHTML: newCommentTextHTML + status: success + properties: + newCommentTextHTML: type: string - hideAvatars: - type: boolean - hideCommentsUnderCountTextFormat: - nullable: true + status: + $ref: "#/components/schemas/APIStatus" + required: + - newCommentTextHTML + - status + type: object + SetCommentTextParams: + additionalProperties: false + example: + comment: comment + properties: + comment: type: string - imageContentProfanityLevel: - $ref: "#/components/schemas/ImageContentProfanityLevel" - inputAfterComments: - type: boolean - limitCommentsByGroups: - type: boolean - locale: - nullable: true + required: + - comment + type: object + AdjustVotesResponse: + additionalProperties: false + example: + newCommentVotes: 0 + status: status + properties: + status: type: string - maxCommentCharacterLength: - format: int32 - nullable: true - type: integer - maxCommentCreatedCountPUPM: - format: int32 - nullable: true - type: integer - noCustomConfig: - type: boolean - mentionAutoCompleteMode: - allOf: - - $ref: "#/components/schemas/MentionAutoCompleteMode" - nullable: true - noImageUploads: - type: boolean - noStyles: - type: boolean - pageSize: + newCommentVotes: format: int32 - nullable: true type: integer - readonly: - type: boolean - noNewRootComments: - type: boolean - requireSSO: - type: boolean - enableResizeHandle: - type: boolean - restrictedLinkDomains: - items: - type: string - nullable: true - type: array - showBadgesInTopBar: - type: boolean - showCommentSaveSuccess: - type: boolean - showLiveRightAway: - type: boolean - showQuestion: - type: boolean - spamRules: - items: - $ref: "#/components/schemas/SpamRule" - type: array - ssoSecLvl: - $ref: "#/components/schemas/SSOSecurityLevel" - translations: - allOf: - - $ref: "#/components/schemas/Record_string.string_" + required: + - newCommentVotes + - status + type: object + AdjustCommentVotesParams: + additionalProperties: false + example: + adjustVoteAmount: 0.8008281904610115 + properties: + adjustVoteAmount: + format: double + type: number + required: + - adjustVoteAmount + type: object + VoteResponseUser: + additionalProperties: false + example: + sessionId: sessionId + properties: + sessionId: nullable: true - useShowCommentsToggle: - type: boolean - useSingleLineCommentInput: - type: boolean - voteStyle: - $ref: "#/components/schemas/VoteStyle" - widgetQuestionId: type: string - widgetQuestionResultsStyle: - $ref: "#/components/schemas/CommentQuestionResultsRenderingType" - widgetQuestionShowBreakdown: - type: boolean - widgetQuestionStyle: - $ref: "#/components/schemas/QuestionRenderingType" - widgetQuestionWhenToSave: - $ref: "#/components/schemas/QuestionWhenSave" - widgetQuestionsRequired: - $ref: "#/components/schemas/CommentQuestionsRequired" - widgetSubQuestionVisibility: - $ref: "#/components/schemas/QuestionSubQuestionVisibility" - wrap: - type: boolean - ticketBaseUrl: + type: object + VoteResponse: + additionalProperties: false + example: + editKey: editKey + isVerified: true + voteId: voteId + user: + sessionId: sessionId + status: success + properties: + status: + enum: + - success + - failed + - pending-verification type: string - ticketKBSearchEndpoint: + voteId: type: string - ticketFileUploadsEnabled: + isVerified: type: boolean - ticketMaxFileSize: - format: int32 - type: integer - ticketAutoAssignUserIds: - items: - type: string - type: array - tos: - $ref: "#/components/schemas/TOSConfig" + user: + $ref: "#/components/schemas/VoteResponseUser" + editKey: + type: string + required: + - status type: object - APIError: + VoteDeleteResponse: additionalProperties: false example: - reason: reason - code: code - bannedUntil: 0 - customConfig: - disableAutoHashTagCreation: true - disableCommenterCommentDelete: true - enableVoteList: true - pageSize: 7 - collapseReplies: true - disableProfiles: true - disableSuccessMessage: true - allowAnon: true - countAboveToggle: 5 - readonly: true - useShowCommentsToggle: true - noImageUploads: true - spamRules: - - commentContains: commentContains - actions: - - spam - - spam - - commentContains: commentContains - actions: - - spam - - spam - translations: "" - widgetQuestionId: widgetQuestionId - disableLiveCommenting: true - ssoSecLvl: 9 - defaultSortDirection: "" - disableVoting: true - noCustomConfig: true - gifRating: g - ticketAutoAssignUserIds: - - ticketAutoAssignUserIds - - ticketAutoAssignUserIds - enableSearch: true - requireSSO: true - disableToolbar: true - hideCommentsUnderCountTextFormat: hideCommentsUnderCountTextFormat - maxCommentCreatedCountPUPM: 2 - disableProfileDirectMessages: true - disableBlocking: true - disableEmailInputs: true - widgetQuestionWhenToSave: 7 - allowAnonFlag: true - ticketKBSearchEndpoint: ticketKBSearchEndpoint - widgetSubQuestionVisibility: 1 - showBadgesInTopBar: true - widgetQuestionStyle: 4 - restrictedLinkDomains: - - restrictedLinkDomains - - restrictedLinkDomains - showQuestion: true - inputAfterComments: true - allowAnonVotes: true - commentThreadDeleteMode: "" - commentCountFormat: commentCountFormat - disableNotificationBell: true - voteStyle: 3 - disableAutoAdminMigration: true - disableProfileComments: true - absoluteAndRelativeDates: true - commenterNameFormat: "" - enableThirdPartyCookieBypass: true - ticketMaxFileSize: 1 - locale: locale - showCommentSaveSuccess: true - disableCommenterCommentEdit: true - enableCommenterLinks: true - imageContentProfanityLevel: "off" - enableSpoilers: true - disableUnverifiedLabel: true - noStyles: true - enableResizeHandle: true - absoluteDates: true - limitCommentsByGroups: true - enableWYSIWYG: true - tos: - lastUpdated: 2000-01-23T04:56:07.000+00:00 - textByLocale: - key: textByLocale - enabled: true - widgetQuestionShowBreakdown: true - mentionAutoCompleteMode: "" - customCSS: customCSS - enableViewCounts: true - headerHTML: headerHTML - hideAvatars: true - defaultAvatarSrc: defaultAvatarSrc - commentHTMLRenderingMode: 1 - noNewRootComments: true - ticketFileUploadsEnabled: true - maxCommentCharacterLength: 5 - useSingleLineCommentInput: true - allowedLanguages: - - allowedLanguages - - allowedLanguages - defaultUsername: defaultUsername - widgetQuestionResultsStyle: 2 - showLiveRightAway: true - widgetQuestionsRequired: 1 - hasDarkBackground: true - wrap: true - ticketBaseUrl: ticketBaseUrl - translatedError: translatedError - secondaryCode: secondaryCode - maxCharacterLength: 6 + wasPendingVote: true status: success properties: status: $ref: "#/components/schemas/APIStatus" - reason: + wasPendingVote: + type: boolean + required: + - status + type: object + GetCommentBanStatusResponse: + additionalProperties: false + example: + emailDomain: emailDomain + canIPBan: true + status: status + properties: + status: type: string - code: + emailDomain: + nullable: true type: string - secondaryCode: + canIPBan: + nullable: true + type: boolean + required: + - canIPBan + - emailDomain + - status + type: object + APIModerateUserBanPreferences: + additionalProperties: false + properties: + shouldBanEmail: + type: boolean + shouldBanByIP: + type: boolean + lastBanType: type: string - bannedUntil: - format: int64 - type: integer - maxCharacterLength: - format: int32 - type: integer - translatedError: + lastBanDuration: type: string - customConfig: - $ref: "#/components/schemas/CustomConfigParameters" required: - - code - - reason + - lastBanDuration + - lastBanType + - shouldBanByIP + - shouldBanEmail + type: object + APIModerateGetUserBanPreferencesResponse: + example: + preferences: "" + status: success + properties: + preferences: + allOf: + - $ref: "#/components/schemas/APIModerateUserBanPreferences" + nullable: true + status: + $ref: "#/components/schemas/APIStatus" + required: + - preferences - status type: object - Record_string.boolean_: - additionalProperties: - type: boolean - description: Construct a type with a set of properties K of type T - properties: {} + TenantBadge: + additionalProperties: false + example: + displayLabel: displayLabel + createdByUserId: createdByUserId + backgroundColor: backgroundColor + borderColor: borderColor + description: description + isAwaitingDeletion: true + threshold: 6.027456183070403 + urlId: urlId + type: 0.8008281904610115 + textColor: textColor + enabled: true + createdAt: 2000-01-23T04:56:07.000+00:00 + veteranUserThresholdMillis: 5.962133916683182 + cssClass: cssClass + isAwaitingReprocess: true + tenantId: tenantId + name: name + uses: 1.4658129805029452 + _id: _id + replacesBadgeId: replacesBadgeId + displaySrc: displaySrc + properties: + _id: + type: string + tenantId: + type: string + createdByUserId: + type: string + createdAt: + format: date-time + type: string + enabled: + type: boolean + urlId: + nullable: true + type: string + type: + format: double + type: number + threshold: + format: double + type: number + uses: + format: double + type: number + name: + type: string + description: + type: string + displayLabel: + type: string + displaySrc: + nullable: true + type: string + backgroundColor: + nullable: true + type: string + borderColor: + nullable: true + type: string + textColor: + nullable: true + type: string + cssClass: + nullable: true + type: string + veteranUserThresholdMillis: + format: double + nullable: true + type: number + isAwaitingReprocess: + type: boolean + isAwaitingDeletion: + type: boolean + replacesBadgeId: + nullable: true + type: string + required: + - _id + - backgroundColor + - borderColor + - createdAt + - createdByUserId + - description + - displayLabel + - displaySrc + - enabled + - isAwaitingDeletion + - isAwaitingReprocess + - name + - tenantId + - textColor + - threshold + - type + - uses type: object - GetUserPresenceStatusesResponse: + GetTenantManualBadgesResponse: example: - userIdsOnline: - key: true + badges: + - displayLabel: displayLabel + createdByUserId: createdByUserId + backgroundColor: backgroundColor + borderColor: borderColor + description: description + isAwaitingDeletion: true + threshold: 6.027456183070403 + urlId: urlId + type: 0.8008281904610115 + textColor: textColor + enabled: true + createdAt: 2000-01-23T04:56:07.000+00:00 + veteranUserThresholdMillis: 5.962133916683182 + cssClass: cssClass + isAwaitingReprocess: true + tenantId: tenantId + name: name + uses: 1.4658129805029452 + _id: _id + replacesBadgeId: replacesBadgeId + displaySrc: displaySrc + - displayLabel: displayLabel + createdByUserId: createdByUserId + backgroundColor: backgroundColor + borderColor: borderColor + description: description + isAwaitingDeletion: true + threshold: 6.027456183070403 + urlId: urlId + type: 0.8008281904610115 + textColor: textColor + enabled: true + createdAt: 2000-01-23T04:56:07.000+00:00 + veteranUserThresholdMillis: 5.962133916683182 + cssClass: cssClass + isAwaitingReprocess: true + tenantId: tenantId + name: name + uses: 1.4658129805029452 + _id: _id + replacesBadgeId: replacesBadgeId + displaySrc: displaySrc status: success properties: + badges: + items: + $ref: "#/components/schemas/TenantBadge" + type: array status: $ref: "#/components/schemas/APIStatus" - userIdsOnline: - additionalProperties: - type: boolean - description: Construct a type with a set of properties K of type T - properties: {} - type: object required: + - badges - status - - userIdsOnline type: object - NotificationObjectType: - enum: - - 0 - - 1 - - 2 - type: integer - NotificationType: - enum: - - 0 - - 1 - - 2 - - 3 - - 4 - - 5 - - 6 - - 7 - - 8 - - 81 - - 82 - - 9 - - 10 - type: integer - RenderableUserNotification: + UserBadge: + additionalProperties: false example: - fromUserAvatarSrc: fromUserAvatarSrc - contextHTML: contextHTML - fromCommentId: fromCommentId - relatedObjectId: relatedObjectId - conversationId: conversationId - fromUserNames: - - fromUserNames - - fromUserNames - fromUserId: fromUserId - pageTitle: pageTitle - count: 0 - type: 6 + displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + badgeId: badgeId + description: description + threshold: 6 + type: 0 + receivedAt: 2000-01-23T04:56:07.000+00:00 urlId: urlId - sent: sent - url: url - fromUserIds: - - fromUserIds - - fromUserIds - optedOut: true - fromUserName: fromUserName - createdAt: createdAt - relatedIds: - - relatedIds - - relatedIds - viewed: viewed - relatedObjectType: 1 + userId: userId + textColor: textColor + displayedOnComments: true + createdAt: 2000-01-23T04:56:07.000+00:00 + veteranUserThresholdMillis: 1 + cssClass: cssClass _id: _id + fromTenantId: fromTenantId + displaySrc: displaySrc + order: 5 properties: - conversationId: + _id: type: string - contextHTML: + userId: type: string - fromUserNames: - items: - type: string - type: array - fromUserIds: - items: - type: string - type: array - relatedIds: - items: - type: string - type: array - count: + badgeId: + type: string + fromTenantId: + type: string + createdAt: + format: date-time + type: string + type: + format: int32 + type: integer + threshold: format: int64 type: integer - optedOut: - type: boolean - fromUserAvatarSrc: - nullable: true + description: type: string - fromUserId: - nullable: true + displayLabel: type: string - fromUserName: + displaySrc: nullable: true type: string - fromCommentId: + backgroundColor: nullable: true type: string - type: - $ref: "#/components/schemas/NotificationType" - createdAt: - type: string - sent: - type: string - viewed: + borderColor: + nullable: true type: string - relatedObjectId: + textColor: + nullable: true type: string - relatedObjectType: - $ref: "#/components/schemas/NotificationObjectType" - pageTitle: + cssClass: nullable: true type: string - url: + veteranUserThresholdMillis: + format: int64 + type: integer + displayedOnComments: + type: boolean + receivedAt: + format: date-time type: string + order: + format: int32 + type: integer urlId: - type: string - _id: + nullable: true type: string required: - _id + - badgeId - createdAt - - optedOut - - relatedObjectId - - relatedObjectType - - sent + - description + - displayLabel + - displayedOnComments + - fromTenantId + - receivedAt + - threshold - type - - url - - urlId - - viewed + - userId + - veteranUserThresholdMillis type: object - GetMyNotificationsResponse: + GetUserManualBadgesResponse: example: - isSubscribed: true - translations: - key: translations - hasMore: true - notifications: - - fromUserAvatarSrc: fromUserAvatarSrc - contextHTML: contextHTML - fromCommentId: fromCommentId - relatedObjectId: relatedObjectId - conversationId: conversationId - fromUserNames: - - fromUserNames - - fromUserNames - fromUserId: fromUserId - pageTitle: pageTitle - count: 0 - type: 6 + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + badgeId: badgeId + description: description + threshold: 6 + type: 0 + receivedAt: 2000-01-23T04:56:07.000+00:00 urlId: urlId - sent: sent - url: url - fromUserIds: - - fromUserIds - - fromUserIds - optedOut: true - fromUserName: fromUserName - createdAt: createdAt - relatedIds: - - relatedIds - - relatedIds - viewed: viewed - relatedObjectType: 1 - _id: _id - - fromUserAvatarSrc: fromUserAvatarSrc - contextHTML: contextHTML - fromCommentId: fromCommentId - relatedObjectId: relatedObjectId - conversationId: conversationId - fromUserNames: - - fromUserNames - - fromUserNames - fromUserId: fromUserId - pageTitle: pageTitle - count: 0 - type: 6 + userId: userId + textColor: textColor + displayedOnComments: true + createdAt: 2000-01-23T04:56:07.000+00:00 + veteranUserThresholdMillis: 1 + cssClass: cssClass + _id: _id + fromTenantId: fromTenantId + displaySrc: displaySrc + order: 5 + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + badgeId: badgeId + description: description + threshold: 6 + type: 0 + receivedAt: 2000-01-23T04:56:07.000+00:00 urlId: urlId - sent: sent - url: url - fromUserIds: - - fromUserIds - - fromUserIds - optedOut: true - fromUserName: fromUserName - createdAt: createdAt - relatedIds: - - relatedIds - - relatedIds - viewed: viewed - relatedObjectType: 1 + userId: userId + textColor: textColor + displayedOnComments: true + createdAt: 2000-01-23T04:56:07.000+00:00 + veteranUserThresholdMillis: 1 + cssClass: cssClass _id: _id + fromTenantId: fromTenantId + displaySrc: displaySrc + order: 5 status: success properties: - translations: - additionalProperties: - type: string - description: Construct a type with a set of properties K of type T - example: {} - properties: {} - type: object - isSubscribed: - type: boolean - hasMore: - type: boolean - notifications: + badges: items: - $ref: "#/components/schemas/RenderableUserNotification" + $ref: "#/components/schemas/UserBadge" type: array status: $ref: "#/components/schemas/APIStatus" required: - - hasMore - - isSubscribed - - notifications + - badges - status type: object - ResetUserNotificationsResponse: - additionalProperties: false + AwardUserBadgeResponse: example: - code: ignored-since-impersonated + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + notes: + - notes + - notes status: success properties: + notes: + items: + type: string + type: array + badges: + items: + $ref: "#/components/schemas/CommentUserBadgeInfo" + type: array status: $ref: "#/components/schemas/APIStatus" - code: - enum: - - ignored-since-impersonated - nullable: false - type: string required: - status type: object - GetUserNotificationCountResponse: - additionalProperties: false + RemoveUserBadgeResponse: example: - count: 0 + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc status: success properties: + badges: + items: + $ref: "#/components/schemas/CommentUserBadgeInfo" + type: array status: $ref: "#/components/schemas/APIStatus" - count: - format: int64 - type: integer required: - - count - status type: object - EnumAsObject_typeofNotificationType_: - properties: {} - type: object - NotificationAndCount: - additionalProperties: false - properties: - type: - $ref: "#/components/schemas/NotificationType" - count: - format: int64 - type: integer - required: - - count - - type - type: object - HeaderAccountNotification: - additionalProperties: false - properties: - _id: - type: string - title: - type: string - message: - type: string - messagesByLocale: - allOf: - - $ref: "#/components/schemas/Record_string.string_" - nullable: true - dates: - allOf: - - $ref: "#/components/schemas/Record_string.string_" - nullable: true - severity: - type: string - linkUrl: - nullable: true - type: string - linkText: - nullable: true - type: string - createdAt: - format: date-time - type: string - required: - - _id - - createdAt - - dates - - linkText - - linkUrl - - message - - messagesByLocale - - severity - - title - type: object - HeaderState: - additionalProperties: false + GetUserTrustFactorResponse: + example: + autoTrustFactor: 6.027456183070403 + manualTrustFactor: 0.8008281904610115 + status: success properties: + manualTrustFactor: + format: double + type: number + autoTrustFactor: + format: double + type: number status: $ref: "#/components/schemas/APIStatus" - NotificationType: - properties: {} - type: object - userId: - type: string - userIdWS: - type: string - notificationCounts: - items: - $ref: "#/components/schemas/NotificationAndCount" - type: array - accountNotifications: - items: - $ref: "#/components/schemas/HeaderAccountNotification" - type: array required: - - NotificationType - - accountNotifications - - notificationCounts - status - - userId - - userIdWS type: object - UserNotificationWriteResponse: - additionalProperties: false + SetUserTrustFactorResponse: example: - modifiedCount: 6 - matchedCount: 0 + previousManualTrustFactor: 0.8008281904610115 status: success properties: + previousManualTrustFactor: + format: double + type: number status: $ref: "#/components/schemas/APIStatus" - matchedCount: - format: int64 - type: integer - modifiedCount: - format: int64 - type: integer required: - - matchedCount - - modifiedCount - status type: object - IgnoredResponse: - additionalProperties: false + GetUserInternalProfileResponse: + example: + profile: + karma: 0.8008281904610115 + firstCommentDate: 2000-01-23T04:56:07.000+00:00 + displayName: displayName + commenterName: commenterName + verified: true + bio: bio + anonUserId: anonUserId + ipHash: ipHash + locale: locale + userId: userId + commenterEmail: commenterEmail + countryFlag: countryFlag + websiteUrl: websiteUrl + countryCode: countryCode + avatarSrc: avatarSrc + email: email + username: username + status: success properties: + profile: + $ref: "#/components/schemas/GetUserInternalProfileResponse_profile" status: $ref: "#/components/schemas/APIStatus" - note: - enum: - - ignored-since-impersonated - - demo-noop - type: string required: - - note + - profile - status type: object - MediaAsset: - additionalProperties: false + GetBannedUsersCountResponse: example: - src: src - w: 0 - h: 6 + totalCount: 0.8008281904610115 + status: status properties: - w: - format: int32 - type: integer - h: - format: int32 - type: integer - src: + totalCount: + format: double + type: number + status: type: string required: - - h - - src - - w + - status + - totalCount type: object - UploadImageResponse: - additionalProperties: false + GifSearchResponse: example: - reason: reason - code: code - media: - - src: src - w: 0 - h: 6 - - src: src - w: 0 - h: 6 - url: url + images: + - - GifSearchResponse_images_inner_inner + - GifSearchResponse_images_inner_inner + - - GifSearchResponse_images_inner_inner + - GifSearchResponse_images_inner_inner status: success properties: - status: - $ref: "#/components/schemas/APIStatus" - url: - type: string - media: + images: items: - $ref: "#/components/schemas/MediaAsset" + items: + $ref: "#/components/schemas/GifSearchResponse_images_inner_inner" + type: array type: array - reason: - type: string + status: + $ref: "#/components/schemas/APIStatus" + required: + - images + - status + type: object + GifSearchInternalError: + properties: code: type: string + status: + $ref: "#/components/schemas/APIStatus" required: + - code - status type: object - SizePreset: - enum: - - Default - - CrossPlatform - type: string - APIEmptyResponse: + GifGetLargeResponse: example: + src: src status: success properties: + src: + type: string status: $ref: "#/components/schemas/APIStatus" required: + - src - status type: object FeedPostMediaItemAsset: @@ -7617,49 +13685,6 @@ components: - createdAt - tenantId type: object - CommentUserBadgeInfo: - additionalProperties: false - example: - displayLabel: displayLabel - backgroundColor: backgroundColor - borderColor: borderColor - cssClass: cssClass - description: description - id: id - type: 9 - textColor: textColor - displaySrc: displaySrc - properties: - id: - type: string - type: - format: int32 - type: integer - description: - type: string - displayLabel: - nullable: true - type: string - displaySrc: - nullable: true - type: string - backgroundColor: - nullable: true - type: string - borderColor: - nullable: true - type: string - textColor: - nullable: true - type: string - cssClass: - nullable: true - type: string - required: - - description - - id - - type - type: object UserSessionInfo: additionalProperties: false properties: @@ -8206,6 +14231,8 @@ components: - updated-ticket-state - updated-ticket-assignment - deleted-ticket + - page-react + - question-result type: string TenantId: type: string @@ -8356,8 +14383,6 @@ components: - urlIdRaw - verificationId type: object - UserId: - type: string FDomain: type: string PubSubCommentBase: @@ -8697,6 +14722,26 @@ components: required: - comment type: object + Pick_GetCommentsResponse.Exclude_keyofGetCommentsResponse.lastGenDate-or-pageNumber__: + additionalProperties: {} + description: "From T, pick a set of properties whose keys are in the union K" + properties: {} + type: object + Omit_GetCommentsResponse.lastGenDate-or-pageNumber_: + $ref: "#/components/schemas/Pick_GetCommentsResponse.Exclude_keyofGetCommentsResponse.lastGenDate-or-pageNumber__" + GetCommentsForUserResponse: + allOf: + - $ref: "#/components/schemas/Omit_GetCommentsResponse.lastGenDate-or-pageNumber_" + - properties: + moderatingTenantIds: + items: + type: string + type: array + type: object + example: + moderatingTenantIds: + - moderatingTenantIds + - moderatingTenantIds PublicComment: allOf: - properties: @@ -8752,7 +14797,7 @@ components: - null nestedChildrenCount: 6 isLocked: true - viewCount: 3 + viewCount: 9 votesUp: 5 displayLabel: displayLabel requiresVerification: true @@ -8775,7 +14820,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -8784,7 +14829,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc myVoteId: myVoteId @@ -8976,7 +15021,7 @@ components: example: reason: reason code: code - pageNumber: 7 + pageNumber: 4 isProd: true urlIdClean: urlIdClean hasMore: true @@ -8994,6 +15039,7 @@ components: countAboveToggle: 5 readonly: true useShowCommentsToggle: true + usersListLocation: 1 noImageUploads: true spamRules: - commentContains: commentContains @@ -9011,6 +15057,9 @@ components: defaultSortDirection: "" disableVoting: true noCustomConfig: true + allowedEmbedDomains: + - allowedEmbedDomains + - allowedEmbedDomains gifRating: g ticketAutoAssignUserIds: - ticketAutoAssignUserIds @@ -9038,13 +15087,14 @@ components: commentThreadDeleteMode: "" commentCountFormat: commentCountFormat disableNotificationBell: true + enableFChat: true voteStyle: 3 disableAutoAdminMigration: true disableProfileComments: true absoluteAndRelativeDates: true commenterNameFormat: "" enableThirdPartyCookieBypass: true - ticketMaxFileSize: 1 + ticketMaxFileSize: 6 locale: locale showCommentSaveSuccess: true disableCommenterCommentEdit: true @@ -9069,6 +15119,7 @@ components: headerHTML: headerHTML hideAvatars: true defaultAvatarSrc: defaultAvatarSrc + usersListIncludeOffline: true commentHTMLRenderingMode: 1 noNewRootComments: true ticketFileUploadsEnabled: true @@ -9077,6 +15128,7 @@ components: allowedLanguages: - allowedLanguages - allowedLanguages + allowEmbeds: true defaultUsername: defaultUsername widgetQuestionResultsStyle: 2 showLiveRightAway: true @@ -9086,7 +15138,7 @@ components: ticketBaseUrl: ticketBaseUrl hasBillingIssue: true isCrawler: true - lastGenDate: 2 + lastGenDate: 3 comments: - date: 2000-01-23T04:56:07.000+00:00 editKey: editKey @@ -9106,7 +15158,7 @@ components: - null nestedChildrenCount: 6 isLocked: true - viewCount: 3 + viewCount: 9 votesUp: 5 displayLabel: displayLabel requiresVerification: true @@ -9129,7 +15181,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -9138,7 +15190,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc myVoteId: myVoteId @@ -9167,7 +15219,7 @@ components: - null nestedChildrenCount: 6 isLocked: true - viewCount: 3 + viewCount: 9 votesUp: 5 displayLabel: displayLabel requiresVerification: true @@ -9190,7 +15242,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -9199,7 +15251,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc myVoteId: myVoteId @@ -9210,12 +15262,12 @@ components: _id: _id isSpam: true isByAdmin: true - notificationCount: 1 + notificationCount: 7 translatedWarning: translatedWarning includesPastPages: true moduleData: key: "" - commentCount: 4 + commentCount: 2 isClosed: true presencePollState: 1 userIdWS: userIdWS @@ -9273,7 +15325,7 @@ components: - null nestedChildrenCount: 6 isLocked: true - viewCount: 3 + viewCount: 9 votesUp: 5 displayLabel: displayLabel requiresVerification: true @@ -9296,7 +15348,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -9305,7 +15357,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc myVoteId: myVoteId @@ -9323,7 +15375,7 @@ components: status: success Record_string.string-or-number_: additionalProperties: - $ref: "#/components/schemas/Record_string_string_or_number__value" + $ref: "#/components/schemas/GifSearchResponse_images_inner_inner" description: Construct a type with a set of properties K of type T properties: {} type: object @@ -9348,9 +15400,10 @@ components: localDateString: localDateString tos: true localDateHours: 6 + botId: botId productId: 1 questionValues: - key: Record_string_string_or_number__value + key: GifSearchResponse_images_inner_inner feedbackIds: - feedbackIds - feedbackIds @@ -9446,12 +15499,14 @@ components: type: array questionValues: additionalProperties: - $ref: "#/components/schemas/Record_string_string_or_number__value" + $ref: "#/components/schemas/GifSearchResponse_images_inner_inner" description: Construct a type with a set of properties K of type T properties: {} type: object tos: type: boolean + botId: + type: string required: - comment - commenterName @@ -9517,42 +15572,6 @@ components: - commentStatuses - status type: object - VoteResponseUser: - additionalProperties: false - example: - sessionId: sessionId - properties: - sessionId: - nullable: true - type: string - type: object - VoteResponse: - additionalProperties: false - example: - editKey: editKey - isVerified: true - voteId: voteId - user: - sessionId: sessionId - status: success - properties: - status: - enum: - - success - - failed - - pending-verification - type: string - voteId: - type: string - isVerified: - type: boolean - user: - $ref: "#/components/schemas/VoteResponseUser" - editKey: - type: string - required: - - status - type: object VoteBodyParams: additionalProperties: false example: @@ -9581,19 +15600,6 @@ components: - url - voteDir type: object - VoteDeleteResponse: - additionalProperties: false - example: - wasPendingVote: true - status: success - properties: - status: - $ref: "#/components/schemas/APIStatus" - wasPendingVote: - type: boolean - required: - - status - type: object GetCommentVoteUserNamesSuccessResponse: additionalProperties: false example: @@ -10723,6 +16729,15 @@ components: - 1 - 2 type: integer + ImportedAgentApprovalNotificationFrequency: + enum: + - -1 + - 0 + - 1 + - 2 + type: integer + AgentApprovalNotificationFrequency: + $ref: "#/components/schemas/ImportedAgentApprovalNotificationFrequency" User: additionalProperties: false example: @@ -10753,6 +16768,7 @@ components: adminNotificationFrequency: 2.3021358869347655 notificationFrequency: 5.637376656633329 isHelpRequestAdmin: true + agentApprovalNotificationFrequency: 7 displayName: displayName isBillingAdmin: true isAdminAdmin: true @@ -10769,14 +16785,14 @@ components: email: email displayLabel: displayLabel lastReplyNotificationSentDate: 2000-01-23T04:56:07.000+00:00 - karma: 9.301444243932576 - averageTicketAckTimeMS: 3.616076749251911 + karma: 3.616076749251911 + averageTicketAckTimeMS: 2.027123023002322 verified: true isFastCommentsHelpRequestAdmin: true signUpDate: 0 loginIdDate: 6 loginCount: 1 - profileCommentApprovalMode: 7.061401241503109 + profileCommentApprovalMode: 9.301444243932576 optedInNotifications: true tenantId: tenantId createdFromIpHashed: createdFromIpHashed @@ -10881,6 +16897,8 @@ components: adminNotificationFrequency: format: double type: number + agentApprovalNotificationFrequency: + $ref: "#/components/schemas/ImportedAgentApprovalNotificationFrequency" lastTenantNotificationSentDate: format: date-time type: string @@ -10972,6 +16990,7 @@ components: adminNotificationFrequency: 2.3021358869347655 notificationFrequency: 5.637376656633329 isHelpRequestAdmin: true + agentApprovalNotificationFrequency: 7 displayName: displayName isBillingAdmin: true isAdminAdmin: true @@ -10986,124 +17005,37 @@ components: countryCode: countryCode isAnalyticsAdmin: true email: email - displayLabel: displayLabel - lastReplyNotificationSentDate: 2000-01-23T04:56:07.000+00:00 - karma: 9.301444243932576 - averageTicketAckTimeMS: 3.616076749251911 - verified: true - isFastCommentsHelpRequestAdmin: true - signUpDate: 0 - loginIdDate: 6 - loginCount: 1 - profileCommentApprovalMode: 7.061401241503109 - optedInNotifications: true - tenantId: tenantId - createdFromIpHashed: createdFromIpHashed - optedInTenantNotifications: true - hideAccountCode: true - headerBackgroundSrc: headerBackgroundSrc - isSiteAdmin: true - isProfileDMDisabled: true - hasTwoFactor: true - username: username - isCustomizationAdmin: true - ignoredAddToMySiteMessages: true - status: success - properties: - status: - $ref: "#/components/schemas/APIStatus" - user: - $ref: "#/components/schemas/User" - required: - - status - - user - type: object - UserBadge: - additionalProperties: false - example: - displayLabel: displayLabel - backgroundColor: backgroundColor - borderColor: borderColor - badgeId: badgeId - description: description - threshold: 6 - type: 0 - receivedAt: 2000-01-23T04:56:07.000+00:00 - urlId: urlId - userId: userId - textColor: textColor - displayedOnComments: true - createdAt: 2000-01-23T04:56:07.000+00:00 - veteranUserThresholdMillis: 1 - cssClass: cssClass - _id: _id - fromTenantId: fromTenantId - displaySrc: displaySrc - order: 5 - properties: - _id: - type: string - userId: - type: string - badgeId: - type: string - fromTenantId: - type: string - createdAt: - format: date-time - type: string - type: - format: int32 - type: integer - threshold: - format: int64 - type: integer - description: - type: string - displayLabel: - type: string - displaySrc: - nullable: true - type: string - backgroundColor: - nullable: true - type: string - borderColor: - nullable: true - type: string - textColor: - nullable: true - type: string - cssClass: - nullable: true - type: string - veteranUserThresholdMillis: - format: int64 - type: integer - displayedOnComments: - type: boolean - receivedAt: - format: date-time - type: string - order: - format: int32 - type: integer - urlId: - nullable: true - type: string + displayLabel: displayLabel + lastReplyNotificationSentDate: 2000-01-23T04:56:07.000+00:00 + karma: 3.616076749251911 + averageTicketAckTimeMS: 2.027123023002322 + verified: true + isFastCommentsHelpRequestAdmin: true + signUpDate: 0 + loginIdDate: 6 + loginCount: 1 + profileCommentApprovalMode: 9.301444243932576 + optedInNotifications: true + tenantId: tenantId + createdFromIpHashed: createdFromIpHashed + optedInTenantNotifications: true + hideAccountCode: true + headerBackgroundSrc: headerBackgroundSrc + isSiteAdmin: true + isProfileDMDisabled: true + hasTwoFactor: true + username: username + isCustomizationAdmin: true + ignoredAddToMySiteMessages: true + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + user: + $ref: "#/components/schemas/User" required: - - _id - - badgeId - - createdAt - - description - - displayLabel - - displayedOnComments - - fromTenantId - - receivedAt - - threshold - - type - - userId - - veteranUserThresholdMillis + - status + - user type: object APIGetUserBadgeResponse: additionalProperties: false @@ -11267,13 +17199,6 @@ components: displayedOnComments: type: boolean type: object - Record_string.number_: - additionalProperties: - format: double - type: number - description: Construct a type with a set of properties K of type T - properties: {} - type: object UserBadgeProgress: additionalProperties: false example: @@ -12609,6 +18534,7 @@ components: adminNotificationFrequency: 2.3021358869347655 notificationFrequency: 5.637376656633329 isHelpRequestAdmin: true + agentApprovalNotificationFrequency: 7 displayName: displayName isBillingAdmin: true isAdminAdmin: true @@ -12625,14 +18551,14 @@ components: email: email displayLabel: displayLabel lastReplyNotificationSentDate: 2000-01-23T04:56:07.000+00:00 - karma: 9.301444243932576 - averageTicketAckTimeMS: 3.616076749251911 + karma: 3.616076749251911 + averageTicketAckTimeMS: 2.027123023002322 verified: true isFastCommentsHelpRequestAdmin: true signUpDate: 0 loginIdDate: 6 loginCount: 1 - profileCommentApprovalMode: 7.061401241503109 + profileCommentApprovalMode: 9.301444243932576 optedInNotifications: true tenantId: tenantId createdFromIpHashed: createdFromIpHashed @@ -12686,6 +18612,7 @@ components: adminNotificationFrequency: 2.3021358869347655 notificationFrequency: 5.637376656633329 isHelpRequestAdmin: true + agentApprovalNotificationFrequency: 7 displayName: displayName isBillingAdmin: true isAdminAdmin: true @@ -12702,14 +18629,14 @@ components: email: email displayLabel: displayLabel lastReplyNotificationSentDate: 2000-01-23T04:56:07.000+00:00 - karma: 9.301444243932576 - averageTicketAckTimeMS: 3.616076749251911 + karma: 3.616076749251911 + averageTicketAckTimeMS: 2.027123023002322 verified: true isFastCommentsHelpRequestAdmin: true signUpDate: 0 loginIdDate: 6 loginCount: 1 - profileCommentApprovalMode: 7.061401241503109 + profileCommentApprovalMode: 9.301444243932576 optedInNotifications: true tenantId: tenantId createdFromIpHashed: createdFromIpHashed @@ -12749,6 +18676,7 @@ components: adminNotificationFrequency: 2.3021358869347655 notificationFrequency: 5.637376656633329 isHelpRequestAdmin: true + agentApprovalNotificationFrequency: 7 displayName: displayName isBillingAdmin: true isAdminAdmin: true @@ -12765,14 +18693,14 @@ components: email: email displayLabel: displayLabel lastReplyNotificationSentDate: 2000-01-23T04:56:07.000+00:00 - karma: 9.301444243932576 - averageTicketAckTimeMS: 3.616076749251911 + karma: 3.616076749251911 + averageTicketAckTimeMS: 2.027123023002322 verified: true isFastCommentsHelpRequestAdmin: true signUpDate: 0 loginIdDate: 6 loginCount: 1 - profileCommentApprovalMode: 7.061401241503109 + profileCommentApprovalMode: 9.301444243932576 optedInNotifications: true tenantId: tenantId createdFromIpHashed: createdFromIpHashed @@ -12828,6 +18756,7 @@ components: adminNotificationFrequency: 2.3021358869347655 notificationFrequency: 5.637376656633329 isHelpRequestAdmin: true + agentApprovalNotificationFrequency: 7 displayName: displayName isBillingAdmin: true isAdminAdmin: true @@ -12844,14 +18773,14 @@ components: email: email displayLabel: displayLabel lastReplyNotificationSentDate: 2000-01-23T04:56:07.000+00:00 - karma: 9.301444243932576 - averageTicketAckTimeMS: 3.616076749251911 + karma: 3.616076749251911 + averageTicketAckTimeMS: 2.027123023002322 verified: true isFastCommentsHelpRequestAdmin: true signUpDate: 0 loginIdDate: 6 loginCount: 1 - profileCommentApprovalMode: 7.061401241503109 + profileCommentApprovalMode: 9.301444243932576 optedInNotifications: true tenantId: tenantId createdFromIpHashed: createdFromIpHashed @@ -13154,10 +19083,12 @@ components: flexMinimumCostCents: 3.353193347011243 flexCommentUnit: 1.1730742509559433 maxMonthlyAPICredits: 5.962133916683182 + templateId: templateId createdAt: 2000-01-23T04:56:07.000+00:00 flexManagedTenantCostCents: 3.0937452626664474 flexSmallWidgetsCreditUnit: 8.762042012749001 yearlyStripePlanId: yearlyStripePlanId + aiAgentDailyBudgetCents: 4.652396432933246 maxSSOUsers: 3.616076749251911 hasFlexPricing: true flexSSOModeratorCostCents: 7.058770351582356 @@ -13173,6 +19104,7 @@ components: flexLLMCostCents: 5.944895607614016 name: name _id: _id + aiAgentMonthlyBudgetCents: 8.969578798196912 flexModeratorUnit: 6.438423552598547 flexChatGPTCostCents: 6.778324963048013 flexSSOAdminCostCents: 7.143538047012306 @@ -13181,12 +19113,14 @@ components: flexSSOModeratorUnit: 6.519180951018382 maxDomains: 4.145608029883936 maxMonthlyEventLogRequests: 1.2315135367772556 + maxAIAgents: 0.10263654006109402 flexDomainUnit: 2.8841621266687802 hasWhiteLabeling: true flexChatGPTUnit: 6.878052220127876 maxMonthlyComments: 2.3021358869347655 maxModerators: 2.027123023002322 hasAuditing: true + hasAIAgents: true flexSSOUserUnit: 5.025004791520295 maxMonthlyPageLoads: 1.4658129805029452 flexDomainCostCents: 1.284659006116532 @@ -13217,6 +19151,8 @@ components: createdAt: format: date-time type: string + templateId: + type: string monthlyCostUSD: format: double nullable: true @@ -13367,6 +19303,17 @@ components: type: number isSSOBillingMonthlyActiveUsers: type: boolean + hasAIAgents: + type: boolean + maxAIAgents: + format: double + type: number + aiAgentDailyBudgetCents: + format: double + type: number + aiAgentMonthlyBudgetCents: + format: double + type: number required: - _id - createdAt @@ -13405,10 +19352,12 @@ components: flexMinimumCostCents: 3.353193347011243 flexCommentUnit: 1.1730742509559433 maxMonthlyAPICredits: 5.962133916683182 + templateId: templateId createdAt: 2000-01-23T04:56:07.000+00:00 flexManagedTenantCostCents: 3.0937452626664474 flexSmallWidgetsCreditUnit: 8.762042012749001 yearlyStripePlanId: yearlyStripePlanId + aiAgentDailyBudgetCents: 4.652396432933246 maxSSOUsers: 3.616076749251911 hasFlexPricing: true flexSSOModeratorCostCents: 7.058770351582356 @@ -13424,6 +19373,7 @@ components: flexLLMCostCents: 5.944895607614016 name: name _id: _id + aiAgentMonthlyBudgetCents: 8.969578798196912 flexModeratorUnit: 6.438423552598547 flexChatGPTCostCents: 6.778324963048013 flexSSOAdminCostCents: 7.143538047012306 @@ -13432,12 +19382,14 @@ components: flexSSOModeratorUnit: 6.519180951018382 maxDomains: 4.145608029883936 maxMonthlyEventLogRequests: 1.2315135367772556 + maxAIAgents: 0.10263654006109402 flexDomainUnit: 2.8841621266687802 hasWhiteLabeling: true flexChatGPTUnit: 6.878052220127876 maxMonthlyComments: 2.3021358869347655 maxModerators: 2.027123023002322 hasAuditing: true + hasAIAgents: true flexSSOUserUnit: 5.025004791520295 maxMonthlyPageLoads: 1.4658129805029452 flexDomainCostCents: 1.284659006116532 @@ -13477,10 +19429,12 @@ components: flexMinimumCostCents: 3.353193347011243 flexCommentUnit: 1.1730742509559433 maxMonthlyAPICredits: 5.962133916683182 + templateId: templateId createdAt: 2000-01-23T04:56:07.000+00:00 flexManagedTenantCostCents: 3.0937452626664474 flexSmallWidgetsCreditUnit: 8.762042012749001 yearlyStripePlanId: yearlyStripePlanId + aiAgentDailyBudgetCents: 4.652396432933246 maxSSOUsers: 3.616076749251911 hasFlexPricing: true flexSSOModeratorCostCents: 7.058770351582356 @@ -13496,6 +19450,7 @@ components: flexLLMCostCents: 5.944895607614016 name: name _id: _id + aiAgentMonthlyBudgetCents: 8.969578798196912 flexModeratorUnit: 6.438423552598547 flexChatGPTCostCents: 6.778324963048013 flexSSOAdminCostCents: 7.143538047012306 @@ -13504,12 +19459,14 @@ components: flexSSOModeratorUnit: 6.519180951018382 maxDomains: 4.145608029883936 maxMonthlyEventLogRequests: 1.2315135367772556 + maxAIAgents: 0.10263654006109402 flexDomainUnit: 2.8841621266687802 hasWhiteLabeling: true flexChatGPTUnit: 6.878052220127876 maxMonthlyComments: 2.3021358869347655 maxModerators: 2.027123023002322 hasAuditing: true + hasAIAgents: true flexSSOUserUnit: 5.025004791520295 maxMonthlyPageLoads: 1.4658129805029452 flexDomainCostCents: 1.284659006116532 @@ -13535,10 +19492,12 @@ components: flexMinimumCostCents: 3.353193347011243 flexCommentUnit: 1.1730742509559433 maxMonthlyAPICredits: 5.962133916683182 + templateId: templateId createdAt: 2000-01-23T04:56:07.000+00:00 flexManagedTenantCostCents: 3.0937452626664474 flexSmallWidgetsCreditUnit: 8.762042012749001 yearlyStripePlanId: yearlyStripePlanId + aiAgentDailyBudgetCents: 4.652396432933246 maxSSOUsers: 3.616076749251911 hasFlexPricing: true flexSSOModeratorCostCents: 7.058770351582356 @@ -13554,6 +19513,7 @@ components: flexLLMCostCents: 5.944895607614016 name: name _id: _id + aiAgentMonthlyBudgetCents: 8.969578798196912 flexModeratorUnit: 6.438423552598547 flexChatGPTCostCents: 6.778324963048013 flexSSOAdminCostCents: 7.143538047012306 @@ -13562,12 +19522,14 @@ components: flexSSOModeratorUnit: 6.519180951018382 maxDomains: 4.145608029883936 maxMonthlyEventLogRequests: 1.2315135367772556 + maxAIAgents: 0.10263654006109402 flexDomainUnit: 2.8841621266687802 hasWhiteLabeling: true flexChatGPTUnit: 6.878052220127876 maxMonthlyComments: 2.3021358869347655 maxModerators: 2.027123023002322 hasAuditing: true + hasAIAgents: true flexSSOUserUnit: 5.025004791520295 maxMonthlyPageLoads: 1.4658129805029452 flexDomainCostCents: 1.284659006116532 @@ -13609,10 +19571,12 @@ components: flexMinimumCostCents: 3.353193347011243 flexCommentUnit: 1.1730742509559433 maxMonthlyAPICredits: 5.962133916683182 + templateId: templateId createdAt: 2000-01-23T04:56:07.000+00:00 flexManagedTenantCostCents: 3.0937452626664474 flexSmallWidgetsCreditUnit: 8.762042012749001 yearlyStripePlanId: yearlyStripePlanId + aiAgentDailyBudgetCents: 4.652396432933246 maxSSOUsers: 3.616076749251911 hasFlexPricing: true flexSSOModeratorCostCents: 7.058770351582356 @@ -13628,6 +19592,7 @@ components: flexLLMCostCents: 5.944895607614016 name: name _id: _id + aiAgentMonthlyBudgetCents: 8.969578798196912 flexModeratorUnit: 6.438423552598547 flexChatGPTCostCents: 6.778324963048013 flexSSOAdminCostCents: 7.143538047012306 @@ -13636,12 +19601,14 @@ components: flexSSOModeratorUnit: 6.519180951018382 maxDomains: 4.145608029883936 maxMonthlyEventLogRequests: 1.2315135367772556 + maxAIAgents: 0.10263654006109402 flexDomainUnit: 2.8841621266687802 hasWhiteLabeling: true flexChatGPTUnit: 6.878052220127876 maxMonthlyComments: 2.3021358869347655 maxModerators: 2.027123023002322 hasAuditing: true + hasAIAgents: true flexSSOUserUnit: 5.025004791520295 maxMonthlyPageLoads: 1.4658129805029452 flexDomainCostCents: 1.284659006116532 @@ -14905,6 +20872,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -14968,6 +20936,8 @@ components: trustFactor: format: double type: number + source: + type: string rule: $ref: "#/components/schemas/SpamRule" userId: @@ -15081,6 +21051,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -15174,6 +21145,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -15227,6 +21199,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -15307,6 +21280,7 @@ components: pageNumberOF: 2 localDateHours: 0 viewCount: 6 + botId: botId votesUp: 1 displayLabel: displayLabel requiresVerification: true @@ -15329,7 +21303,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -15338,7 +21312,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -15558,6 +21532,8 @@ components: tosAcceptedAt: format: date-time type: string + botId: + type: string required: - _id - approved @@ -16174,6 +22150,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -16227,6 +22204,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -16307,6 +22285,7 @@ components: pageNumberOF: 2 localDateHours: 0 viewCount: 6 + botId: botId votesUp: 1 displayLabel: displayLabel requiresVerification: true @@ -16329,7 +22308,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -16338,7 +22317,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -16461,6 +22440,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -16514,6 +22494,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -16594,6 +22575,7 @@ components: pageNumberOF: 2 localDateHours: 0 viewCount: 6 + botId: botId votesUp: 1 displayLabel: displayLabel requiresVerification: true @@ -16616,7 +22598,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -16625,7 +22607,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -16697,6 +22679,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -16750,6 +22733,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -16830,6 +22814,7 @@ components: pageNumberOF: 2 localDateHours: 0 viewCount: 6 + botId: botId votesUp: 1 displayLabel: displayLabel requiresVerification: true @@ -16852,7 +22837,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -16861,7 +22846,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -17429,7 +23414,7 @@ components: $ref: "#/components/schemas/APIStatus" results: items: - $ref: "#/components/schemas/AddHashTag_200_response" + $ref: "#/components/schemas/BulkCreateHashTagsResponse_results_inner" type: array required: - results @@ -18153,7 +24138,7 @@ components: APICommentBase: additionalProperties: false properties: - _id: + id: type: string aiDeterminedSpam: type: boolean @@ -18307,12 +24292,12 @@ components: nullable: true type: integer required: - - _id - approved - comment - commentHTML - commenterName - date + - id - locale - tenantId - url @@ -18350,6 +24335,7 @@ components: isLocked: true aiDeterminedSpam: true reviewed: true + id: id fromProductId: 6 flagCount: 0 hasCode: true @@ -18377,7 +24363,6 @@ components: type: user sent: true avatarSrc: avatarSrc - _id: _id isSpam: true externalParentId: externalParentId votesDown: 2 @@ -18408,7 +24393,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -18417,7 +24402,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -18449,6 +24434,7 @@ components: isLocked: true aiDeterminedSpam: true reviewed: true + id: id fromProductId: 6 flagCount: 0 hasCode: true @@ -18476,7 +24462,6 @@ components: type: user sent: true avatarSrc: avatarSrc - _id: _id isSpam: true externalParentId: externalParentId votesDown: 2 @@ -18507,7 +24492,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -18516,7 +24501,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -18558,6 +24543,7 @@ components: isLocked: true aiDeterminedSpam: true reviewed: true + id: id fromProductId: 6 flagCount: 0 hasCode: true @@ -18585,7 +24571,6 @@ components: type: user sent: true avatarSrc: avatarSrc - _id: _id isSpam: true externalParentId: externalParentId votesDown: 2 @@ -18616,7 +24601,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -18625,7 +24610,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -18653,6 +24638,7 @@ components: isLocked: true aiDeterminedSpam: true reviewed: true + id: id fromProductId: 6 flagCount: 0 hasCode: true @@ -18680,7 +24666,6 @@ components: type: user sent: true avatarSrc: avatarSrc - _id: _id isSpam: true externalParentId: externalParentId votesDown: 2 @@ -18711,7 +24696,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -18720,7 +24705,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -18902,34 +24887,13 @@ components: type: string type: array type: object - DeleteCommentAction: - enum: - - already-deleted - - hard-removed - - anonymized - type: string - DeleteCommentResult: - example: - action: already-deleted - status: success - properties: - action: - $ref: "#/components/schemas/DeleteCommentAction" - status: - $ref: "#/components/schemas/APIStatus" - required: - - action - - status - type: object - SaveCommentResponse: + APISaveCommentResponse: additionalProperties: false example: comment: - date: 2000-01-23T04:56:07.000+00:00 - editKey: editKey - pageNumber: 5 + date: 9.301444243932576 pageTitle: pageTitle - rating: 3.616076749251911 + rating: 5.962133916683182 approved: true hashTags: - retain: true @@ -18944,138 +24908,24 @@ components: notificationSentForParentTenant: true verifiedDate: 2000-01-23T04:56:07.000+00:00 isLocked: true - groupIds: - - groupIds - - groupIds aiDeterminedSpam: true reviewed: true - logs: - - d: 2000-01-23T04:56:07.000+00:00 - t: 7 - da: - votesDownAfter: 9.369310271410669 - repeatAction: 6 - reason: 8 - votesUpBefore: 1.1730742509559433 - tenantBadgeId: tenantBadgeId - badgeId: badgeId - invalidLocale: invalidLocale - reviewedBefore: true - reviewedAfter: true - trustFactorBefore: 6.438423552598547 - trustFactor: 1.0246457001441578 - detectedLanguage: detectedLanguage - engineTokens: 1.2315135367772556 - rule: - commentContains: commentContains - actions: - - spam - - spam - expireBefore: 2000-01-23T04:56:07.000+00:00 - textBefore: textBefore - detectedLocale: detectedLocale - locale: locale - spamBefore: true - votesBefore: 7.457744773683766 - votesDownBefore: 4.965218492984954 - spamAfter: true - foundUser: true - textAfter: textAfter - engine: engine - engineResponse: engineResponse - trustFactorAfter: 3.5571952270680973 - approvedBefore: true - notificationCount: 6.84685269835264 - subscribers: 1.4894159098541704 - otherData: "" - clearContent: true - verified: true - expireAfter: 2000-01-23T04:56:07.000+00:00 - flagCountBefore: 9.018348186070783 - userId: userId - approvedAfter: true - phrase: phrase - isDeletedUser: true - votesAfter: 5.025004791520295 - votesUpAfter: 9.965781217890562 - permanentFlag: permanent - wasLoggedIn: true - badWord: badWord - word: word - referencedCommentId: referencedCommentId - - d: 2000-01-23T04:56:07.000+00:00 - t: 7 - da: - votesDownAfter: 9.369310271410669 - repeatAction: 6 - reason: 8 - votesUpBefore: 1.1730742509559433 - tenantBadgeId: tenantBadgeId - badgeId: badgeId - invalidLocale: invalidLocale - reviewedBefore: true - reviewedAfter: true - trustFactorBefore: 6.438423552598547 - trustFactor: 1.0246457001441578 - detectedLanguage: detectedLanguage - engineTokens: 1.2315135367772556 - rule: - commentContains: commentContains - actions: - - spam - - spam - expireBefore: 2000-01-23T04:56:07.000+00:00 - textBefore: textBefore - detectedLocale: detectedLocale - locale: locale - spamBefore: true - votesBefore: 7.457744773683766 - votesDownBefore: 4.965218492984954 - spamAfter: true - foundUser: true - textAfter: textAfter - engine: engine - engineResponse: engineResponse - trustFactorAfter: 3.5571952270680973 - approvedBefore: true - notificationCount: 6.84685269835264 - subscribers: 1.4894159098541704 - otherData: "" - clearContent: true - verified: true - expireAfter: 2000-01-23T04:56:07.000+00:00 - flagCountBefore: 9.018348186070783 - userId: userId - approvedAfter: true - phrase: phrase - isDeletedUser: true - votesAfter: 5.025004791520295 - votesUpAfter: 9.965781217890562 - permanentFlag: permanent - wasLoggedIn: true - badWord: badWord - word: word - referencedCommentId: referencedCommentId - fromProductId: 2 - flagCount: 9 - pageNumberNF: 7 + id: id + fromProductId: 6 + flagCount: 0 hasCode: true feedbackIds: - feedbackIds - feedbackIds - autoplayJobId: autoplayJobId - ipHash: ipHash - fromOfflineRestore: true urlIdRaw: urlIdRaw moderationGroupIds: - moderationGroupIds - moderationGroupIds - didProcessBadges: true isDeletedUser: true meta: - wpId: wpId wpUserId: wpUserId wpPostId: wpPostId + domain: "" mentions: - rawTag: rawTag id: id @@ -19087,39 +24937,29 @@ components: tag: tag type: user sent: true - domain: "" avatarSrc: avatarSrc - _id: _id isSpam: true - veteranBadgeProcessed: veteranBadgeProcessed externalParentId: externalParentId - votesDown: 5 + votesDown: 2 commenterName: commenterName isByModerator: true commenterLink: commenterLink - urlId: urlId locale: locale + urlId: urlId commentHTML: commentHTML isDeleted: true - imported: true - permNotSpam: true - pageNumberOF: 2 - localDateHours: 0 - viewCount: 6 - votesUp: 1 + localDateHours: 1 + votesUp: 7 displayLabel: displayLabel - requiresVerification: true isPinned: true verified: true anonUserId: anonUserId externalId: externalId hasLinks: true - autoplayDelayMS: 4 - tosAcceptedAt: 2000-01-23T04:56:07.000+00:00 expireAt: 2000-01-23T04:56:07.000+00:00 userId: "" - url: url parentId: parentId + url: url commenterEmail: commenterEmail badges: - displayLabel: displayLabel @@ -19128,7 +24968,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -19137,16 +24977,14 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true tenantId: tenantId hasImages: true comment: comment - votes: 6 - isBannedUser: true - verificationId: verificationId + votes: 5 isByAdmin: true moduleData: key: "" @@ -19156,7 +24994,7 @@ components: status: $ref: "#/components/schemas/APIStatus" comment: - $ref: "#/components/schemas/FComment" + $ref: "#/components/schemas/APIComment" user: allOf: - $ref: "#/components/schemas/UserSessionInfo" @@ -19196,10 +25034,11 @@ components: tos: true reviewed: true localDateHours: 6 + botId: botId votesUp: 9 productId: 1 questionValues: - key: Record_string_string_or_number__value + key: GifSearchResponse_images_inner_inner isPinned: true ip: ip feedbackIds: @@ -19300,12 +25139,14 @@ components: type: array questionValues: additionalProperties: - $ref: "#/components/schemas/Record_string_string_or_number__value" + $ref: "#/components/schemas/GifSearchResponse_images_inner_inner" description: Construct a type with a set of properties K of type T properties: {} type: object tos: type: boolean + botId: + type: string approved: type: boolean domain: @@ -19549,14 +25390,32 @@ components: properties: status: $ref: "#/components/schemas/APIStatus" - data: + data: + items: + $ref: "#/components/schemas/AggregationItem" + type: array + stats: + $ref: "#/components/schemas/AggregationResponse_stats" + required: + - data + - status + type: object + AggregationAPIError: + additionalProperties: false + properties: + status: + $ref: "#/components/schemas/APIStatus" + reason: + type: string + code: + type: string + validResourceNames: items: - $ref: "#/components/schemas/AggregationItem" + type: string type: array - stats: - $ref: "#/components/schemas/AggregationResponse_stats" required: - - data + - code + - reason - status type: object QueryPredicate: @@ -19667,32 +25526,21 @@ components: - operations - resourceName type: object - SearchUsers_200_response: - anyOf: - - $ref: "#/components/schemas/SearchUsersSectionedResponse" - - $ref: "#/components/schemas/SearchUsersResponse" - - $ref: "#/components/schemas/APIError" - GetUserPresenceStatuses_200_response: + UpdateUserNotificationStatusResponse: anyOf: - - $ref: "#/components/schemas/GetUserPresenceStatusesResponse" - - $ref: "#/components/schemas/APIError" - GetUserNotifications_200_response: - anyOf: - - $ref: "#/components/schemas/GetMyNotificationsResponse" - - $ref: "#/components/schemas/APIError" - ResetUserNotifications_200_response: - anyOf: - - $ref: "#/components/schemas/ResetUserNotificationsResponse" - - $ref: "#/components/schemas/APIError" - GetUserNotificationCount_200_response: + - $ref: "#/components/schemas/UserNotificationWriteResponse" + - $ref: "#/components/schemas/IgnoredResponse" + title: UpdateUserNotificationStatusResponse + UpdateUserNotificationCommentSubscriptionStatusResponse: anyOf: - - $ref: "#/components/schemas/GetUserNotificationCountResponse" - - $ref: "#/components/schemas/APIError" - UpdateUserNotificationStatus_200_response: + - $ref: "#/components/schemas/UserNotificationWriteResponse" + - $ref: "#/components/schemas/IgnoredResponse" + title: UpdateUserNotificationCommentSubscriptionStatusResponse + UpdateUserNotificationPageSubscriptionStatusResponse: anyOf: - $ref: "#/components/schemas/UserNotificationWriteResponse" - $ref: "#/components/schemas/IgnoredResponse" - - $ref: "#/components/schemas/APIError" + title: UpdateUserNotificationPageSubscriptionStatusResponse UploadImage_request: properties: file: @@ -19701,27 +25549,22 @@ components: required: - file type: object - FlagCommentPublic_200_response: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - GetFeedPostsPublic_200_response: - anyOf: - - $ref: "#/components/schemas/PublicFeedPostsResponse" - - $ref: "#/components/schemas/APIError" - CreateFeedPostPublic_200_response: + PostRemoveCommentResponse: anyOf: - - $ref: "#/components/schemas/CreateFeedPostResponse" - - $ref: "#/components/schemas/APIError" - ReactFeedPostPublic_200_response: + - $ref: "#/components/schemas/DeleteCommentResult" + - $ref: "#/components/schemas/RemoveCommentActionResponse" + title: PostRemoveCommentResponse + GetGifsTrendingResponse: anyOf: - - $ref: "#/components/schemas/ReactFeedPostResponse" - - $ref: "#/components/schemas/APIError" - GetUserReactsPublic_200_response: + - $ref: "#/components/schemas/GifSearchResponse" + - $ref: "#/components/schemas/GifSearchInternalError" + title: GetGifsTrendingResponse + GetGifsSearchResponse: anyOf: - - $ref: "#/components/schemas/UserReactsResponse" - - $ref: "#/components/schemas/APIError" - DeleteFeedPostPublic_200_response_anyOf: + - $ref: "#/components/schemas/GifSearchResponse" + - $ref: "#/components/schemas/GifSearchInternalError" + title: GetGifsSearchResponse + DeleteFeedPostPublicResponse: example: status: success properties: @@ -19729,72 +25572,9 @@ components: $ref: "#/components/schemas/APIStatus" required: - status + title: DeleteFeedPostPublicResponse type: object - DeleteFeedPostPublic_200_response: - anyOf: - - $ref: "#/components/schemas/DeleteFeedPostPublic_200_response_anyOf" - - $ref: "#/components/schemas/APIError" - GetFeedPostsStats_200_response: - anyOf: - - $ref: "#/components/schemas/FeedPostsStatsResponse" - - $ref: "#/components/schemas/APIError" - GetEventLog_200_response: - anyOf: - - $ref: "#/components/schemas/GetEventLogResponse" - - $ref: "#/components/schemas/APIError" - GetCommentText_200_response: - anyOf: - - $ref: "#/components/schemas/PublicAPIGetCommentTextResponse" - - $ref: "#/components/schemas/APIError" - SetCommentText_200_response: - anyOf: - - $ref: "#/components/schemas/PublicAPISetCommentTextResponse" - - $ref: "#/components/schemas/APIError" - GetCommentsPublic_200_response: - anyOf: - - $ref: "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" - - $ref: "#/components/schemas/APIError" - CreateCommentPublic_200_response: - anyOf: - - $ref: "#/components/schemas/SaveCommentsResponseWithPresence" - - $ref: "#/components/schemas/APIError" - DeleteCommentPublic_200_response: - anyOf: - - $ref: "#/components/schemas/PublicAPIDeleteCommentResponse" - - $ref: "#/components/schemas/APIError" - CheckedCommentsForBlocked_200_response: - anyOf: - - $ref: "#/components/schemas/CheckBlockedCommentsResponse" - - $ref: "#/components/schemas/APIError" - VoteComment_200_response: - anyOf: - - $ref: "#/components/schemas/VoteResponse" - - $ref: "#/components/schemas/APIError" - DeleteCommentVote_200_response: - anyOf: - - $ref: "#/components/schemas/VoteDeleteResponse" - - $ref: "#/components/schemas/APIError" - GetCommentVoteUserNames_200_response: - anyOf: - - $ref: "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" - - $ref: "#/components/schemas/APIError" - PinComment_200_response: - anyOf: - - $ref: "#/components/schemas/ChangeCommentPinStatusResponse" - - $ref: "#/components/schemas/APIError" - LockComment_200_response: - anyOf: - - $ref: "#/components/schemas/APIError" - - $ref: "#/components/schemas/APIEmptyResponse" - BlockFromCommentPublic_200_response: - anyOf: - - $ref: "#/components/schemas/BlockSuccess" - - $ref: "#/components/schemas/APIError" - UnBlockCommentPublic_200_response: - anyOf: - - $ref: "#/components/schemas/UnblockSuccess" - - $ref: "#/components/schemas/APIError" - GetSSOUsers_200_response: + GetSSOUsersResponse: example: users: - displayLabel: displayLabel @@ -19852,221 +25632,17 @@ components: required: - status - users + title: GetSSOUsersResponse type: object - GetVotes_200_response: - anyOf: - - $ref: "#/components/schemas/GetVotesResponse" - - $ref: "#/components/schemas/APIError" - GetVotesForUser_200_response: - anyOf: - - $ref: "#/components/schemas/GetVotesForUserResponse" - - $ref: "#/components/schemas/APIError" - GetUser_200_response: - anyOf: - - $ref: "#/components/schemas/GetUserResponse" - - $ref: "#/components/schemas/APIError" - GetUserBadge_200_response: - anyOf: - - $ref: "#/components/schemas/APIGetUserBadgeResponse" - - $ref: "#/components/schemas/APIError" - UpdateUserBadge_200_response: - anyOf: - - $ref: "#/components/schemas/APIEmptySuccessResponse" - - $ref: "#/components/schemas/APIError" - GetUserBadges_200_response: - anyOf: - - $ref: "#/components/schemas/APIGetUserBadgesResponse" - - $ref: "#/components/schemas/APIError" - CreateUserBadge_200_response: - anyOf: - - $ref: "#/components/schemas/APICreateUserBadgeResponse" - - $ref: "#/components/schemas/APIError" - GetUserBadgeProgressById_200_response: - anyOf: - - $ref: "#/components/schemas/APIGetUserBadgeProgressResponse" - - $ref: "#/components/schemas/APIError" - GetUserBadgeProgressList_200_response: - anyOf: - - $ref: "#/components/schemas/APIGetUserBadgeProgressListResponse" - - $ref: "#/components/schemas/APIError" - GetTickets_200_response: - anyOf: - - $ref: "#/components/schemas/GetTicketsResponse" - - $ref: "#/components/schemas/APIError" - CreateTicket_200_response: - anyOf: - - $ref: "#/components/schemas/CreateTicketResponse" - - $ref: "#/components/schemas/APIError" - GetTicket_200_response: - anyOf: - - $ref: "#/components/schemas/GetTicketResponse" - - $ref: "#/components/schemas/APIError" - ChangeTicketState_200_response: - anyOf: - - $ref: "#/components/schemas/ChangeTicketStateResponse" - - $ref: "#/components/schemas/APIError" - GetTenant_200_response: - anyOf: - - $ref: "#/components/schemas/GetTenantResponse" - - $ref: "#/components/schemas/APIError" - GetTenants_200_response: - anyOf: - - $ref: "#/components/schemas/GetTenantsResponse" - - $ref: "#/components/schemas/APIError" - CreateTenant_200_response: - anyOf: - - $ref: "#/components/schemas/CreateTenantResponse" - - $ref: "#/components/schemas/APIError" - GetTenantUser_200_response: - anyOf: - - $ref: "#/components/schemas/GetTenantUserResponse" - - $ref: "#/components/schemas/APIError" - GetTenantUsers_200_response: - anyOf: - - $ref: "#/components/schemas/GetTenantUsersResponse" - - $ref: "#/components/schemas/APIError" - CreateTenantUser_200_response: - anyOf: - - $ref: "#/components/schemas/CreateTenantUserResponse" - - $ref: "#/components/schemas/APIError" - GetTenantPackage_200_response: - anyOf: - - $ref: "#/components/schemas/GetTenantPackageResponse" - - $ref: "#/components/schemas/APIError" - GetTenantPackages_200_response: - anyOf: - - $ref: "#/components/schemas/GetTenantPackagesResponse" - - $ref: "#/components/schemas/APIError" - CreateTenantPackage_200_response: - anyOf: - - $ref: "#/components/schemas/CreateTenantPackageResponse" - - $ref: "#/components/schemas/APIError" - GetTenantDailyUsages_200_response: - anyOf: - - $ref: "#/components/schemas/GetTenantDailyUsagesResponse" - - $ref: "#/components/schemas/APIError" - GetQuestionResult_200_response: - anyOf: - - $ref: "#/components/schemas/GetQuestionResultResponse" - - $ref: "#/components/schemas/APIError" - GetQuestionResults_200_response: - anyOf: - - $ref: "#/components/schemas/GetQuestionResultsResponse" - - $ref: "#/components/schemas/APIError" - CreateQuestionResult_200_response: - anyOf: - - $ref: "#/components/schemas/CreateQuestionResultResponse" - - $ref: "#/components/schemas/APIError" - AggregateQuestionResults_200_response: - anyOf: - - $ref: "#/components/schemas/AggregateQuestionResultsResponse" - - $ref: "#/components/schemas/APIError" - BulkAggregateQuestionResults_200_response: - anyOf: - - $ref: "#/components/schemas/BulkAggregateQuestionResultsResponse" - - $ref: "#/components/schemas/APIError" - CombineCommentsWithQuestionResults_200_response: - anyOf: - - $ref: "#/components/schemas/CombineQuestionResultsWithCommentsResponse" - - $ref: "#/components/schemas/APIError" - GetQuestionConfig_200_response: - anyOf: - - $ref: "#/components/schemas/GetQuestionConfigResponse" - - $ref: "#/components/schemas/APIError" - GetQuestionConfigs_200_response: - anyOf: - - $ref: "#/components/schemas/GetQuestionConfigsResponse" - - $ref: "#/components/schemas/APIError" - CreateQuestionConfig_200_response: - anyOf: - - $ref: "#/components/schemas/CreateQuestionConfigResponse" - - $ref: "#/components/schemas/APIError" - GetPendingWebhookEvents_200_response: - anyOf: - - $ref: "#/components/schemas/GetPendingWebhookEventsResponse" - - $ref: "#/components/schemas/APIError" - GetPendingWebhookEventCount_200_response: - anyOf: - - $ref: "#/components/schemas/GetPendingWebhookEventCountResponse" - - $ref: "#/components/schemas/APIError" - GetNotifications_200_response: - anyOf: - - $ref: "#/components/schemas/GetNotificationsResponse" - - $ref: "#/components/schemas/APIError" - GetNotificationCount_200_response: - anyOf: - - $ref: "#/components/schemas/GetNotificationCountResponse" - - $ref: "#/components/schemas/APIError" - GetCachedNotificationCount_200_response: - anyOf: - - $ref: "#/components/schemas/GetCachedNotificationCountResponse" - - $ref: "#/components/schemas/APIError" - GetModerator_200_response: - anyOf: - - $ref: "#/components/schemas/GetModeratorResponse" - - $ref: "#/components/schemas/APIError" - GetModerators_200_response: - anyOf: - - $ref: "#/components/schemas/GetModeratorsResponse" - - $ref: "#/components/schemas/APIError" - CreateModerator_200_response: - anyOf: - - $ref: "#/components/schemas/CreateModeratorResponse" - - $ref: "#/components/schemas/APIError" - GetHashTags_200_response: - anyOf: - - $ref: "#/components/schemas/GetHashTagsResponse" - - $ref: "#/components/schemas/APIError" - AddHashTag_200_response: - anyOf: - - $ref: "#/components/schemas/CreateHashTagResponse" - - $ref: "#/components/schemas/APIError" - AddHashTagsBulk_200_response: - anyOf: - - $ref: "#/components/schemas/BulkCreateHashTagsResponse" - - $ref: "#/components/schemas/APIError" - DeleteHashTag_request: + DeleteHashTagRequestBody: + example: + tenantId: tenantId properties: tenantId: type: string + title: DeleteHashTagRequestBody type: object - PatchHashTag_200_response: - anyOf: - - $ref: "#/components/schemas/UpdateHashTagResponse" - - $ref: "#/components/schemas/APIError" - GetFeedPosts_200_response: - anyOf: - - $ref: "#/components/schemas/GetFeedPostsResponse" - - $ref: "#/components/schemas/APIError" - CreateFeedPost_200_response: - anyOf: - - $ref: "#/components/schemas/CreateFeedPostsResponse" - - $ref: "#/components/schemas/APIError" - GetEmailTemplateDefinitions_200_response: - anyOf: - - $ref: "#/components/schemas/GetEmailTemplateDefinitionsResponse" - - $ref: "#/components/schemas/APIError" - GetEmailTemplateRenderErrors_200_response: - anyOf: - - $ref: "#/components/schemas/GetEmailTemplateRenderErrorsResponse" - - $ref: "#/components/schemas/APIError" - GetEmailTemplate_200_response: - anyOf: - - $ref: "#/components/schemas/GetEmailTemplateResponse" - - $ref: "#/components/schemas/APIError" - GetEmailTemplates_200_response: - anyOf: - - $ref: "#/components/schemas/GetEmailTemplatesResponse" - - $ref: "#/components/schemas/APIError" - CreateEmailTemplate_200_response: - anyOf: - - $ref: "#/components/schemas/CreateEmailTemplateResponse" - - $ref: "#/components/schemas/APIError" - RenderEmailTemplate_200_response: - anyOf: - - $ref: "#/components/schemas/RenderEmailTemplateResponse" - - $ref: "#/components/schemas/APIError" - GetDomainConfigs_200_response_anyOf: + GetDomainConfigsResponse_anyOf: example: configurations: "" status: "" @@ -20077,7 +25653,7 @@ components: - configurations - status type: object - GetDomainConfigs_200_response_anyOf_1: + GetDomainConfigsResponse_anyOf_1: example: reason: reason code: code @@ -20093,11 +25669,12 @@ components: - reason - status type: object - GetDomainConfigs_200_response: + GetDomainConfigsResponse: anyOf: - - $ref: "#/components/schemas/GetDomainConfigs_200_response_anyOf" - - $ref: "#/components/schemas/GetDomainConfigs_200_response_anyOf_1" - AddDomainConfig_200_response_anyOf: + - $ref: "#/components/schemas/GetDomainConfigsResponse_anyOf" + - $ref: "#/components/schemas/GetDomainConfigsResponse_anyOf_1" + title: GetDomainConfigsResponse + AddDomainConfigResponse_anyOf: example: configuration: "" status: "" @@ -20108,46 +25685,120 @@ components: - configuration - status type: object - AddDomainConfig_200_response: + AddDomainConfigResponse: anyOf: - - $ref: "#/components/schemas/GetDomainConfigs_200_response_anyOf_1" - - $ref: "#/components/schemas/AddDomainConfig_200_response_anyOf" - GetDomainConfig_200_response: + - $ref: "#/components/schemas/GetDomainConfigsResponse_anyOf_1" + - $ref: "#/components/schemas/AddDomainConfigResponse_anyOf" + title: AddDomainConfigResponse + GetDomainConfigResponse: anyOf: - - $ref: "#/components/schemas/AddDomainConfig_200_response_anyOf" - - $ref: "#/components/schemas/GetDomainConfigs_200_response_anyOf_1" - DeleteDomainConfig_200_response: + - $ref: "#/components/schemas/AddDomainConfigResponse_anyOf" + - $ref: "#/components/schemas/GetDomainConfigsResponse_anyOf_1" + title: GetDomainConfigResponse + DeleteDomainConfigResponse: example: status: "" properties: status: {} required: - status + title: DeleteDomainConfigResponse type: object - GetComment_200_response: + PutDomainConfigResponse: anyOf: - - $ref: "#/components/schemas/APIGetCommentResponse" - - $ref: "#/components/schemas/APIError" - DeleteComment_200_response: + - $ref: "#/components/schemas/AddDomainConfigResponse_anyOf" + - $ref: "#/components/schemas/GetDomainConfigsResponse_anyOf_1" + title: PutDomainConfigResponse + PatchDomainConfigResponse: anyOf: - - $ref: "#/components/schemas/DeleteCommentResult" - - $ref: "#/components/schemas/APIError" - GetComments_200_response: + - $ref: "#/components/schemas/AddDomainConfigResponse_anyOf" + - $ref: "#/components/schemas/GetDomainConfigsResponse_anyOf_1" + title: PatchDomainConfigResponse + SaveCommentsBulkResponse: anyOf: - - $ref: "#/components/schemas/APIGetCommentsResponse" + - $ref: "#/components/schemas/APISaveCommentResponse" - $ref: "#/components/schemas/APIError" - SaveComment_200_response: + title: SaveCommentsBulkResponse + AggregateResponse: anyOf: - - $ref: "#/components/schemas/SaveCommentResponse" - - $ref: "#/components/schemas/APIError" - FlagComment_200_response: + - $ref: "#/components/schemas/AggregationResponse" + - $ref: "#/components/schemas/AggregationAPIError" + title: AggregateResponse + BannedUserMatch_matchedOnValue: anyOf: - - $ref: "#/components/schemas/FlagCommentResponse" - - $ref: "#/components/schemas/APIError" - GetAuditLogs_200_response: + - type: string + - format: double + type: number + nullable: true + GetUserInternalProfileResponse_profile: + example: + karma: 0.8008281904610115 + firstCommentDate: 2000-01-23T04:56:07.000+00:00 + displayName: displayName + commenterName: commenterName + verified: true + bio: bio + anonUserId: anonUserId + ipHash: ipHash + locale: locale + userId: userId + commenterEmail: commenterEmail + countryFlag: countryFlag + websiteUrl: websiteUrl + countryCode: countryCode + avatarSrc: avatarSrc + email: email + username: username + properties: + commenterName: + type: string + firstCommentDate: + format: date-time + nullable: true + type: string + ipHash: + type: string + countryFlag: + type: string + countryCode: + type: string + websiteUrl: + nullable: true + type: string + bio: + type: string + karma: + format: double + type: number + locale: + type: string + verified: + type: boolean + avatarSrc: + nullable: true + type: string + displayName: + type: string + username: + type: string + commenterEmail: + nullable: true + type: string + email: + nullable: true + type: string + anonUserId: + nullable: true + type: string + userId: + nullable: true + type: string + type: object + GifSearchResponse_images_inner_inner: anyOf: - - $ref: "#/components/schemas/GetAuditLogsResponse" - - $ref: "#/components/schemas/APIError" + - type: string + - format: double + type: number Record_string__before_string_or_null__after_string_or_null___value: example: before: before @@ -20172,11 +25823,6 @@ components: properties: {} type: object type: object - Record_string_string_or_number__value: - anyOf: - - type: string - - format: double - type: number FComment_meta: additionalProperties: {} example: @@ -20205,6 +25851,10 @@ components: - imageSrc - name type: object + BulkCreateHashTagsResponse_results_inner: + anyOf: + - $ref: "#/components/schemas/CreateHashTagResponse" + - $ref: "#/components/schemas/APIError" BulkCreateHashTagsBody_tags_inner: example: tag: tag diff --git a/client/build.gradle b/client/build.gradle index b46dc767..dc3c2323 100644 --- a/client/build.gradle +++ b/client/build.gradle @@ -119,6 +119,7 @@ dependencies { testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3' testImplementation 'org.mockito:mockito-core:3.12.4' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3' + testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.10.3' } javadoc { diff --git a/client/docs/APIBanUserChangeLog.md b/client/docs/APIBanUserChangeLog.md new file mode 100644 index 00000000..fbfbdf71 --- /dev/null +++ b/client/docs/APIBanUserChangeLog.md @@ -0,0 +1,16 @@ + + +# APIBanUserChangeLog + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**createdBannedUserId** | **String** | | [optional] | +|**updatedBannedUserId** | **String** | | [optional] | +|**deletedBannedUsers** | [**List<APIBannedUser>**](APIBannedUser.md) | | [optional] | +|**changedValuesBefore** | [**APIBanUserChangedValues**](APIBanUserChangedValues.md) | | [optional] | + + + diff --git a/client/docs/APIBanUserChangedValues.md b/client/docs/APIBanUserChangedValues.md new file mode 100644 index 00000000..b14f620d --- /dev/null +++ b/client/docs/APIBanUserChangedValues.md @@ -0,0 +1,25 @@ + + +# APIBanUserChangedValues + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | [optional] | +|**tenantId** | **String** | | [optional] | +|**userId** | **String** | | [optional] | +|**email** | **String** | | [optional] | +|**username** | **String** | | [optional] | +|**ipHash** | **String** | | [optional] | +|**createdAt** | **OffsetDateTime** | | [optional] | +|**bannedByUserId** | **String** | | [optional] | +|**bannedCommentText** | **String** | | [optional] | +|**banType** | **String** | | [optional] | +|**bannedUntil** | **OffsetDateTime** | | [optional] | +|**hasEmailWildcard** | **Boolean** | | [optional] | +|**banReason** | **String** | | [optional] | + + + diff --git a/client/docs/APIBannedUser.md b/client/docs/APIBannedUser.md new file mode 100644 index 00000000..cd33e584 --- /dev/null +++ b/client/docs/APIBannedUser.md @@ -0,0 +1,25 @@ + + +# APIBannedUser + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | | +|**tenantId** | **String** | | | +|**userId** | **String** | | [optional] | +|**email** | **String** | | [optional] | +|**username** | **String** | | [optional] | +|**ipHash** | **String** | | [optional] | +|**createdAt** | **OffsetDateTime** | | | +|**bannedByUserId** | **String** | | | +|**bannedCommentText** | **String** | | | +|**banType** | **String** | | | +|**bannedUntil** | **OffsetDateTime** | | | +|**hasEmailWildcard** | **Boolean** | | | +|**banReason** | **String** | | [optional] | + + + diff --git a/client/docs/APIBannedUserWithMultiMatchInfo.md b/client/docs/APIBannedUserWithMultiMatchInfo.md new file mode 100644 index 00000000..42232762 --- /dev/null +++ b/client/docs/APIBannedUserWithMultiMatchInfo.md @@ -0,0 +1,21 @@ + + +# APIBannedUserWithMultiMatchInfo + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | | +|**userId** | **String** | | [optional] | +|**banType** | **String** | | | +|**email** | **String** | | [optional] | +|**ipHash** | **String** | | [optional] | +|**bannedUntil** | **OffsetDateTime** | | | +|**hasEmailWildcard** | **Boolean** | | | +|**banReason** | **String** | | [optional] | +|**matches** | [**List<BannedUserMatch>**](BannedUserMatch.md) | | | + + + diff --git a/client/docs/APICommentCommonBannedUser.md b/client/docs/APICommentCommonBannedUser.md new file mode 100644 index 00000000..be72e9e4 --- /dev/null +++ b/client/docs/APICommentCommonBannedUser.md @@ -0,0 +1,20 @@ + + +# APICommentCommonBannedUser + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | | +|**userId** | **String** | | [optional] | +|**banType** | **String** | | | +|**email** | **String** | | [optional] | +|**ipHash** | **String** | | [optional] | +|**bannedUntil** | **OffsetDateTime** | | | +|**hasEmailWildcard** | **Boolean** | | | +|**banReason** | **String** | | [optional] | + + + diff --git a/client/docs/APIModerateGetUserBanPreferencesResponse.md b/client/docs/APIModerateGetUserBanPreferencesResponse.md new file mode 100644 index 00000000..efe2112b --- /dev/null +++ b/client/docs/APIModerateGetUserBanPreferencesResponse.md @@ -0,0 +1,14 @@ + + +# APIModerateGetUserBanPreferencesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**preferences** | [**APIModerateUserBanPreferences**](APIModerateUserBanPreferences.md) | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/APIModerateUserBanPreferences.md b/client/docs/APIModerateUserBanPreferences.md new file mode 100644 index 00000000..e8507f6a --- /dev/null +++ b/client/docs/APIModerateUserBanPreferences.md @@ -0,0 +1,16 @@ + + +# APIModerateUserBanPreferences + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**shouldBanEmail** | **Boolean** | | | +|**shouldBanByIP** | **Boolean** | | | +|**lastBanType** | **String** | | | +|**lastBanDuration** | **String** | | | + + + diff --git a/client/docs/SaveCommentResponse.md b/client/docs/APISaveCommentResponse.md similarity index 80% rename from client/docs/SaveCommentResponse.md rename to client/docs/APISaveCommentResponse.md index 7febb5c4..31b3891c 100644 --- a/client/docs/SaveCommentResponse.md +++ b/client/docs/APISaveCommentResponse.md @@ -1,6 +1,6 @@ -# SaveCommentResponse +# APISaveCommentResponse ## Properties @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**status** | **APIStatus** | | | -|**comment** | [**FComment**](FComment.md) | | | +|**comment** | [**APIComment**](APIComment.md) | | | |**user** | [**UserSessionInfo**](UserSessionInfo.md) | | | |**moduleData** | **Map<String, Object>** | Construct a type with a set of properties K of type T | [optional] | diff --git a/client/docs/AddDomainConfig200Response.md b/client/docs/AddDomainConfigResponse.md similarity index 91% rename from client/docs/AddDomainConfig200Response.md rename to client/docs/AddDomainConfigResponse.md index 0a94d1c3..87671392 100644 --- a/client/docs/AddDomainConfig200Response.md +++ b/client/docs/AddDomainConfigResponse.md @@ -1,6 +1,6 @@ -# AddDomainConfig200Response +# AddDomainConfigResponse ## Properties diff --git a/client/docs/AddDomainConfig200ResponseAnyOf.md b/client/docs/AddDomainConfigResponseAnyOf.md similarity index 85% rename from client/docs/AddDomainConfig200ResponseAnyOf.md rename to client/docs/AddDomainConfigResponseAnyOf.md index 809ea262..7e59c7b5 100644 --- a/client/docs/AddDomainConfig200ResponseAnyOf.md +++ b/client/docs/AddDomainConfigResponseAnyOf.md @@ -1,6 +1,6 @@ -# AddDomainConfig200ResponseAnyOf +# AddDomainConfigResponseAnyOf ## Properties diff --git a/client/docs/AddHashTag200Response.md b/client/docs/AddHashTag200Response.md deleted file mode 100644 index 4121fe13..00000000 --- a/client/docs/AddHashTag200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# AddHashTag200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**hashTag** | [**TenantHashTag**](TenantHashTag.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/AddHashTagsBulk200Response.md b/client/docs/AddHashTagsBulk200Response.md deleted file mode 100644 index cddac3da..00000000 --- a/client/docs/AddHashTagsBulk200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# AddHashTagsBulk200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**results** | [**List<AddHashTag200Response>**](AddHashTag200Response.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/AdjustCommentVotesParams.md b/client/docs/AdjustCommentVotesParams.md new file mode 100644 index 00000000..aa3c76fc --- /dev/null +++ b/client/docs/AdjustCommentVotesParams.md @@ -0,0 +1,13 @@ + + +# AdjustCommentVotesParams + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**adjustVoteAmount** | **Double** | | | + + + diff --git a/client/docs/AdjustVotesResponse.md b/client/docs/AdjustVotesResponse.md new file mode 100644 index 00000000..b67d4639 --- /dev/null +++ b/client/docs/AdjustVotesResponse.md @@ -0,0 +1,14 @@ + + +# AdjustVotesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **String** | | | +|**newCommentVotes** | **Integer** | | | + + + diff --git a/client/docs/AggregateQuestionResults200Response.md b/client/docs/AggregateQuestionResults200Response.md deleted file mode 100644 index 1c4ed69b..00000000 --- a/client/docs/AggregateQuestionResults200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# AggregateQuestionResults200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**data** | [**QuestionResultAggregationOverall**](QuestionResultAggregationOverall.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/AggregateResponse.md b/client/docs/AggregateResponse.md new file mode 100644 index 00000000..6869a4c1 --- /dev/null +++ b/client/docs/AggregateResponse.md @@ -0,0 +1,18 @@ + + +# AggregateResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**data** | [**List<AggregationItem>**](AggregationItem.md) | | [optional] | +|**stats** | [**AggregationResponseStats**](AggregationResponseStats.md) | | [optional] | +|**reason** | **String** | | [optional] | +|**code** | **String** | | [optional] | +|**validResourceNames** | **List<String>** | | [optional] | + + + diff --git a/client/docs/AggregationAPIError.md b/client/docs/AggregationAPIError.md new file mode 100644 index 00000000..86e57c65 --- /dev/null +++ b/client/docs/AggregationAPIError.md @@ -0,0 +1,16 @@ + + +# AggregationAPIError + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**reason** | **String** | | | +|**code** | **String** | | | +|**validResourceNames** | **List<String>** | | [optional] | + + + diff --git a/client/docs/AwardUserBadgeResponse.md b/client/docs/AwardUserBadgeResponse.md new file mode 100644 index 00000000..3c90fd4a --- /dev/null +++ b/client/docs/AwardUserBadgeResponse.md @@ -0,0 +1,15 @@ + + +# AwardUserBadgeResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**notes** | **List<String>** | | [optional] | +|**badges** | [**List<CommentUserBadgeInfo>**](CommentUserBadgeInfo.md) | | [optional] | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/BanUserFromCommentResult.md b/client/docs/BanUserFromCommentResult.md new file mode 100644 index 00000000..92ef93fb --- /dev/null +++ b/client/docs/BanUserFromCommentResult.md @@ -0,0 +1,16 @@ + + +# BanUserFromCommentResult + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **String** | | | +|**changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | [optional] | +|**code** | **String** | | [optional] | +|**reason** | **String** | | [optional] | + + + diff --git a/client/docs/BanUserUndoParams.md b/client/docs/BanUserUndoParams.md new file mode 100644 index 00000000..4f3f6f02 --- /dev/null +++ b/client/docs/BanUserUndoParams.md @@ -0,0 +1,13 @@ + + +# BanUserUndoParams + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | | + + + diff --git a/client/docs/BannedUserMatch.md b/client/docs/BannedUserMatch.md new file mode 100644 index 00000000..c31f6066 --- /dev/null +++ b/client/docs/BannedUserMatch.md @@ -0,0 +1,14 @@ + + +# BannedUserMatch + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**matchedOn** | **BannedUserMatchType** | | | +|**matchedOnValue** | [**BannedUserMatchMatchedOnValue**](BannedUserMatchMatchedOnValue.md) | | | + + + diff --git a/client/docs/RecordStringStringOrNumberValue.md b/client/docs/BannedUserMatchMatchedOnValue.md similarity index 78% rename from client/docs/RecordStringStringOrNumberValue.md rename to client/docs/BannedUserMatchMatchedOnValue.md index 205570d3..33d568f2 100644 --- a/client/docs/RecordStringStringOrNumberValue.md +++ b/client/docs/BannedUserMatchMatchedOnValue.md @@ -1,6 +1,6 @@ -# RecordStringStringOrNumberValue +# BannedUserMatchMatchedOnValue ## Properties diff --git a/client/docs/BannedUserMatchType.md b/client/docs/BannedUserMatchType.md new file mode 100644 index 00000000..5c412f3b --- /dev/null +++ b/client/docs/BannedUserMatchType.md @@ -0,0 +1,17 @@ + + +# BannedUserMatchType + +## Enum + + +* `USER_ID` (value: `"userId"`) + +* `EMAIL` (value: `"email"`) + +* `EMAIL_WILDCARD` (value: `"email-wildcard"`) + +* `IP` (value: `"IP"`) + + + diff --git a/client/docs/BlockFromCommentPublic200Response.md b/client/docs/BlockFromCommentPublic200Response.md deleted file mode 100644 index 60c362a1..00000000 --- a/client/docs/BlockFromCommentPublic200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# BlockFromCommentPublic200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**commentStatuses** | **Map<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/BuildModerationFilterParams.md b/client/docs/BuildModerationFilterParams.md new file mode 100644 index 00000000..bc7ab160 --- /dev/null +++ b/client/docs/BuildModerationFilterParams.md @@ -0,0 +1,17 @@ + + +# BuildModerationFilterParams + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userId** | **String** | | | +|**tenantId** | **String** | | | +|**filters** | **String** | | [optional] | +|**searchFilters** | **String** | | [optional] | +|**textSearch** | **String** | | [optional] | + + + diff --git a/client/docs/BuildModerationFilterResponse.md b/client/docs/BuildModerationFilterResponse.md new file mode 100644 index 00000000..e634f5b6 --- /dev/null +++ b/client/docs/BuildModerationFilterResponse.md @@ -0,0 +1,14 @@ + + +# BuildModerationFilterResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **String** | | | +|**moderationFilter** | [**ModerationFilter**](ModerationFilter.md) | | | + + + diff --git a/client/docs/BulkAggregateQuestionResults200Response.md b/client/docs/BulkAggregateQuestionResults200Response.md deleted file mode 100644 index fc8bcd60..00000000 --- a/client/docs/BulkAggregateQuestionResults200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# BulkAggregateQuestionResults200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**data** | [**Map<String, QuestionResultAggregationOverall>**](QuestionResultAggregationOverall.md) | Construct a type with a set of properties K of type T | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/BulkCreateHashTagsResponse.md b/client/docs/BulkCreateHashTagsResponse.md index c69e64a1..b8c86a56 100644 --- a/client/docs/BulkCreateHashTagsResponse.md +++ b/client/docs/BulkCreateHashTagsResponse.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**status** | **APIStatus** | | | -|**results** | [**List<AddHashTag200Response>**](AddHashTag200Response.md) | | | +|**results** | [**List<BulkCreateHashTagsResponseResultsInner>**](BulkCreateHashTagsResponseResultsInner.md) | | | diff --git a/client/docs/PatchHashTag200Response.md b/client/docs/BulkCreateHashTagsResponseResultsInner.md similarity index 93% rename from client/docs/PatchHashTag200Response.md rename to client/docs/BulkCreateHashTagsResponseResultsInner.md index c618d64a..6240589c 100644 --- a/client/docs/PatchHashTag200Response.md +++ b/client/docs/BulkCreateHashTagsResponseResultsInner.md @@ -1,6 +1,6 @@ -# PatchHashTag200Response +# BulkCreateHashTagsResponseResultsInner ## Properties diff --git a/client/docs/BulkPreBanParams.md b/client/docs/BulkPreBanParams.md new file mode 100644 index 00000000..d01e7aa1 --- /dev/null +++ b/client/docs/BulkPreBanParams.md @@ -0,0 +1,13 @@ + + +# BulkPreBanParams + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**commentIds** | **List<String>** | | | + + + diff --git a/client/docs/BulkPreBanSummary.md b/client/docs/BulkPreBanSummary.md new file mode 100644 index 00000000..d24758b4 --- /dev/null +++ b/client/docs/BulkPreBanSummary.md @@ -0,0 +1,18 @@ + + +# BulkPreBanSummary + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **String** | | | +|**totalRelatedCommentCount** | **Integer** | | | +|**emailDomains** | **List<String>** | | | +|**emails** | **List<String>** | | | +|**userIds** | **List<String>** | | | +|**ipHashes** | **List<String>** | | | + + + diff --git a/client/docs/ChangeTicketState200Response.md b/client/docs/ChangeTicketState200Response.md deleted file mode 100644 index 009bc734..00000000 --- a/client/docs/ChangeTicketState200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# ChangeTicketState200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**ticket** | [**APITicket**](APITicket.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/CheckedCommentsForBlocked200Response.md b/client/docs/CheckedCommentsForBlocked200Response.md deleted file mode 100644 index e8df2ae0..00000000 --- a/client/docs/CheckedCommentsForBlocked200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CheckedCommentsForBlocked200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**commentStatuses** | **Map<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | -|**status** | **APIStatus** | | | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/CombineCommentsWithQuestionResults200Response.md b/client/docs/CombineCommentsWithQuestionResults200Response.md deleted file mode 100644 index 4547e032..00000000 --- a/client/docs/CombineCommentsWithQuestionResults200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CombineCommentsWithQuestionResults200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**data** | [**FindCommentsByRangeResponse**](FindCommentsByRangeResponse.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/CommentData.md b/client/docs/CommentData.md index fa4eb3b1..07a3f6b3 100644 --- a/client/docs/CommentData.md +++ b/client/docs/CommentData.md @@ -30,8 +30,9 @@ |**fromOfflineRestore** | **Boolean** | | [optional] | |**autoplayDelayMS** | **Long** | | [optional] | |**feedbackIds** | **List<String>** | | [optional] | -|**questionValues** | [**Map<String, RecordStringStringOrNumberValue>**](RecordStringStringOrNumberValue.md) | Construct a type with a set of properties K of type T | [optional] | +|**questionValues** | [**Map<String, GifSearchResponseImagesInnerInner>**](GifSearchResponseImagesInnerInner.md) | Construct a type with a set of properties K of type T | [optional] | |**tos** | **Boolean** | | [optional] | +|**botId** | **String** | | [optional] | diff --git a/client/docs/CommentLogData.md b/client/docs/CommentLogData.md index 7d0d9f69..6f6be769 100644 --- a/client/docs/CommentLogData.md +++ b/client/docs/CommentLogData.md @@ -22,6 +22,7 @@ |**engineResponse** | **String** | | [optional] | |**engineTokens** | **Double** | | [optional] | |**trustFactor** | **Double** | | [optional] | +|**source** | **String** | | [optional] | |**rule** | [**SpamRule**](SpamRule.md) | | [optional] | |**userId** | **String** | | [optional] | |**subscribers** | **Double** | | [optional] | diff --git a/client/docs/CommentsByIdsParams.md b/client/docs/CommentsByIdsParams.md new file mode 100644 index 00000000..ce5ad194 --- /dev/null +++ b/client/docs/CommentsByIdsParams.md @@ -0,0 +1,13 @@ + + +# CommentsByIdsParams + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**ids** | **List<String>** | | | + + + diff --git a/client/docs/CreateCommentParams.md b/client/docs/CreateCommentParams.md index 593a6c63..be3a8ebd 100644 --- a/client/docs/CreateCommentParams.md +++ b/client/docs/CreateCommentParams.md @@ -30,8 +30,9 @@ |**fromOfflineRestore** | **Boolean** | | [optional] | |**autoplayDelayMS** | **Long** | | [optional] | |**feedbackIds** | **List<String>** | | [optional] | -|**questionValues** | [**Map<String, RecordStringStringOrNumberValue>**](RecordStringStringOrNumberValue.md) | Construct a type with a set of properties K of type T | [optional] | +|**questionValues** | [**Map<String, GifSearchResponseImagesInnerInner>**](GifSearchResponseImagesInnerInner.md) | Construct a type with a set of properties K of type T | [optional] | |**tos** | **Boolean** | | [optional] | +|**botId** | **String** | | [optional] | |**approved** | **Boolean** | | [optional] | |**domain** | **String** | | [optional] | |**ip** | **String** | | [optional] | diff --git a/client/docs/CreateCommentPublic200Response.md b/client/docs/CreateCommentPublic200Response.md deleted file mode 100644 index c54d385f..00000000 --- a/client/docs/CreateCommentPublic200Response.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# CreateCommentPublic200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**comment** | [**PublicComment**](PublicComment.md) | | [optional] | -|**user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] | -|**moduleData** | **Map<String, Object>** | Construct a type with a set of properties K of type T | [optional] | -|**userIdWS** | **String** | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/CreateEmailTemplate200Response.md b/client/docs/CreateEmailTemplate200Response.md deleted file mode 100644 index 9835778f..00000000 --- a/client/docs/CreateEmailTemplate200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateEmailTemplate200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**emailTemplate** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/CreateFeedPost200Response.md b/client/docs/CreateFeedPost200Response.md deleted file mode 100644 index dd8737c0..00000000 --- a/client/docs/CreateFeedPost200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateFeedPost200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**feedPost** | [**FeedPost**](FeedPost.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/CreateFeedPostPublic200Response.md b/client/docs/CreateFeedPostPublic200Response.md deleted file mode 100644 index c8ce3177..00000000 --- a/client/docs/CreateFeedPostPublic200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateFeedPostPublic200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**feedPost** | [**FeedPost**](FeedPost.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/CreateModerator200Response.md b/client/docs/CreateModerator200Response.md deleted file mode 100644 index 3bd78f55..00000000 --- a/client/docs/CreateModerator200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateModerator200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**moderator** | [**Moderator**](Moderator.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/CreateQuestionConfig200Response.md b/client/docs/CreateQuestionConfig200Response.md deleted file mode 100644 index 706f1cd4..00000000 --- a/client/docs/CreateQuestionConfig200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateQuestionConfig200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**questionConfig** | [**QuestionConfig**](QuestionConfig.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/CreateQuestionResult200Response.md b/client/docs/CreateQuestionResult200Response.md deleted file mode 100644 index 8f8d28ab..00000000 --- a/client/docs/CreateQuestionResult200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateQuestionResult200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**questionResult** | [**QuestionResult**](QuestionResult.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/CreateTenant200Response.md b/client/docs/CreateTenant200Response.md deleted file mode 100644 index b5085684..00000000 --- a/client/docs/CreateTenant200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateTenant200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**tenant** | [**APITenant**](APITenant.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/CreateTenantPackage200Response.md b/client/docs/CreateTenantPackage200Response.md deleted file mode 100644 index e7d61ad6..00000000 --- a/client/docs/CreateTenantPackage200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateTenantPackage200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**tenantPackage** | [**TenantPackage**](TenantPackage.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/CreateTenantUser200Response.md b/client/docs/CreateTenantUser200Response.md deleted file mode 100644 index 76e80cdb..00000000 --- a/client/docs/CreateTenantUser200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateTenantUser200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**tenantUser** | [**User**](User.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/CreateTicket200Response.md b/client/docs/CreateTicket200Response.md deleted file mode 100644 index f6a3a40f..00000000 --- a/client/docs/CreateTicket200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateTicket200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**ticket** | [**APITicket**](APITicket.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/CreateUserBadge200Response.md b/client/docs/CreateUserBadge200Response.md deleted file mode 100644 index 65506536..00000000 --- a/client/docs/CreateUserBadge200Response.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# CreateUserBadge200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**userBadge** | [**UserBadge**](UserBadge.md) | | [optional] | -|**notes** | **List<String>** | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/CreateV1PageReact.md b/client/docs/CreateV1PageReact.md new file mode 100644 index 00000000..75633fdd --- /dev/null +++ b/client/docs/CreateV1PageReact.md @@ -0,0 +1,14 @@ + + +# CreateV1PageReact + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **String** | | [optional] | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/CustomConfigParameters.md b/client/docs/CustomConfigParameters.md index bff60f89..4867278a 100644 --- a/client/docs/CustomConfigParameters.md +++ b/client/docs/CustomConfigParameters.md @@ -59,11 +59,14 @@ |**noCustomConfig** | **Boolean** | | [optional] | |**mentionAutoCompleteMode** | **MentionAutoCompleteMode** | | [optional] | |**noImageUploads** | **Boolean** | | [optional] | +|**allowEmbeds** | **Boolean** | | [optional] | +|**allowedEmbedDomains** | **List<String>** | | [optional] | |**noStyles** | **Boolean** | | [optional] | |**pageSize** | **Integer** | | [optional] | |**readonly** | **Boolean** | | [optional] | |**noNewRootComments** | **Boolean** | | [optional] | |**requireSSO** | **Boolean** | | [optional] | +|**enableFChat** | **Boolean** | | [optional] | |**enableResizeHandle** | **Boolean** | | [optional] | |**restrictedLinkDomains** | **List<String>** | | [optional] | |**showBadgesInTopBar** | **Boolean** | | [optional] | @@ -84,6 +87,8 @@ |**widgetQuestionsRequired** | **CommentQuestionsRequired** | | [optional] | |**widgetSubQuestionVisibility** | **QuestionSubQuestionVisibility** | | [optional] | |**wrap** | **Boolean** | | [optional] | +|**usersListLocation** | **UsersListLocation** | | [optional] | +|**usersListIncludeOffline** | **Boolean** | | [optional] | |**ticketBaseUrl** | **String** | | [optional] | |**ticketKBSearchEndpoint** | **String** | | [optional] | |**ticketFileUploadsEnabled** | **Boolean** | | [optional] | diff --git a/client/docs/DefaultApi.md b/client/docs/DefaultApi.md index d2081694..066a52fe 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -123,7 +123,7 @@ All URIs are relative to *https://fastcomments.com* # **addDomainConfig** -> AddDomainConfig200Response addDomainConfig(tenantId, addDomainConfigParams).execute(); +> AddDomainConfigResponse addDomainConfig(tenantId, addDomainConfigParams).execute(); @@ -152,7 +152,7 @@ public class Example { String tenantId = "tenantId_example"; // String | AddDomainConfigParams addDomainConfigParams = new AddDomainConfigParams(); // AddDomainConfigParams | try { - AddDomainConfig200Response result = apiInstance.addDomainConfig(tenantId, addDomainConfigParams) + AddDomainConfigResponse result = apiInstance.addDomainConfig(tenantId, addDomainConfigParams) .execute(); System.out.println(result); } catch (ApiException e) { @@ -175,7 +175,7 @@ public class Example { ### Return type -[**AddDomainConfig200Response**](AddDomainConfig200Response.md) +[**AddDomainConfigResponse**](AddDomainConfigResponse.md) ### Authorization @@ -193,7 +193,7 @@ public class Example { # **addHashTag** -> AddHashTag200Response addHashTag().tenantId(tenantId).createHashTagBody(createHashTagBody).execute(); +> CreateHashTagResponse addHashTag().tenantId(tenantId).createHashTagBody(createHashTagBody).execute(); @@ -222,7 +222,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateHashTagBody createHashTagBody = new CreateHashTagBody(); // CreateHashTagBody | try { - AddHashTag200Response result = apiInstance.addHashTag() + CreateHashTagResponse result = apiInstance.addHashTag() .tenantId(tenantId) .createHashTagBody(createHashTagBody) .execute(); @@ -247,7 +247,7 @@ public class Example { ### Return type -[**AddHashTag200Response**](AddHashTag200Response.md) +[**CreateHashTagResponse**](CreateHashTagResponse.md) ### Authorization @@ -262,10 +262,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **addHashTagsBulk** -> AddHashTagsBulk200Response addHashTagsBulk().tenantId(tenantId).bulkCreateHashTagsBody(bulkCreateHashTagsBody).execute(); +> BulkCreateHashTagsResponse addHashTagsBulk().tenantId(tenantId).bulkCreateHashTagsBody(bulkCreateHashTagsBody).execute(); @@ -294,7 +295,7 @@ public class Example { String tenantId = "tenantId_example"; // String | BulkCreateHashTagsBody bulkCreateHashTagsBody = new BulkCreateHashTagsBody(); // BulkCreateHashTagsBody | try { - AddHashTagsBulk200Response result = apiInstance.addHashTagsBulk() + BulkCreateHashTagsResponse result = apiInstance.addHashTagsBulk() .tenantId(tenantId) .bulkCreateHashTagsBody(bulkCreateHashTagsBody) .execute(); @@ -319,7 +320,7 @@ public class Example { ### Return type -[**AddHashTagsBulk200Response**](AddHashTagsBulk200Response.md) +[**BulkCreateHashTagsResponse**](BulkCreateHashTagsResponse.md) ### Authorization @@ -334,6 +335,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **addPage** @@ -477,7 +479,7 @@ public class Example { # **aggregate** -> AggregationResponse aggregate(tenantId, aggregationRequest).parentTenantId(parentTenantId).includeStats(includeStats).execute(); +> AggregateResponse aggregate(tenantId, aggregationRequest).parentTenantId(parentTenantId).includeStats(includeStats).execute(); @@ -510,7 +512,7 @@ public class Example { String parentTenantId = "parentTenantId_example"; // String | Boolean includeStats = true; // Boolean | try { - AggregationResponse result = apiInstance.aggregate(tenantId, aggregationRequest) + AggregateResponse result = apiInstance.aggregate(tenantId, aggregationRequest) .parentTenantId(parentTenantId) .includeStats(includeStats) .execute(); @@ -537,7 +539,7 @@ public class Example { ### Return type -[**AggregationResponse**](AggregationResponse.md) +[**AggregateResponse**](AggregateResponse.md) ### Authorization @@ -555,7 +557,7 @@ public class Example { # **aggregateQuestionResults** -> AggregateQuestionResults200Response aggregateQuestionResults(tenantId).questionId(questionId).questionIds(questionIds).urlId(urlId).timeBucket(timeBucket).startDate(startDate).forceRecalculate(forceRecalculate).execute(); +> AggregateQuestionResultsResponse aggregateQuestionResults(tenantId).questionId(questionId).questionIds(questionIds).urlId(urlId).timeBucket(timeBucket).startDate(startDate).forceRecalculate(forceRecalculate).execute(); @@ -589,7 +591,7 @@ public class Example { OffsetDateTime startDate = OffsetDateTime.now(); // OffsetDateTime | Boolean forceRecalculate = true; // Boolean | try { - AggregateQuestionResults200Response result = apiInstance.aggregateQuestionResults(tenantId) + AggregateQuestionResultsResponse result = apiInstance.aggregateQuestionResults(tenantId) .questionId(questionId) .questionIds(questionIds) .urlId(urlId) @@ -623,7 +625,7 @@ public class Example { ### Return type -[**AggregateQuestionResults200Response**](AggregateQuestionResults200Response.md) +[**AggregateQuestionResultsResponse**](AggregateQuestionResultsResponse.md) ### Authorization @@ -638,10 +640,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **blockUserFromComment** -> BlockFromCommentPublic200Response blockUserFromComment(tenantId, id, blockFromCommentParams).userId(userId).anonUserId(anonUserId).execute(); +> BlockSuccess blockUserFromComment(tenantId, id, blockFromCommentParams).userId(userId).anonUserId(anonUserId).execute(); @@ -673,7 +676,7 @@ public class Example { String userId = "userId_example"; // String | String anonUserId = "anonUserId_example"; // String | try { - BlockFromCommentPublic200Response result = apiInstance.blockUserFromComment(tenantId, id, blockFromCommentParams) + BlockSuccess result = apiInstance.blockUserFromComment(tenantId, id, blockFromCommentParams) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -701,7 +704,7 @@ public class Example { ### Return type -[**BlockFromCommentPublic200Response**](BlockFromCommentPublic200Response.md) +[**BlockSuccess**](BlockSuccess.md) ### Authorization @@ -716,10 +719,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **bulkAggregateQuestionResults** -> BulkAggregateQuestionResults200Response bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest).forceRecalculate(forceRecalculate).execute(); +> BulkAggregateQuestionResultsResponse bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest).forceRecalculate(forceRecalculate).execute(); @@ -749,7 +753,7 @@ public class Example { BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest = new BulkAggregateQuestionResultsRequest(); // BulkAggregateQuestionResultsRequest | Boolean forceRecalculate = true; // Boolean | try { - BulkAggregateQuestionResults200Response result = apiInstance.bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest) + BulkAggregateQuestionResultsResponse result = apiInstance.bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest) .forceRecalculate(forceRecalculate) .execute(); System.out.println(result); @@ -774,7 +778,7 @@ public class Example { ### Return type -[**BulkAggregateQuestionResults200Response**](BulkAggregateQuestionResults200Response.md) +[**BulkAggregateQuestionResultsResponse**](BulkAggregateQuestionResultsResponse.md) ### Authorization @@ -789,10 +793,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **changeTicketState** -> ChangeTicketState200Response changeTicketState(tenantId, userId, id, changeTicketStateBody).execute(); +> ChangeTicketStateResponse changeTicketState(tenantId, userId, id, changeTicketStateBody).execute(); @@ -823,7 +828,7 @@ public class Example { String id = "id_example"; // String | ChangeTicketStateBody changeTicketStateBody = new ChangeTicketStateBody(); // ChangeTicketStateBody | try { - ChangeTicketState200Response result = apiInstance.changeTicketState(tenantId, userId, id, changeTicketStateBody) + ChangeTicketStateResponse result = apiInstance.changeTicketState(tenantId, userId, id, changeTicketStateBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -848,7 +853,7 @@ public class Example { ### Return type -[**ChangeTicketState200Response**](ChangeTicketState200Response.md) +[**ChangeTicketStateResponse**](ChangeTicketStateResponse.md) ### Authorization @@ -863,10 +868,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **combineCommentsWithQuestionResults** -> CombineCommentsWithQuestionResults200Response combineCommentsWithQuestionResults(tenantId).questionId(questionId).questionIds(questionIds).urlId(urlId).startDate(startDate).forceRecalculate(forceRecalculate).minValue(minValue).maxValue(maxValue).limit(limit).execute(); +> CombineQuestionResultsWithCommentsResponse combineCommentsWithQuestionResults(tenantId).questionId(questionId).questionIds(questionIds).urlId(urlId).startDate(startDate).forceRecalculate(forceRecalculate).minValue(minValue).maxValue(maxValue).limit(limit).execute(); @@ -902,7 +908,7 @@ public class Example { Double maxValue = 3.4D; // Double | Double limit = 3.4D; // Double | try { - CombineCommentsWithQuestionResults200Response result = apiInstance.combineCommentsWithQuestionResults(tenantId) + CombineQuestionResultsWithCommentsResponse result = apiInstance.combineCommentsWithQuestionResults(tenantId) .questionId(questionId) .questionIds(questionIds) .urlId(urlId) @@ -940,7 +946,7 @@ public class Example { ### Return type -[**CombineCommentsWithQuestionResults200Response**](CombineCommentsWithQuestionResults200Response.md) +[**CombineQuestionResultsWithCommentsResponse**](CombineQuestionResultsWithCommentsResponse.md) ### Authorization @@ -955,10 +961,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createEmailTemplate** -> CreateEmailTemplate200Response createEmailTemplate(tenantId, createEmailTemplateBody).execute(); +> CreateEmailTemplateResponse createEmailTemplate(tenantId, createEmailTemplateBody).execute(); @@ -987,7 +994,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateEmailTemplateBody createEmailTemplateBody = new CreateEmailTemplateBody(); // CreateEmailTemplateBody | try { - CreateEmailTemplate200Response result = apiInstance.createEmailTemplate(tenantId, createEmailTemplateBody) + CreateEmailTemplateResponse result = apiInstance.createEmailTemplate(tenantId, createEmailTemplateBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1010,7 +1017,7 @@ public class Example { ### Return type -[**CreateEmailTemplate200Response**](CreateEmailTemplate200Response.md) +[**CreateEmailTemplateResponse**](CreateEmailTemplateResponse.md) ### Authorization @@ -1025,10 +1032,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createFeedPost** -> CreateFeedPost200Response createFeedPost(tenantId, createFeedPostParams).broadcastId(broadcastId).isLive(isLive).doSpamCheck(doSpamCheck).skipDupCheck(skipDupCheck).execute(); +> CreateFeedPostsResponse createFeedPost(tenantId, createFeedPostParams).broadcastId(broadcastId).isLive(isLive).doSpamCheck(doSpamCheck).skipDupCheck(skipDupCheck).execute(); @@ -1061,7 +1069,7 @@ public class Example { Boolean doSpamCheck = true; // Boolean | Boolean skipDupCheck = true; // Boolean | try { - CreateFeedPost200Response result = apiInstance.createFeedPost(tenantId, createFeedPostParams) + CreateFeedPostsResponse result = apiInstance.createFeedPost(tenantId, createFeedPostParams) .broadcastId(broadcastId) .isLive(isLive) .doSpamCheck(doSpamCheck) @@ -1092,7 +1100,7 @@ public class Example { ### Return type -[**CreateFeedPost200Response**](CreateFeedPost200Response.md) +[**CreateFeedPostsResponse**](CreateFeedPostsResponse.md) ### Authorization @@ -1107,10 +1115,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createModerator** -> CreateModerator200Response createModerator(tenantId, createModeratorBody).execute(); +> CreateModeratorResponse createModerator(tenantId, createModeratorBody).execute(); @@ -1139,7 +1148,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateModeratorBody createModeratorBody = new CreateModeratorBody(); // CreateModeratorBody | try { - CreateModerator200Response result = apiInstance.createModerator(tenantId, createModeratorBody) + CreateModeratorResponse result = apiInstance.createModerator(tenantId, createModeratorBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1162,7 +1171,7 @@ public class Example { ### Return type -[**CreateModerator200Response**](CreateModerator200Response.md) +[**CreateModeratorResponse**](CreateModeratorResponse.md) ### Authorization @@ -1177,10 +1186,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createQuestionConfig** -> CreateQuestionConfig200Response createQuestionConfig(tenantId, createQuestionConfigBody).execute(); +> CreateQuestionConfigResponse createQuestionConfig(tenantId, createQuestionConfigBody).execute(); @@ -1209,7 +1219,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateQuestionConfigBody createQuestionConfigBody = new CreateQuestionConfigBody(); // CreateQuestionConfigBody | try { - CreateQuestionConfig200Response result = apiInstance.createQuestionConfig(tenantId, createQuestionConfigBody) + CreateQuestionConfigResponse result = apiInstance.createQuestionConfig(tenantId, createQuestionConfigBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1232,7 +1242,7 @@ public class Example { ### Return type -[**CreateQuestionConfig200Response**](CreateQuestionConfig200Response.md) +[**CreateQuestionConfigResponse**](CreateQuestionConfigResponse.md) ### Authorization @@ -1247,10 +1257,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createQuestionResult** -> CreateQuestionResult200Response createQuestionResult(tenantId, createQuestionResultBody).execute(); +> CreateQuestionResultResponse createQuestionResult(tenantId, createQuestionResultBody).execute(); @@ -1279,7 +1290,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateQuestionResultBody createQuestionResultBody = new CreateQuestionResultBody(); // CreateQuestionResultBody | try { - CreateQuestionResult200Response result = apiInstance.createQuestionResult(tenantId, createQuestionResultBody) + CreateQuestionResultResponse result = apiInstance.createQuestionResult(tenantId, createQuestionResultBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1302,7 +1313,7 @@ public class Example { ### Return type -[**CreateQuestionResult200Response**](CreateQuestionResult200Response.md) +[**CreateQuestionResultResponse**](CreateQuestionResultResponse.md) ### Authorization @@ -1317,6 +1328,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createSubscription** @@ -1390,7 +1402,7 @@ public class Example { # **createTenant** -> CreateTenant200Response createTenant(tenantId, createTenantBody).execute(); +> CreateTenantResponse createTenant(tenantId, createTenantBody).execute(); @@ -1419,7 +1431,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateTenantBody createTenantBody = new CreateTenantBody(); // CreateTenantBody | try { - CreateTenant200Response result = apiInstance.createTenant(tenantId, createTenantBody) + CreateTenantResponse result = apiInstance.createTenant(tenantId, createTenantBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1442,7 +1454,7 @@ public class Example { ### Return type -[**CreateTenant200Response**](CreateTenant200Response.md) +[**CreateTenantResponse**](CreateTenantResponse.md) ### Authorization @@ -1457,10 +1469,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createTenantPackage** -> CreateTenantPackage200Response createTenantPackage(tenantId, createTenantPackageBody).execute(); +> CreateTenantPackageResponse createTenantPackage(tenantId, createTenantPackageBody).execute(); @@ -1489,7 +1502,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateTenantPackageBody createTenantPackageBody = new CreateTenantPackageBody(); // CreateTenantPackageBody | try { - CreateTenantPackage200Response result = apiInstance.createTenantPackage(tenantId, createTenantPackageBody) + CreateTenantPackageResponse result = apiInstance.createTenantPackage(tenantId, createTenantPackageBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1512,7 +1525,7 @@ public class Example { ### Return type -[**CreateTenantPackage200Response**](CreateTenantPackage200Response.md) +[**CreateTenantPackageResponse**](CreateTenantPackageResponse.md) ### Authorization @@ -1527,10 +1540,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createTenantUser** -> CreateTenantUser200Response createTenantUser(tenantId, createTenantUserBody).execute(); +> CreateTenantUserResponse createTenantUser(tenantId, createTenantUserBody).execute(); @@ -1559,7 +1573,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateTenantUserBody createTenantUserBody = new CreateTenantUserBody(); // CreateTenantUserBody | try { - CreateTenantUser200Response result = apiInstance.createTenantUser(tenantId, createTenantUserBody) + CreateTenantUserResponse result = apiInstance.createTenantUser(tenantId, createTenantUserBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1582,7 +1596,7 @@ public class Example { ### Return type -[**CreateTenantUser200Response**](CreateTenantUser200Response.md) +[**CreateTenantUserResponse**](CreateTenantUserResponse.md) ### Authorization @@ -1597,10 +1611,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createTicket** -> CreateTicket200Response createTicket(tenantId, userId, createTicketBody).execute(); +> CreateTicketResponse createTicket(tenantId, userId, createTicketBody).execute(); @@ -1630,7 +1645,7 @@ public class Example { String userId = "userId_example"; // String | CreateTicketBody createTicketBody = new CreateTicketBody(); // CreateTicketBody | try { - CreateTicket200Response result = apiInstance.createTicket(tenantId, userId, createTicketBody) + CreateTicketResponse result = apiInstance.createTicket(tenantId, userId, createTicketBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1654,7 +1669,7 @@ public class Example { ### Return type -[**CreateTicket200Response**](CreateTicket200Response.md) +[**CreateTicketResponse**](CreateTicketResponse.md) ### Authorization @@ -1669,10 +1684,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createUserBadge** -> CreateUserBadge200Response createUserBadge(tenantId, createUserBadgeParams).execute(); +> APICreateUserBadgeResponse createUserBadge(tenantId, createUserBadgeParams).execute(); @@ -1701,7 +1717,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateUserBadgeParams createUserBadgeParams = new CreateUserBadgeParams(); // CreateUserBadgeParams | try { - CreateUserBadge200Response result = apiInstance.createUserBadge(tenantId, createUserBadgeParams) + APICreateUserBadgeResponse result = apiInstance.createUserBadge(tenantId, createUserBadgeParams) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1724,7 +1740,7 @@ public class Example { ### Return type -[**CreateUserBadge200Response**](CreateUserBadge200Response.md) +[**APICreateUserBadgeResponse**](APICreateUserBadgeResponse.md) ### Authorization @@ -1739,10 +1755,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createVote** -> VoteComment200Response createVote(tenantId, commentId, direction).userId(userId).anonUserId(anonUserId).execute(); +> VoteResponse createVote(tenantId, commentId, direction).userId(userId).anonUserId(anonUserId).execute(); @@ -1774,7 +1791,7 @@ public class Example { String userId = "userId_example"; // String | String anonUserId = "anonUserId_example"; // String | try { - VoteComment200Response result = apiInstance.createVote(tenantId, commentId, direction) + VoteResponse result = apiInstance.createVote(tenantId, commentId, direction) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -1802,7 +1819,7 @@ public class Example { ### Return type -[**VoteComment200Response**](VoteComment200Response.md) +[**VoteResponse**](VoteResponse.md) ### Authorization @@ -1817,10 +1834,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteComment** -> DeleteComment200Response deleteComment(tenantId, id).contextUserId(contextUserId).isLive(isLive).execute(); +> DeleteCommentResult deleteComment(tenantId, id).contextUserId(contextUserId).isLive(isLive).execute(); @@ -1851,7 +1869,7 @@ public class Example { String contextUserId = "contextUserId_example"; // String | Boolean isLive = true; // Boolean | try { - DeleteComment200Response result = apiInstance.deleteComment(tenantId, id) + DeleteCommentResult result = apiInstance.deleteComment(tenantId, id) .contextUserId(contextUserId) .isLive(isLive) .execute(); @@ -1878,7 +1896,7 @@ public class Example { ### Return type -[**DeleteComment200Response**](DeleteComment200Response.md) +[**DeleteCommentResult**](DeleteCommentResult.md) ### Authorization @@ -1893,10 +1911,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteDomainConfig** -> DeleteDomainConfig200Response deleteDomainConfig(tenantId, domain).execute(); +> DeleteDomainConfigResponse deleteDomainConfig(tenantId, domain).execute(); @@ -1925,7 +1944,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String domain = "domain_example"; // String | try { - DeleteDomainConfig200Response result = apiInstance.deleteDomainConfig(tenantId, domain) + DeleteDomainConfigResponse result = apiInstance.deleteDomainConfig(tenantId, domain) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1948,7 +1967,7 @@ public class Example { ### Return type -[**DeleteDomainConfig200Response**](DeleteDomainConfig200Response.md) +[**DeleteDomainConfigResponse**](DeleteDomainConfigResponse.md) ### Authorization @@ -1966,7 +1985,7 @@ public class Example { # **deleteEmailTemplate** -> FlagCommentPublic200Response deleteEmailTemplate(tenantId, id).execute(); +> APIEmptyResponse deleteEmailTemplate(tenantId, id).execute(); @@ -1995,7 +2014,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.deleteEmailTemplate(tenantId, id) + APIEmptyResponse result = apiInstance.deleteEmailTemplate(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2018,7 +2037,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2033,10 +2052,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteEmailTemplateRenderError** -> FlagCommentPublic200Response deleteEmailTemplateRenderError(tenantId, id, errorId).execute(); +> APIEmptyResponse deleteEmailTemplateRenderError(tenantId, id, errorId).execute(); @@ -2066,7 +2086,7 @@ public class Example { String id = "id_example"; // String | String errorId = "errorId_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.deleteEmailTemplateRenderError(tenantId, id, errorId) + APIEmptyResponse result = apiInstance.deleteEmailTemplateRenderError(tenantId, id, errorId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2090,7 +2110,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2105,10 +2125,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteHashTag** -> FlagCommentPublic200Response deleteHashTag(tag).tenantId(tenantId).deleteHashTagRequest(deleteHashTagRequest).execute(); +> APIEmptyResponse deleteHashTag(tag).tenantId(tenantId).deleteHashTagRequestBody(deleteHashTagRequestBody).execute(); @@ -2136,11 +2157,11 @@ public class Example { DefaultApi apiInstance = new DefaultApi(defaultClient); String tag = "tag_example"; // String | String tenantId = "tenantId_example"; // String | - DeleteHashTagRequest deleteHashTagRequest = new DeleteHashTagRequest(); // DeleteHashTagRequest | + DeleteHashTagRequestBody deleteHashTagRequestBody = new DeleteHashTagRequestBody(); // DeleteHashTagRequestBody | try { - FlagCommentPublic200Response result = apiInstance.deleteHashTag(tag) + APIEmptyResponse result = apiInstance.deleteHashTag(tag) .tenantId(tenantId) - .deleteHashTagRequest(deleteHashTagRequest) + .deleteHashTagRequestBody(deleteHashTagRequestBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2160,11 +2181,11 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **tag** | **String**| | | | **tenantId** | **String**| | [optional] | -| **deleteHashTagRequest** | [**DeleteHashTagRequest**](DeleteHashTagRequest.md)| | [optional] | +| **deleteHashTagRequestBody** | [**DeleteHashTagRequestBody**](DeleteHashTagRequestBody.md)| | [optional] | ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2179,10 +2200,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteModerator** -> FlagCommentPublic200Response deleteModerator(tenantId, id).sendEmail(sendEmail).execute(); +> APIEmptyResponse deleteModerator(tenantId, id).sendEmail(sendEmail).execute(); @@ -2212,7 +2234,7 @@ public class Example { String id = "id_example"; // String | String sendEmail = "sendEmail_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.deleteModerator(tenantId, id) + APIEmptyResponse result = apiInstance.deleteModerator(tenantId, id) .sendEmail(sendEmail) .execute(); System.out.println(result); @@ -2237,7 +2259,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2252,10 +2274,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteNotificationCount** -> FlagCommentPublic200Response deleteNotificationCount(tenantId, id).execute(); +> APIEmptyResponse deleteNotificationCount(tenantId, id).execute(); @@ -2284,7 +2307,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.deleteNotificationCount(tenantId, id) + APIEmptyResponse result = apiInstance.deleteNotificationCount(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2307,7 +2330,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2322,6 +2345,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deletePage** @@ -2395,7 +2419,7 @@ public class Example { # **deletePendingWebhookEvent** -> FlagCommentPublic200Response deletePendingWebhookEvent(tenantId, id).execute(); +> APIEmptyResponse deletePendingWebhookEvent(tenantId, id).execute(); @@ -2424,7 +2448,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.deletePendingWebhookEvent(tenantId, id) + APIEmptyResponse result = apiInstance.deletePendingWebhookEvent(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2447,7 +2471,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2462,10 +2486,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteQuestionConfig** -> FlagCommentPublic200Response deleteQuestionConfig(tenantId, id).execute(); +> APIEmptyResponse deleteQuestionConfig(tenantId, id).execute(); @@ -2494,7 +2519,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.deleteQuestionConfig(tenantId, id) + APIEmptyResponse result = apiInstance.deleteQuestionConfig(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2517,7 +2542,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2532,10 +2557,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteQuestionResult** -> FlagCommentPublic200Response deleteQuestionResult(tenantId, id).execute(); +> APIEmptyResponse deleteQuestionResult(tenantId, id).execute(); @@ -2564,7 +2590,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.deleteQuestionResult(tenantId, id) + APIEmptyResponse result = apiInstance.deleteQuestionResult(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2587,7 +2613,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2602,6 +2628,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteSSOUser** @@ -2754,7 +2781,7 @@ public class Example { # **deleteTenant** -> FlagCommentPublic200Response deleteTenant(tenantId, id).sure(sure).execute(); +> APIEmptyResponse deleteTenant(tenantId, id).sure(sure).execute(); @@ -2784,7 +2811,7 @@ public class Example { String id = "id_example"; // String | String sure = "sure_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.deleteTenant(tenantId, id) + APIEmptyResponse result = apiInstance.deleteTenant(tenantId, id) .sure(sure) .execute(); System.out.println(result); @@ -2809,7 +2836,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2824,10 +2851,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteTenantPackage** -> FlagCommentPublic200Response deleteTenantPackage(tenantId, id).execute(); +> APIEmptyResponse deleteTenantPackage(tenantId, id).execute(); @@ -2856,7 +2884,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.deleteTenantPackage(tenantId, id) + APIEmptyResponse result = apiInstance.deleteTenantPackage(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2879,7 +2907,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2894,10 +2922,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteTenantUser** -> FlagCommentPublic200Response deleteTenantUser(tenantId, id).deleteComments(deleteComments).commentDeleteMode(commentDeleteMode).execute(); +> APIEmptyResponse deleteTenantUser(tenantId, id).deleteComments(deleteComments).commentDeleteMode(commentDeleteMode).execute(); @@ -2928,7 +2957,7 @@ public class Example { String deleteComments = "deleteComments_example"; // String | String commentDeleteMode = "commentDeleteMode_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.deleteTenantUser(tenantId, id) + APIEmptyResponse result = apiInstance.deleteTenantUser(tenantId, id) .deleteComments(deleteComments) .commentDeleteMode(commentDeleteMode) .execute(); @@ -2955,7 +2984,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2970,10 +2999,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteUserBadge** -> UpdateUserBadge200Response deleteUserBadge(tenantId, id).execute(); +> APIEmptySuccessResponse deleteUserBadge(tenantId, id).execute(); @@ -3002,7 +3032,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - UpdateUserBadge200Response result = apiInstance.deleteUserBadge(tenantId, id) + APIEmptySuccessResponse result = apiInstance.deleteUserBadge(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -3025,7 +3055,7 @@ public class Example { ### Return type -[**UpdateUserBadge200Response**](UpdateUserBadge200Response.md) +[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization @@ -3040,10 +3070,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteVote** -> DeleteCommentVote200Response deleteVote(tenantId, id).editKey(editKey).execute(); +> VoteDeleteResponse deleteVote(tenantId, id).editKey(editKey).execute(); @@ -3073,7 +3104,7 @@ public class Example { String id = "id_example"; // String | String editKey = "editKey_example"; // String | try { - DeleteCommentVote200Response result = apiInstance.deleteVote(tenantId, id) + VoteDeleteResponse result = apiInstance.deleteVote(tenantId, id) .editKey(editKey) .execute(); System.out.println(result); @@ -3098,7 +3129,7 @@ public class Example { ### Return type -[**DeleteCommentVote200Response**](DeleteCommentVote200Response.md) +[**VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -3113,10 +3144,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **flagComment** -> FlagComment200Response flagComment(tenantId, id).userId(userId).anonUserId(anonUserId).execute(); +> FlagCommentResponse flagComment(tenantId, id).userId(userId).anonUserId(anonUserId).execute(); @@ -3147,7 +3179,7 @@ public class Example { String userId = "userId_example"; // String | String anonUserId = "anonUserId_example"; // String | try { - FlagComment200Response result = apiInstance.flagComment(tenantId, id) + FlagCommentResponse result = apiInstance.flagComment(tenantId, id) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -3174,7 +3206,7 @@ public class Example { ### Return type -[**FlagComment200Response**](FlagComment200Response.md) +[**FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -3189,10 +3221,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getAuditLogs** -> GetAuditLogs200Response getAuditLogs(tenantId).limit(limit).skip(skip).order(order).after(after).before(before).execute(); +> GetAuditLogsResponse getAuditLogs(tenantId).limit(limit).skip(skip).order(order).after(after).before(before).execute(); @@ -3225,7 +3258,7 @@ public class Example { Double after = 3.4D; // Double | Double before = 3.4D; // Double | try { - GetAuditLogs200Response result = apiInstance.getAuditLogs(tenantId) + GetAuditLogsResponse result = apiInstance.getAuditLogs(tenantId) .limit(limit) .skip(skip) .order(order) @@ -3257,7 +3290,7 @@ public class Example { ### Return type -[**GetAuditLogs200Response**](GetAuditLogs200Response.md) +[**GetAuditLogsResponse**](GetAuditLogsResponse.md) ### Authorization @@ -3272,10 +3305,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getCachedNotificationCount** -> GetCachedNotificationCount200Response getCachedNotificationCount(tenantId, id).execute(); +> GetCachedNotificationCountResponse getCachedNotificationCount(tenantId, id).execute(); @@ -3304,7 +3338,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetCachedNotificationCount200Response result = apiInstance.getCachedNotificationCount(tenantId, id) + GetCachedNotificationCountResponse result = apiInstance.getCachedNotificationCount(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -3327,7 +3361,7 @@ public class Example { ### Return type -[**GetCachedNotificationCount200Response**](GetCachedNotificationCount200Response.md) +[**GetCachedNotificationCountResponse**](GetCachedNotificationCountResponse.md) ### Authorization @@ -3342,10 +3376,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getComment** -> GetComment200Response getComment(tenantId, id).execute(); +> APIGetCommentResponse getComment(tenantId, id).execute(); @@ -3374,7 +3409,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetComment200Response result = apiInstance.getComment(tenantId, id) + APIGetCommentResponse result = apiInstance.getComment(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -3397,7 +3432,7 @@ public class Example { ### Return type -[**GetComment200Response**](GetComment200Response.md) +[**APIGetCommentResponse**](APIGetCommentResponse.md) ### Authorization @@ -3412,10 +3447,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getComments** -> GetComments200Response getComments(tenantId).page(page).limit(limit).skip(skip).asTree(asTree).skipChildren(skipChildren).limitChildren(limitChildren).maxTreeDepth(maxTreeDepth).urlId(urlId).userId(userId).anonUserId(anonUserId).contextUserId(contextUserId).hashTag(hashTag).parentId(parentId).direction(direction).execute(); +> APIGetCommentsResponse getComments(tenantId).page(page).limit(limit).skip(skip).asTree(asTree).skipChildren(skipChildren).limitChildren(limitChildren).maxTreeDepth(maxTreeDepth).urlId(urlId).userId(userId).anonUserId(anonUserId).contextUserId(contextUserId).hashTag(hashTag).parentId(parentId).direction(direction).fromDate(fromDate).toDate(toDate).execute(); @@ -3456,8 +3492,10 @@ public class Example { String hashTag = "hashTag_example"; // String | String parentId = "parentId_example"; // String | SortDirections direction = SortDirections.fromValue("OF"); // SortDirections | + Long fromDate = 56L; // Long | + Long toDate = 56L; // Long | try { - GetComments200Response result = apiInstance.getComments(tenantId) + APIGetCommentsResponse result = apiInstance.getComments(tenantId) .page(page) .limit(limit) .skip(skip) @@ -3472,6 +3510,8 @@ public class Example { .hashTag(hashTag) .parentId(parentId) .direction(direction) + .fromDate(fromDate) + .toDate(toDate) .execute(); System.out.println(result); } catch (ApiException e) { @@ -3504,10 +3544,12 @@ public class Example { | **hashTag** | **String**| | [optional] | | **parentId** | **String**| | [optional] | | **direction** | [**SortDirections**](.md)| | [optional] [enum: OF, NF, MR] | +| **fromDate** | **Long**| | [optional] | +| **toDate** | **Long**| | [optional] | ### Return type -[**GetComments200Response**](GetComments200Response.md) +[**APIGetCommentsResponse**](APIGetCommentsResponse.md) ### Authorization @@ -3522,10 +3564,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getDomainConfig** -> GetDomainConfig200Response getDomainConfig(tenantId, domain).execute(); +> GetDomainConfigResponse getDomainConfig(tenantId, domain).execute(); @@ -3554,7 +3597,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String domain = "domain_example"; // String | try { - GetDomainConfig200Response result = apiInstance.getDomainConfig(tenantId, domain) + GetDomainConfigResponse result = apiInstance.getDomainConfig(tenantId, domain) .execute(); System.out.println(result); } catch (ApiException e) { @@ -3577,7 +3620,7 @@ public class Example { ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**GetDomainConfigResponse**](GetDomainConfigResponse.md) ### Authorization @@ -3595,7 +3638,7 @@ public class Example { # **getDomainConfigs** -> GetDomainConfigs200Response getDomainConfigs(tenantId).execute(); +> GetDomainConfigsResponse getDomainConfigs(tenantId).execute(); @@ -3623,7 +3666,7 @@ public class Example { DefaultApi apiInstance = new DefaultApi(defaultClient); String tenantId = "tenantId_example"; // String | try { - GetDomainConfigs200Response result = apiInstance.getDomainConfigs(tenantId) + GetDomainConfigsResponse result = apiInstance.getDomainConfigs(tenantId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -3645,7 +3688,7 @@ public class Example { ### Return type -[**GetDomainConfigs200Response**](GetDomainConfigs200Response.md) +[**GetDomainConfigsResponse**](GetDomainConfigsResponse.md) ### Authorization @@ -3663,7 +3706,7 @@ public class Example { # **getEmailTemplate** -> GetEmailTemplate200Response getEmailTemplate(tenantId, id).execute(); +> GetEmailTemplateResponse getEmailTemplate(tenantId, id).execute(); @@ -3692,7 +3735,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetEmailTemplate200Response result = apiInstance.getEmailTemplate(tenantId, id) + GetEmailTemplateResponse result = apiInstance.getEmailTemplate(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -3715,7 +3758,7 @@ public class Example { ### Return type -[**GetEmailTemplate200Response**](GetEmailTemplate200Response.md) +[**GetEmailTemplateResponse**](GetEmailTemplateResponse.md) ### Authorization @@ -3730,10 +3773,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getEmailTemplateDefinitions** -> GetEmailTemplateDefinitions200Response getEmailTemplateDefinitions(tenantId).execute(); +> GetEmailTemplateDefinitionsResponse getEmailTemplateDefinitions(tenantId).execute(); @@ -3761,7 +3805,7 @@ public class Example { DefaultApi apiInstance = new DefaultApi(defaultClient); String tenantId = "tenantId_example"; // String | try { - GetEmailTemplateDefinitions200Response result = apiInstance.getEmailTemplateDefinitions(tenantId) + GetEmailTemplateDefinitionsResponse result = apiInstance.getEmailTemplateDefinitions(tenantId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -3783,7 +3827,7 @@ public class Example { ### Return type -[**GetEmailTemplateDefinitions200Response**](GetEmailTemplateDefinitions200Response.md) +[**GetEmailTemplateDefinitionsResponse**](GetEmailTemplateDefinitionsResponse.md) ### Authorization @@ -3798,10 +3842,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getEmailTemplateRenderErrors** -> GetEmailTemplateRenderErrors200Response getEmailTemplateRenderErrors(tenantId, id).skip(skip).execute(); +> GetEmailTemplateRenderErrorsResponse getEmailTemplateRenderErrors(tenantId, id).skip(skip).execute(); @@ -3831,7 +3876,7 @@ public class Example { String id = "id_example"; // String | Double skip = 3.4D; // Double | try { - GetEmailTemplateRenderErrors200Response result = apiInstance.getEmailTemplateRenderErrors(tenantId, id) + GetEmailTemplateRenderErrorsResponse result = apiInstance.getEmailTemplateRenderErrors(tenantId, id) .skip(skip) .execute(); System.out.println(result); @@ -3856,7 +3901,7 @@ public class Example { ### Return type -[**GetEmailTemplateRenderErrors200Response**](GetEmailTemplateRenderErrors200Response.md) +[**GetEmailTemplateRenderErrorsResponse**](GetEmailTemplateRenderErrorsResponse.md) ### Authorization @@ -3871,10 +3916,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getEmailTemplates** -> GetEmailTemplates200Response getEmailTemplates(tenantId).skip(skip).execute(); +> GetEmailTemplatesResponse getEmailTemplates(tenantId).skip(skip).execute(); @@ -3903,7 +3949,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double skip = 3.4D; // Double | try { - GetEmailTemplates200Response result = apiInstance.getEmailTemplates(tenantId) + GetEmailTemplatesResponse result = apiInstance.getEmailTemplates(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -3927,7 +3973,7 @@ public class Example { ### Return type -[**GetEmailTemplates200Response**](GetEmailTemplates200Response.md) +[**GetEmailTemplatesResponse**](GetEmailTemplatesResponse.md) ### Authorization @@ -3942,10 +3988,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getFeedPosts** -> GetFeedPosts200Response getFeedPosts(tenantId).afterId(afterId).limit(limit).tags(tags).execute(); +> GetFeedPostsResponse getFeedPosts(tenantId).afterId(afterId).limit(limit).tags(tags).execute(); @@ -3978,7 +4025,7 @@ public class Example { Integer limit = 56; // Integer | List tags = Arrays.asList(); // List | try { - GetFeedPosts200Response result = apiInstance.getFeedPosts(tenantId) + GetFeedPostsResponse result = apiInstance.getFeedPosts(tenantId) .afterId(afterId) .limit(limit) .tags(tags) @@ -4006,7 +4053,7 @@ public class Example { ### Return type -[**GetFeedPosts200Response**](GetFeedPosts200Response.md) +[**GetFeedPostsResponse**](GetFeedPostsResponse.md) ### Authorization @@ -4021,10 +4068,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getHashTags** -> GetHashTags200Response getHashTags(tenantId).page(page).execute(); +> GetHashTagsResponse getHashTags(tenantId).page(page).execute(); @@ -4053,7 +4101,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double page = 3.4D; // Double | try { - GetHashTags200Response result = apiInstance.getHashTags(tenantId) + GetHashTagsResponse result = apiInstance.getHashTags(tenantId) .page(page) .execute(); System.out.println(result); @@ -4077,7 +4125,7 @@ public class Example { ### Return type -[**GetHashTags200Response**](GetHashTags200Response.md) +[**GetHashTagsResponse**](GetHashTagsResponse.md) ### Authorization @@ -4092,10 +4140,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getModerator** -> GetModerator200Response getModerator(tenantId, id).execute(); +> GetModeratorResponse getModerator(tenantId, id).execute(); @@ -4124,7 +4173,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetModerator200Response result = apiInstance.getModerator(tenantId, id) + GetModeratorResponse result = apiInstance.getModerator(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -4147,7 +4196,7 @@ public class Example { ### Return type -[**GetModerator200Response**](GetModerator200Response.md) +[**GetModeratorResponse**](GetModeratorResponse.md) ### Authorization @@ -4162,10 +4211,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getModerators** -> GetModerators200Response getModerators(tenantId).skip(skip).execute(); +> GetModeratorsResponse getModerators(tenantId).skip(skip).execute(); @@ -4194,7 +4244,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double skip = 3.4D; // Double | try { - GetModerators200Response result = apiInstance.getModerators(tenantId) + GetModeratorsResponse result = apiInstance.getModerators(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -4218,7 +4268,7 @@ public class Example { ### Return type -[**GetModerators200Response**](GetModerators200Response.md) +[**GetModeratorsResponse**](GetModeratorsResponse.md) ### Authorization @@ -4233,10 +4283,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getNotificationCount** -> GetNotificationCount200Response getNotificationCount(tenantId).userId(userId).urlId(urlId).fromCommentId(fromCommentId).viewed(viewed).type(type).execute(); +> GetNotificationCountResponse getNotificationCount(tenantId).userId(userId).urlId(urlId).fromCommentId(fromCommentId).viewed(viewed).type(type).execute(); @@ -4269,7 +4320,7 @@ public class Example { Boolean viewed = true; // Boolean | String type = "type_example"; // String | try { - GetNotificationCount200Response result = apiInstance.getNotificationCount(tenantId) + GetNotificationCountResponse result = apiInstance.getNotificationCount(tenantId) .userId(userId) .urlId(urlId) .fromCommentId(fromCommentId) @@ -4301,7 +4352,7 @@ public class Example { ### Return type -[**GetNotificationCount200Response**](GetNotificationCount200Response.md) +[**GetNotificationCountResponse**](GetNotificationCountResponse.md) ### Authorization @@ -4316,10 +4367,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getNotifications** -> GetNotifications200Response getNotifications(tenantId).userId(userId).urlId(urlId).fromCommentId(fromCommentId).viewed(viewed).type(type).skip(skip).execute(); +> GetNotificationsResponse getNotifications(tenantId).userId(userId).urlId(urlId).fromCommentId(fromCommentId).viewed(viewed).type(type).skip(skip).execute(); @@ -4353,7 +4405,7 @@ public class Example { String type = "type_example"; // String | Double skip = 3.4D; // Double | try { - GetNotifications200Response result = apiInstance.getNotifications(tenantId) + GetNotificationsResponse result = apiInstance.getNotifications(tenantId) .userId(userId) .urlId(urlId) .fromCommentId(fromCommentId) @@ -4387,7 +4439,7 @@ public class Example { ### Return type -[**GetNotifications200Response**](GetNotifications200Response.md) +[**GetNotificationsResponse**](GetNotificationsResponse.md) ### Authorization @@ -4402,6 +4454,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getPageByURLId** @@ -4543,7 +4596,7 @@ public class Example { # **getPendingWebhookEventCount** -> GetPendingWebhookEventCount200Response getPendingWebhookEventCount(tenantId).commentId(commentId).externalId(externalId).eventType(eventType).type(type).domain(domain).attemptCountGT(attemptCountGT).execute(); +> GetPendingWebhookEventCountResponse getPendingWebhookEventCount(tenantId).commentId(commentId).externalId(externalId).eventType(eventType).type(type).domain(domain).attemptCountGT(attemptCountGT).execute(); @@ -4577,7 +4630,7 @@ public class Example { String domain = "domain_example"; // String | Double attemptCountGT = 3.4D; // Double | try { - GetPendingWebhookEventCount200Response result = apiInstance.getPendingWebhookEventCount(tenantId) + GetPendingWebhookEventCountResponse result = apiInstance.getPendingWebhookEventCount(tenantId) .commentId(commentId) .externalId(externalId) .eventType(eventType) @@ -4611,7 +4664,7 @@ public class Example { ### Return type -[**GetPendingWebhookEventCount200Response**](GetPendingWebhookEventCount200Response.md) +[**GetPendingWebhookEventCountResponse**](GetPendingWebhookEventCountResponse.md) ### Authorization @@ -4626,10 +4679,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getPendingWebhookEvents** -> GetPendingWebhookEvents200Response getPendingWebhookEvents(tenantId).commentId(commentId).externalId(externalId).eventType(eventType).type(type).domain(domain).attemptCountGT(attemptCountGT).skip(skip).execute(); +> GetPendingWebhookEventsResponse getPendingWebhookEvents(tenantId).commentId(commentId).externalId(externalId).eventType(eventType).type(type).domain(domain).attemptCountGT(attemptCountGT).skip(skip).execute(); @@ -4664,7 +4718,7 @@ public class Example { Double attemptCountGT = 3.4D; // Double | Double skip = 3.4D; // Double | try { - GetPendingWebhookEvents200Response result = apiInstance.getPendingWebhookEvents(tenantId) + GetPendingWebhookEventsResponse result = apiInstance.getPendingWebhookEvents(tenantId) .commentId(commentId) .externalId(externalId) .eventType(eventType) @@ -4700,7 +4754,7 @@ public class Example { ### Return type -[**GetPendingWebhookEvents200Response**](GetPendingWebhookEvents200Response.md) +[**GetPendingWebhookEventsResponse**](GetPendingWebhookEventsResponse.md) ### Authorization @@ -4715,10 +4769,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getQuestionConfig** -> GetQuestionConfig200Response getQuestionConfig(tenantId, id).execute(); +> GetQuestionConfigResponse getQuestionConfig(tenantId, id).execute(); @@ -4747,7 +4802,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetQuestionConfig200Response result = apiInstance.getQuestionConfig(tenantId, id) + GetQuestionConfigResponse result = apiInstance.getQuestionConfig(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -4770,7 +4825,7 @@ public class Example { ### Return type -[**GetQuestionConfig200Response**](GetQuestionConfig200Response.md) +[**GetQuestionConfigResponse**](GetQuestionConfigResponse.md) ### Authorization @@ -4785,10 +4840,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getQuestionConfigs** -> GetQuestionConfigs200Response getQuestionConfigs(tenantId).skip(skip).execute(); +> GetQuestionConfigsResponse getQuestionConfigs(tenantId).skip(skip).execute(); @@ -4817,7 +4873,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double skip = 3.4D; // Double | try { - GetQuestionConfigs200Response result = apiInstance.getQuestionConfigs(tenantId) + GetQuestionConfigsResponse result = apiInstance.getQuestionConfigs(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -4841,7 +4897,7 @@ public class Example { ### Return type -[**GetQuestionConfigs200Response**](GetQuestionConfigs200Response.md) +[**GetQuestionConfigsResponse**](GetQuestionConfigsResponse.md) ### Authorization @@ -4856,10 +4912,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getQuestionResult** -> GetQuestionResult200Response getQuestionResult(tenantId, id).execute(); +> GetQuestionResultResponse getQuestionResult(tenantId, id).execute(); @@ -4888,7 +4945,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetQuestionResult200Response result = apiInstance.getQuestionResult(tenantId, id) + GetQuestionResultResponse result = apiInstance.getQuestionResult(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -4911,7 +4968,7 @@ public class Example { ### Return type -[**GetQuestionResult200Response**](GetQuestionResult200Response.md) +[**GetQuestionResultResponse**](GetQuestionResultResponse.md) ### Authorization @@ -4926,10 +4983,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getQuestionResults** -> GetQuestionResults200Response getQuestionResults(tenantId).urlId(urlId).userId(userId).startDate(startDate).questionId(questionId).questionIds(questionIds).skip(skip).execute(); +> GetQuestionResultsResponse getQuestionResults(tenantId).urlId(urlId).userId(userId).startDate(startDate).questionId(questionId).questionIds(questionIds).skip(skip).execute(); @@ -4963,7 +5021,7 @@ public class Example { String questionIds = "questionIds_example"; // String | Double skip = 3.4D; // Double | try { - GetQuestionResults200Response result = apiInstance.getQuestionResults(tenantId) + GetQuestionResultsResponse result = apiInstance.getQuestionResults(tenantId) .urlId(urlId) .userId(userId) .startDate(startDate) @@ -4997,7 +5055,7 @@ public class Example { ### Return type -[**GetQuestionResults200Response**](GetQuestionResults200Response.md) +[**GetQuestionResultsResponse**](GetQuestionResultsResponse.md) ### Authorization @@ -5012,6 +5070,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getSSOUserByEmail** @@ -5155,7 +5214,7 @@ public class Example { # **getSSOUsers** -> GetSSOUsers200Response getSSOUsers(tenantId).skip(skip).execute(); +> GetSSOUsersResponse getSSOUsers(tenantId).skip(skip).execute(); @@ -5184,7 +5243,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Integer skip = 56; // Integer | try { - GetSSOUsers200Response result = apiInstance.getSSOUsers(tenantId) + GetSSOUsersResponse result = apiInstance.getSSOUsers(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -5208,7 +5267,7 @@ public class Example { ### Return type -[**GetSSOUsers200Response**](GetSSOUsers200Response.md) +[**GetSSOUsersResponse**](GetSSOUsersResponse.md) ### Authorization @@ -5297,7 +5356,7 @@ public class Example { # **getTenant** -> GetTenant200Response getTenant(tenantId, id).execute(); +> GetTenantResponse getTenant(tenantId, id).execute(); @@ -5326,7 +5385,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetTenant200Response result = apiInstance.getTenant(tenantId, id) + GetTenantResponse result = apiInstance.getTenant(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -5349,7 +5408,7 @@ public class Example { ### Return type -[**GetTenant200Response**](GetTenant200Response.md) +[**GetTenantResponse**](GetTenantResponse.md) ### Authorization @@ -5364,10 +5423,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTenantDailyUsages** -> GetTenantDailyUsages200Response getTenantDailyUsages(tenantId).yearNumber(yearNumber).monthNumber(monthNumber).dayNumber(dayNumber).skip(skip).execute(); +> GetTenantDailyUsagesResponse getTenantDailyUsages(tenantId).yearNumber(yearNumber).monthNumber(monthNumber).dayNumber(dayNumber).skip(skip).execute(); @@ -5399,7 +5459,7 @@ public class Example { Double dayNumber = 3.4D; // Double | Double skip = 3.4D; // Double | try { - GetTenantDailyUsages200Response result = apiInstance.getTenantDailyUsages(tenantId) + GetTenantDailyUsagesResponse result = apiInstance.getTenantDailyUsages(tenantId) .yearNumber(yearNumber) .monthNumber(monthNumber) .dayNumber(dayNumber) @@ -5429,7 +5489,7 @@ public class Example { ### Return type -[**GetTenantDailyUsages200Response**](GetTenantDailyUsages200Response.md) +[**GetTenantDailyUsagesResponse**](GetTenantDailyUsagesResponse.md) ### Authorization @@ -5444,10 +5504,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTenantPackage** -> GetTenantPackage200Response getTenantPackage(tenantId, id).execute(); +> GetTenantPackageResponse getTenantPackage(tenantId, id).execute(); @@ -5476,7 +5537,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetTenantPackage200Response result = apiInstance.getTenantPackage(tenantId, id) + GetTenantPackageResponse result = apiInstance.getTenantPackage(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -5499,7 +5560,7 @@ public class Example { ### Return type -[**GetTenantPackage200Response**](GetTenantPackage200Response.md) +[**GetTenantPackageResponse**](GetTenantPackageResponse.md) ### Authorization @@ -5514,10 +5575,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTenantPackages** -> GetTenantPackages200Response getTenantPackages(tenantId).skip(skip).execute(); +> GetTenantPackagesResponse getTenantPackages(tenantId).skip(skip).execute(); @@ -5546,7 +5608,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double skip = 3.4D; // Double | try { - GetTenantPackages200Response result = apiInstance.getTenantPackages(tenantId) + GetTenantPackagesResponse result = apiInstance.getTenantPackages(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -5570,7 +5632,7 @@ public class Example { ### Return type -[**GetTenantPackages200Response**](GetTenantPackages200Response.md) +[**GetTenantPackagesResponse**](GetTenantPackagesResponse.md) ### Authorization @@ -5585,10 +5647,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTenantUser** -> GetTenantUser200Response getTenantUser(tenantId, id).execute(); +> GetTenantUserResponse getTenantUser(tenantId, id).execute(); @@ -5617,7 +5680,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetTenantUser200Response result = apiInstance.getTenantUser(tenantId, id) + GetTenantUserResponse result = apiInstance.getTenantUser(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -5640,7 +5703,7 @@ public class Example { ### Return type -[**GetTenantUser200Response**](GetTenantUser200Response.md) +[**GetTenantUserResponse**](GetTenantUserResponse.md) ### Authorization @@ -5655,10 +5718,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTenantUsers** -> GetTenantUsers200Response getTenantUsers(tenantId).skip(skip).execute(); +> GetTenantUsersResponse getTenantUsers(tenantId).skip(skip).execute(); @@ -5687,7 +5751,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double skip = 3.4D; // Double | try { - GetTenantUsers200Response result = apiInstance.getTenantUsers(tenantId) + GetTenantUsersResponse result = apiInstance.getTenantUsers(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -5711,7 +5775,7 @@ public class Example { ### Return type -[**GetTenantUsers200Response**](GetTenantUsers200Response.md) +[**GetTenantUsersResponse**](GetTenantUsersResponse.md) ### Authorization @@ -5726,10 +5790,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTenants** -> GetTenants200Response getTenants(tenantId).meta(meta).skip(skip).execute(); +> GetTenantsResponse getTenants(tenantId).meta(meta).skip(skip).execute(); @@ -5759,7 +5824,7 @@ public class Example { String meta = "meta_example"; // String | Double skip = 3.4D; // Double | try { - GetTenants200Response result = apiInstance.getTenants(tenantId) + GetTenantsResponse result = apiInstance.getTenants(tenantId) .meta(meta) .skip(skip) .execute(); @@ -5785,7 +5850,7 @@ public class Example { ### Return type -[**GetTenants200Response**](GetTenants200Response.md) +[**GetTenantsResponse**](GetTenantsResponse.md) ### Authorization @@ -5800,10 +5865,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTicket** -> GetTicket200Response getTicket(tenantId, id).userId(userId).execute(); +> GetTicketResponse getTicket(tenantId, id).userId(userId).execute(); @@ -5833,7 +5899,7 @@ public class Example { String id = "id_example"; // String | String userId = "userId_example"; // String | try { - GetTicket200Response result = apiInstance.getTicket(tenantId, id) + GetTicketResponse result = apiInstance.getTicket(tenantId, id) .userId(userId) .execute(); System.out.println(result); @@ -5858,7 +5924,7 @@ public class Example { ### Return type -[**GetTicket200Response**](GetTicket200Response.md) +[**GetTicketResponse**](GetTicketResponse.md) ### Authorization @@ -5873,10 +5939,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTickets** -> GetTickets200Response getTickets(tenantId).userId(userId).state(state).skip(skip).limit(limit).execute(); +> GetTicketsResponse getTickets(tenantId).userId(userId).state(state).skip(skip).limit(limit).execute(); @@ -5908,7 +5975,7 @@ public class Example { Double skip = 3.4D; // Double | Double limit = 3.4D; // Double | try { - GetTickets200Response result = apiInstance.getTickets(tenantId) + GetTicketsResponse result = apiInstance.getTickets(tenantId) .userId(userId) .state(state) .skip(skip) @@ -5938,7 +6005,7 @@ public class Example { ### Return type -[**GetTickets200Response**](GetTickets200Response.md) +[**GetTicketsResponse**](GetTicketsResponse.md) ### Authorization @@ -5953,10 +6020,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUser** -> GetUser200Response getUser(tenantId, id).execute(); +> GetUserResponse getUser(tenantId, id).execute(); @@ -5985,7 +6053,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetUser200Response result = apiInstance.getUser(tenantId, id) + GetUserResponse result = apiInstance.getUser(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6008,7 +6076,7 @@ public class Example { ### Return type -[**GetUser200Response**](GetUser200Response.md) +[**GetUserResponse**](GetUserResponse.md) ### Authorization @@ -6023,10 +6091,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUserBadge** -> GetUserBadge200Response getUserBadge(tenantId, id).execute(); +> APIGetUserBadgeResponse getUserBadge(tenantId, id).execute(); @@ -6055,7 +6124,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetUserBadge200Response result = apiInstance.getUserBadge(tenantId, id) + APIGetUserBadgeResponse result = apiInstance.getUserBadge(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6078,7 +6147,7 @@ public class Example { ### Return type -[**GetUserBadge200Response**](GetUserBadge200Response.md) +[**APIGetUserBadgeResponse**](APIGetUserBadgeResponse.md) ### Authorization @@ -6093,10 +6162,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUserBadgeProgressById** -> GetUserBadgeProgressById200Response getUserBadgeProgressById(tenantId, id).execute(); +> APIGetUserBadgeProgressResponse getUserBadgeProgressById(tenantId, id).execute(); @@ -6125,7 +6195,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetUserBadgeProgressById200Response result = apiInstance.getUserBadgeProgressById(tenantId, id) + APIGetUserBadgeProgressResponse result = apiInstance.getUserBadgeProgressById(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6148,7 +6218,7 @@ public class Example { ### Return type -[**GetUserBadgeProgressById200Response**](GetUserBadgeProgressById200Response.md) +[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -6163,10 +6233,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUserBadgeProgressByUserId** -> GetUserBadgeProgressById200Response getUserBadgeProgressByUserId(tenantId, userId).execute(); +> APIGetUserBadgeProgressResponse getUserBadgeProgressByUserId(tenantId, userId).execute(); @@ -6195,7 +6266,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String userId = "userId_example"; // String | try { - GetUserBadgeProgressById200Response result = apiInstance.getUserBadgeProgressByUserId(tenantId, userId) + APIGetUserBadgeProgressResponse result = apiInstance.getUserBadgeProgressByUserId(tenantId, userId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6218,7 +6289,7 @@ public class Example { ### Return type -[**GetUserBadgeProgressById200Response**](GetUserBadgeProgressById200Response.md) +[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -6233,10 +6304,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUserBadgeProgressList** -> GetUserBadgeProgressList200Response getUserBadgeProgressList(tenantId).userId(userId).limit(limit).skip(skip).execute(); +> APIGetUserBadgeProgressListResponse getUserBadgeProgressList(tenantId).userId(userId).limit(limit).skip(skip).execute(); @@ -6267,7 +6339,7 @@ public class Example { Double limit = 3.4D; // Double | Double skip = 3.4D; // Double | try { - GetUserBadgeProgressList200Response result = apiInstance.getUserBadgeProgressList(tenantId) + APIGetUserBadgeProgressListResponse result = apiInstance.getUserBadgeProgressList(tenantId) .userId(userId) .limit(limit) .skip(skip) @@ -6295,7 +6367,7 @@ public class Example { ### Return type -[**GetUserBadgeProgressList200Response**](GetUserBadgeProgressList200Response.md) +[**APIGetUserBadgeProgressListResponse**](APIGetUserBadgeProgressListResponse.md) ### Authorization @@ -6310,10 +6382,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUserBadges** -> GetUserBadges200Response getUserBadges(tenantId).userId(userId).badgeId(badgeId).type(type).displayedOnComments(displayedOnComments).limit(limit).skip(skip).execute(); +> APIGetUserBadgesResponse getUserBadges(tenantId).userId(userId).badgeId(badgeId).type(type).displayedOnComments(displayedOnComments).limit(limit).skip(skip).execute(); @@ -6347,7 +6420,7 @@ public class Example { Double limit = 3.4D; // Double | Double skip = 3.4D; // Double | try { - GetUserBadges200Response result = apiInstance.getUserBadges(tenantId) + APIGetUserBadgesResponse result = apiInstance.getUserBadges(tenantId) .userId(userId) .badgeId(badgeId) .type(type) @@ -6381,7 +6454,7 @@ public class Example { ### Return type -[**GetUserBadges200Response**](GetUserBadges200Response.md) +[**APIGetUserBadgesResponse**](APIGetUserBadgesResponse.md) ### Authorization @@ -6396,10 +6469,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getVotes** -> GetVotes200Response getVotes(tenantId, urlId).execute(); +> GetVotesResponse getVotes(tenantId, urlId).execute(); @@ -6428,7 +6502,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String urlId = "urlId_example"; // String | try { - GetVotes200Response result = apiInstance.getVotes(tenantId, urlId) + GetVotesResponse result = apiInstance.getVotes(tenantId, urlId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6451,7 +6525,7 @@ public class Example { ### Return type -[**GetVotes200Response**](GetVotes200Response.md) +[**GetVotesResponse**](GetVotesResponse.md) ### Authorization @@ -6466,10 +6540,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getVotesForUser** -> GetVotesForUser200Response getVotesForUser(tenantId, urlId).userId(userId).anonUserId(anonUserId).execute(); +> GetVotesForUserResponse getVotesForUser(tenantId, urlId).userId(userId).anonUserId(anonUserId).execute(); @@ -6500,7 +6575,7 @@ public class Example { String userId = "userId_example"; // String | String anonUserId = "anonUserId_example"; // String | try { - GetVotesForUser200Response result = apiInstance.getVotesForUser(tenantId, urlId) + GetVotesForUserResponse result = apiInstance.getVotesForUser(tenantId, urlId) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -6527,7 +6602,7 @@ public class Example { ### Return type -[**GetVotesForUser200Response**](GetVotesForUser200Response.md) +[**GetVotesForUserResponse**](GetVotesForUserResponse.md) ### Authorization @@ -6542,10 +6617,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **patchDomainConfig** -> GetDomainConfig200Response patchDomainConfig(tenantId, domainToUpdate, patchDomainConfigParams).execute(); +> PatchDomainConfigResponse patchDomainConfig(tenantId, domainToUpdate, patchDomainConfigParams).execute(); @@ -6575,7 +6651,7 @@ public class Example { String domainToUpdate = "domainToUpdate_example"; // String | PatchDomainConfigParams patchDomainConfigParams = new PatchDomainConfigParams(); // PatchDomainConfigParams | try { - GetDomainConfig200Response result = apiInstance.patchDomainConfig(tenantId, domainToUpdate, patchDomainConfigParams) + PatchDomainConfigResponse result = apiInstance.patchDomainConfig(tenantId, domainToUpdate, patchDomainConfigParams) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6599,7 +6675,7 @@ public class Example { ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**PatchDomainConfigResponse**](PatchDomainConfigResponse.md) ### Authorization @@ -6617,7 +6693,7 @@ public class Example { # **patchHashTag** -> PatchHashTag200Response patchHashTag(tag).tenantId(tenantId).updateHashTagBody(updateHashTagBody).execute(); +> UpdateHashTagResponse patchHashTag(tag).tenantId(tenantId).updateHashTagBody(updateHashTagBody).execute(); @@ -6647,7 +6723,7 @@ public class Example { String tenantId = "tenantId_example"; // String | UpdateHashTagBody updateHashTagBody = new UpdateHashTagBody(); // UpdateHashTagBody | try { - PatchHashTag200Response result = apiInstance.patchHashTag(tag) + UpdateHashTagResponse result = apiInstance.patchHashTag(tag) .tenantId(tenantId) .updateHashTagBody(updateHashTagBody) .execute(); @@ -6673,7 +6749,7 @@ public class Example { ### Return type -[**PatchHashTag200Response**](PatchHashTag200Response.md) +[**UpdateHashTagResponse**](UpdateHashTagResponse.md) ### Authorization @@ -6688,6 +6764,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **patchPage** @@ -6838,7 +6915,7 @@ public class Example { # **putDomainConfig** -> GetDomainConfig200Response putDomainConfig(tenantId, domainToUpdate, updateDomainConfigParams).execute(); +> PutDomainConfigResponse putDomainConfig(tenantId, domainToUpdate, updateDomainConfigParams).execute(); @@ -6868,7 +6945,7 @@ public class Example { String domainToUpdate = "domainToUpdate_example"; // String | UpdateDomainConfigParams updateDomainConfigParams = new UpdateDomainConfigParams(); // UpdateDomainConfigParams | try { - GetDomainConfig200Response result = apiInstance.putDomainConfig(tenantId, domainToUpdate, updateDomainConfigParams) + PutDomainConfigResponse result = apiInstance.putDomainConfig(tenantId, domainToUpdate, updateDomainConfigParams) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6892,7 +6969,7 @@ public class Example { ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**PutDomainConfigResponse**](PutDomainConfigResponse.md) ### Authorization @@ -6985,7 +7062,7 @@ public class Example { # **renderEmailTemplate** -> RenderEmailTemplate200Response renderEmailTemplate(tenantId, renderEmailTemplateBody).locale(locale).execute(); +> RenderEmailTemplateResponse renderEmailTemplate(tenantId, renderEmailTemplateBody).locale(locale).execute(); @@ -7015,7 +7092,7 @@ public class Example { RenderEmailTemplateBody renderEmailTemplateBody = new RenderEmailTemplateBody(); // RenderEmailTemplateBody | String locale = "locale_example"; // String | try { - RenderEmailTemplate200Response result = apiInstance.renderEmailTemplate(tenantId, renderEmailTemplateBody) + RenderEmailTemplateResponse result = apiInstance.renderEmailTemplate(tenantId, renderEmailTemplateBody) .locale(locale) .execute(); System.out.println(result); @@ -7040,7 +7117,7 @@ public class Example { ### Return type -[**RenderEmailTemplate200Response**](RenderEmailTemplate200Response.md) +[**RenderEmailTemplateResponse**](RenderEmailTemplateResponse.md) ### Authorization @@ -7055,10 +7132,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **replaceTenantPackage** -> FlagCommentPublic200Response replaceTenantPackage(tenantId, id, replaceTenantPackageBody).execute(); +> APIEmptyResponse replaceTenantPackage(tenantId, id, replaceTenantPackageBody).execute(); @@ -7088,7 +7166,7 @@ public class Example { String id = "id_example"; // String | ReplaceTenantPackageBody replaceTenantPackageBody = new ReplaceTenantPackageBody(); // ReplaceTenantPackageBody | try { - FlagCommentPublic200Response result = apiInstance.replaceTenantPackage(tenantId, id, replaceTenantPackageBody) + APIEmptyResponse result = apiInstance.replaceTenantPackage(tenantId, id, replaceTenantPackageBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -7112,7 +7190,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7127,10 +7205,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **replaceTenantUser** -> FlagCommentPublic200Response replaceTenantUser(tenantId, id, replaceTenantUserBody).updateComments(updateComments).execute(); +> APIEmptyResponse replaceTenantUser(tenantId, id, replaceTenantUserBody).updateComments(updateComments).execute(); @@ -7161,7 +7240,7 @@ public class Example { ReplaceTenantUserBody replaceTenantUserBody = new ReplaceTenantUserBody(); // ReplaceTenantUserBody | String updateComments = "updateComments_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.replaceTenantUser(tenantId, id, replaceTenantUserBody) + APIEmptyResponse result = apiInstance.replaceTenantUser(tenantId, id, replaceTenantUserBody) .updateComments(updateComments) .execute(); System.out.println(result); @@ -7187,7 +7266,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7202,10 +7281,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **saveComment** -> SaveComment200Response saveComment(tenantId, createCommentParams).isLive(isLive).doSpamCheck(doSpamCheck).sendEmails(sendEmails).populateNotifications(populateNotifications).execute(); +> APISaveCommentResponse saveComment(tenantId, createCommentParams).isLive(isLive).doSpamCheck(doSpamCheck).sendEmails(sendEmails).populateNotifications(populateNotifications).execute(); @@ -7238,7 +7318,7 @@ public class Example { Boolean sendEmails = true; // Boolean | Boolean populateNotifications = true; // Boolean | try { - SaveComment200Response result = apiInstance.saveComment(tenantId, createCommentParams) + APISaveCommentResponse result = apiInstance.saveComment(tenantId, createCommentParams) .isLive(isLive) .doSpamCheck(doSpamCheck) .sendEmails(sendEmails) @@ -7269,7 +7349,7 @@ public class Example { ### Return type -[**SaveComment200Response**](SaveComment200Response.md) +[**APISaveCommentResponse**](APISaveCommentResponse.md) ### Authorization @@ -7284,10 +7364,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **saveCommentsBulk** -> List<SaveComment200Response> saveCommentsBulk(tenantId, createCommentParams).isLive(isLive).doSpamCheck(doSpamCheck).sendEmails(sendEmails).populateNotifications(populateNotifications).execute(); +> List<SaveCommentsBulkResponse> saveCommentsBulk(tenantId, createCommentParams).isLive(isLive).doSpamCheck(doSpamCheck).sendEmails(sendEmails).populateNotifications(populateNotifications).execute(); @@ -7320,7 +7401,7 @@ public class Example { Boolean sendEmails = true; // Boolean | Boolean populateNotifications = true; // Boolean | try { - List result = apiInstance.saveCommentsBulk(tenantId, createCommentParams) + List result = apiInstance.saveCommentsBulk(tenantId, createCommentParams) .isLive(isLive) .doSpamCheck(doSpamCheck) .sendEmails(sendEmails) @@ -7351,7 +7432,7 @@ public class Example { ### Return type -[**List<SaveComment200Response>**](SaveComment200Response.md) +[**List<SaveCommentsBulkResponse>**](SaveCommentsBulkResponse.md) ### Authorization @@ -7369,7 +7450,7 @@ public class Example { # **sendInvite** -> FlagCommentPublic200Response sendInvite(tenantId, id, fromName).execute(); +> APIEmptyResponse sendInvite(tenantId, id, fromName).execute(); @@ -7399,7 +7480,7 @@ public class Example { String id = "id_example"; // String | String fromName = "fromName_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.sendInvite(tenantId, id, fromName) + APIEmptyResponse result = apiInstance.sendInvite(tenantId, id, fromName) .execute(); System.out.println(result); } catch (ApiException e) { @@ -7423,7 +7504,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7438,10 +7519,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **sendLoginLink** -> FlagCommentPublic200Response sendLoginLink(tenantId, id).redirectURL(redirectURL).execute(); +> APIEmptyResponse sendLoginLink(tenantId, id).redirectURL(redirectURL).execute(); @@ -7471,7 +7553,7 @@ public class Example { String id = "id_example"; // String | String redirectURL = "redirectURL_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.sendLoginLink(tenantId, id) + APIEmptyResponse result = apiInstance.sendLoginLink(tenantId, id) .redirectURL(redirectURL) .execute(); System.out.println(result); @@ -7496,7 +7578,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7511,10 +7593,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **unBlockUserFromComment** -> UnBlockCommentPublic200Response unBlockUserFromComment(tenantId, id, unBlockFromCommentParams).userId(userId).anonUserId(anonUserId).execute(); +> UnblockSuccess unBlockUserFromComment(tenantId, id, unBlockFromCommentParams).userId(userId).anonUserId(anonUserId).execute(); @@ -7546,7 +7629,7 @@ public class Example { String userId = "userId_example"; // String | String anonUserId = "anonUserId_example"; // String | try { - UnBlockCommentPublic200Response result = apiInstance.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams) + UnblockSuccess result = apiInstance.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -7574,7 +7657,7 @@ public class Example { ### Return type -[**UnBlockCommentPublic200Response**](UnBlockCommentPublic200Response.md) +[**UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -7589,10 +7672,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **unFlagComment** -> FlagComment200Response unFlagComment(tenantId, id).userId(userId).anonUserId(anonUserId).execute(); +> FlagCommentResponse unFlagComment(tenantId, id).userId(userId).anonUserId(anonUserId).execute(); @@ -7623,7 +7707,7 @@ public class Example { String userId = "userId_example"; // String | String anonUserId = "anonUserId_example"; // String | try { - FlagComment200Response result = apiInstance.unFlagComment(tenantId, id) + FlagCommentResponse result = apiInstance.unFlagComment(tenantId, id) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -7650,7 +7734,7 @@ public class Example { ### Return type -[**FlagComment200Response**](FlagComment200Response.md) +[**FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -7665,10 +7749,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateComment** -> FlagCommentPublic200Response updateComment(tenantId, id, updatableCommentParams).contextUserId(contextUserId).doSpamCheck(doSpamCheck).isLive(isLive).execute(); +> APIEmptyResponse updateComment(tenantId, id, updatableCommentParams).contextUserId(contextUserId).doSpamCheck(doSpamCheck).isLive(isLive).execute(); @@ -7701,7 +7786,7 @@ public class Example { Boolean doSpamCheck = true; // Boolean | Boolean isLive = true; // Boolean | try { - FlagCommentPublic200Response result = apiInstance.updateComment(tenantId, id, updatableCommentParams) + APIEmptyResponse result = apiInstance.updateComment(tenantId, id, updatableCommentParams) .contextUserId(contextUserId) .doSpamCheck(doSpamCheck) .isLive(isLive) @@ -7731,7 +7816,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7746,10 +7831,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateEmailTemplate** -> FlagCommentPublic200Response updateEmailTemplate(tenantId, id, updateEmailTemplateBody).execute(); +> APIEmptyResponse updateEmailTemplate(tenantId, id, updateEmailTemplateBody).execute(); @@ -7779,7 +7865,7 @@ public class Example { String id = "id_example"; // String | UpdateEmailTemplateBody updateEmailTemplateBody = new UpdateEmailTemplateBody(); // UpdateEmailTemplateBody | try { - FlagCommentPublic200Response result = apiInstance.updateEmailTemplate(tenantId, id, updateEmailTemplateBody) + APIEmptyResponse result = apiInstance.updateEmailTemplate(tenantId, id, updateEmailTemplateBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -7803,7 +7889,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7818,10 +7904,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateFeedPost** -> FlagCommentPublic200Response updateFeedPost(tenantId, id, feedPost).execute(); +> APIEmptyResponse updateFeedPost(tenantId, id, feedPost).execute(); @@ -7851,7 +7938,7 @@ public class Example { String id = "id_example"; // String | FeedPost feedPost = new FeedPost(); // FeedPost | try { - FlagCommentPublic200Response result = apiInstance.updateFeedPost(tenantId, id, feedPost) + APIEmptyResponse result = apiInstance.updateFeedPost(tenantId, id, feedPost) .execute(); System.out.println(result); } catch (ApiException e) { @@ -7875,7 +7962,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7890,10 +7977,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateModerator** -> FlagCommentPublic200Response updateModerator(tenantId, id, updateModeratorBody).execute(); +> APIEmptyResponse updateModerator(tenantId, id, updateModeratorBody).execute(); @@ -7923,7 +8011,7 @@ public class Example { String id = "id_example"; // String | UpdateModeratorBody updateModeratorBody = new UpdateModeratorBody(); // UpdateModeratorBody | try { - FlagCommentPublic200Response result = apiInstance.updateModerator(tenantId, id, updateModeratorBody) + APIEmptyResponse result = apiInstance.updateModerator(tenantId, id, updateModeratorBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -7947,7 +8035,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7962,10 +8050,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateNotification** -> FlagCommentPublic200Response updateNotification(tenantId, id, updateNotificationBody).userId(userId).execute(); +> APIEmptyResponse updateNotification(tenantId, id, updateNotificationBody).userId(userId).execute(); @@ -7996,7 +8085,7 @@ public class Example { UpdateNotificationBody updateNotificationBody = new UpdateNotificationBody(); // UpdateNotificationBody | String userId = "userId_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.updateNotification(tenantId, id, updateNotificationBody) + APIEmptyResponse result = apiInstance.updateNotification(tenantId, id, updateNotificationBody) .userId(userId) .execute(); System.out.println(result); @@ -8022,7 +8111,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8037,10 +8126,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateQuestionConfig** -> FlagCommentPublic200Response updateQuestionConfig(tenantId, id, updateQuestionConfigBody).execute(); +> APIEmptyResponse updateQuestionConfig(tenantId, id, updateQuestionConfigBody).execute(); @@ -8070,7 +8160,7 @@ public class Example { String id = "id_example"; // String | UpdateQuestionConfigBody updateQuestionConfigBody = new UpdateQuestionConfigBody(); // UpdateQuestionConfigBody | try { - FlagCommentPublic200Response result = apiInstance.updateQuestionConfig(tenantId, id, updateQuestionConfigBody) + APIEmptyResponse result = apiInstance.updateQuestionConfig(tenantId, id, updateQuestionConfigBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8094,7 +8184,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8109,10 +8199,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateQuestionResult** -> FlagCommentPublic200Response updateQuestionResult(tenantId, id, updateQuestionResultBody).execute(); +> APIEmptyResponse updateQuestionResult(tenantId, id, updateQuestionResultBody).execute(); @@ -8142,7 +8233,7 @@ public class Example { String id = "id_example"; // String | UpdateQuestionResultBody updateQuestionResultBody = new UpdateQuestionResultBody(); // UpdateQuestionResultBody | try { - FlagCommentPublic200Response result = apiInstance.updateQuestionResult(tenantId, id, updateQuestionResultBody) + APIEmptyResponse result = apiInstance.updateQuestionResult(tenantId, id, updateQuestionResultBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8166,7 +8257,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8181,6 +8272,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateSubscription** @@ -8259,7 +8351,7 @@ public class Example { # **updateTenant** -> FlagCommentPublic200Response updateTenant(tenantId, id, updateTenantBody).execute(); +> APIEmptyResponse updateTenant(tenantId, id, updateTenantBody).execute(); @@ -8289,7 +8381,7 @@ public class Example { String id = "id_example"; // String | UpdateTenantBody updateTenantBody = new UpdateTenantBody(); // UpdateTenantBody | try { - FlagCommentPublic200Response result = apiInstance.updateTenant(tenantId, id, updateTenantBody) + APIEmptyResponse result = apiInstance.updateTenant(tenantId, id, updateTenantBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8313,7 +8405,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8328,10 +8420,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateTenantPackage** -> FlagCommentPublic200Response updateTenantPackage(tenantId, id, updateTenantPackageBody).execute(); +> APIEmptyResponse updateTenantPackage(tenantId, id, updateTenantPackageBody).execute(); @@ -8361,7 +8454,7 @@ public class Example { String id = "id_example"; // String | UpdateTenantPackageBody updateTenantPackageBody = new UpdateTenantPackageBody(); // UpdateTenantPackageBody | try { - FlagCommentPublic200Response result = apiInstance.updateTenantPackage(tenantId, id, updateTenantPackageBody) + APIEmptyResponse result = apiInstance.updateTenantPackage(tenantId, id, updateTenantPackageBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8385,7 +8478,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8400,10 +8493,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateTenantUser** -> FlagCommentPublic200Response updateTenantUser(tenantId, id, updateTenantUserBody).updateComments(updateComments).execute(); +> APIEmptyResponse updateTenantUser(tenantId, id, updateTenantUserBody).updateComments(updateComments).execute(); @@ -8434,7 +8528,7 @@ public class Example { UpdateTenantUserBody updateTenantUserBody = new UpdateTenantUserBody(); // UpdateTenantUserBody | String updateComments = "updateComments_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.updateTenantUser(tenantId, id, updateTenantUserBody) + APIEmptyResponse result = apiInstance.updateTenantUser(tenantId, id, updateTenantUserBody) .updateComments(updateComments) .execute(); System.out.println(result); @@ -8460,7 +8554,7 @@ public class Example { ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8475,10 +8569,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateUserBadge** -> UpdateUserBadge200Response updateUserBadge(tenantId, id, updateUserBadgeParams).execute(); +> APIEmptySuccessResponse updateUserBadge(tenantId, id, updateUserBadgeParams).execute(); @@ -8508,7 +8603,7 @@ public class Example { String id = "id_example"; // String | UpdateUserBadgeParams updateUserBadgeParams = new UpdateUserBadgeParams(); // UpdateUserBadgeParams | try { - UpdateUserBadge200Response result = apiInstance.updateUserBadge(tenantId, id, updateUserBadgeParams) + APIEmptySuccessResponse result = apiInstance.updateUserBadge(tenantId, id, updateUserBadgeParams) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8532,7 +8627,7 @@ public class Example { ### Return type -[**UpdateUserBadge200Response**](UpdateUserBadge200Response.md) +[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization @@ -8547,4 +8642,5 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | diff --git a/client/docs/DeleteComment200Response.md b/client/docs/DeleteComment200Response.md deleted file mode 100644 index ce748fcb..00000000 --- a/client/docs/DeleteComment200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# DeleteComment200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**action** | **DeleteCommentAction** | | [optional] | -|**status** | **APIStatus** | | | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/DeleteCommentPublic200Response.md b/client/docs/DeleteCommentPublic200Response.md deleted file mode 100644 index 2ac1cef3..00000000 --- a/client/docs/DeleteCommentPublic200Response.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# DeleteCommentPublic200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**comment** | [**DeletedCommentResultComment**](DeletedCommentResultComment.md) | | [optional] | -|**hardRemoved** | **Boolean** | | [optional] | -|**status** | **APIStatus** | | | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/DeleteCommentVote200Response.md b/client/docs/DeleteCommentVote200Response.md deleted file mode 100644 index ba756efc..00000000 --- a/client/docs/DeleteCommentVote200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# DeleteCommentVote200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**wasPendingVote** | **Boolean** | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/DeleteDomainConfig200Response.md b/client/docs/DeleteDomainConfigResponse.md similarity index 82% rename from client/docs/DeleteDomainConfig200Response.md rename to client/docs/DeleteDomainConfigResponse.md index 037d59cd..8456adbc 100644 --- a/client/docs/DeleteDomainConfig200Response.md +++ b/client/docs/DeleteDomainConfigResponse.md @@ -1,6 +1,6 @@ -# DeleteDomainConfig200Response +# DeleteDomainConfigResponse ## Properties diff --git a/client/docs/DeleteFeedPostPublic200Response.md b/client/docs/DeleteFeedPostPublic200Response.md deleted file mode 100644 index 6aacbd3e..00000000 --- a/client/docs/DeleteFeedPostPublic200Response.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# DeleteFeedPostPublic200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/DeleteFeedPostPublic200ResponseAnyOf.md b/client/docs/DeleteFeedPostPublicResponse.md similarity index 80% rename from client/docs/DeleteFeedPostPublic200ResponseAnyOf.md rename to client/docs/DeleteFeedPostPublicResponse.md index 65c65b3a..e2c37493 100644 --- a/client/docs/DeleteFeedPostPublic200ResponseAnyOf.md +++ b/client/docs/DeleteFeedPostPublicResponse.md @@ -1,6 +1,6 @@ -# DeleteFeedPostPublic200ResponseAnyOf +# DeleteFeedPostPublicResponse ## Properties diff --git a/client/docs/DeleteHashTagRequest.md b/client/docs/DeleteHashTagRequestBody.md similarity index 86% rename from client/docs/DeleteHashTagRequest.md rename to client/docs/DeleteHashTagRequestBody.md index eef39fee..4adef86c 100644 --- a/client/docs/DeleteHashTagRequest.md +++ b/client/docs/DeleteHashTagRequestBody.md @@ -1,6 +1,6 @@ -# DeleteHashTagRequest +# DeleteHashTagRequestBody ## Properties diff --git a/client/docs/FComment.md b/client/docs/FComment.md index 10dfd764..38d06245 100644 --- a/client/docs/FComment.md +++ b/client/docs/FComment.md @@ -79,6 +79,7 @@ |**requiresVerification** | **Boolean** | | [optional] | |**editKey** | **String** | | [optional] | |**tosAcceptedAt** | **OffsetDateTime** | | [optional] | +|**botId** | **String** | | [optional] | diff --git a/client/docs/FlagComment200Response.md b/client/docs/FlagComment200Response.md deleted file mode 100644 index ea813698..00000000 --- a/client/docs/FlagComment200Response.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# FlagComment200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**statusCode** | **Integer** | | [optional] | -|**status** | **APIStatus** | | | -|**code** | **String** | | [optional] | -|**reason** | **String** | | [optional] | -|**wasUnapproved** | **Boolean** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/FlagCommentPublic200Response.md b/client/docs/FlagCommentPublic200Response.md deleted file mode 100644 index df441156..00000000 --- a/client/docs/FlagCommentPublic200Response.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# FlagCommentPublic200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetAuditLogs200Response.md b/client/docs/GetAuditLogs200Response.md deleted file mode 100644 index 7327c53c..00000000 --- a/client/docs/GetAuditLogs200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetAuditLogs200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**auditLogs** | [**List<APIAuditLog>**](APIAuditLog.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetBannedUsersCountResponse.md b/client/docs/GetBannedUsersCountResponse.md new file mode 100644 index 00000000..9c65dfc5 --- /dev/null +++ b/client/docs/GetBannedUsersCountResponse.md @@ -0,0 +1,14 @@ + + +# GetBannedUsersCountResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**totalCount** | **Double** | | | +|**status** | **String** | | | + + + diff --git a/client/docs/GetBannedUsersFromCommentResponse.md b/client/docs/GetBannedUsersFromCommentResponse.md new file mode 100644 index 00000000..f3ca3ca0 --- /dev/null +++ b/client/docs/GetBannedUsersFromCommentResponse.md @@ -0,0 +1,24 @@ + + +# GetBannedUsersFromCommentResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**bannedUsers** | [**List<APIBannedUserWithMultiMatchInfo>**](APIBannedUserWithMultiMatchInfo.md) | | | +|**code** | [**CodeEnum**](#CodeEnum) | | [optional] | +|**status** | **APIStatus** | | | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NOT_FOUND | "not-found" | +| NOT_LOGGED_IN | "not-logged-in" | + + + diff --git a/client/docs/GetCachedNotificationCount200Response.md b/client/docs/GetCachedNotificationCount200Response.md deleted file mode 100644 index 8b0e76de..00000000 --- a/client/docs/GetCachedNotificationCount200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetCachedNotificationCount200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**data** | [**UserNotificationCount**](UserNotificationCount.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetComment200Response.md b/client/docs/GetComment200Response.md deleted file mode 100644 index 29e17f32..00000000 --- a/client/docs/GetComment200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetComment200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**comment** | [**APIComment**](APIComment.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetCommentBanStatusResponse.md b/client/docs/GetCommentBanStatusResponse.md new file mode 100644 index 00000000..faf2e2d2 --- /dev/null +++ b/client/docs/GetCommentBanStatusResponse.md @@ -0,0 +1,15 @@ + + +# GetCommentBanStatusResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **String** | | | +|**emailDomain** | **String** | | | +|**canIPBan** | **Boolean** | | | + + + diff --git a/client/docs/GetCommentText200Response.md b/client/docs/GetCommentText200Response.md deleted file mode 100644 index be32f073..00000000 --- a/client/docs/GetCommentText200Response.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# GetCommentText200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**commentText** | **String** | | [optional] | -|**sanitizedCommentText** | **String** | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetCommentTextResponse.md b/client/docs/GetCommentTextResponse.md new file mode 100644 index 00000000..8969b97f --- /dev/null +++ b/client/docs/GetCommentTextResponse.md @@ -0,0 +1,14 @@ + + +# GetCommentTextResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**comment** | **String** | | [optional] | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/GetCommentVoteUserNames200Response.md b/client/docs/GetCommentVoteUserNames200Response.md deleted file mode 100644 index a41b0d00..00000000 --- a/client/docs/GetCommentVoteUserNames200Response.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# GetCommentVoteUserNames200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**voteUserNames** | **List<String>** | | [optional] | -|**hasMore** | **Boolean** | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetComments200Response.md b/client/docs/GetComments200Response.md deleted file mode 100644 index 973ba267..00000000 --- a/client/docs/GetComments200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetComments200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**comments** | [**List<APIComment>**](APIComment.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetCommentsForUserResponse.md b/client/docs/GetCommentsForUserResponse.md new file mode 100644 index 00000000..44e1069f --- /dev/null +++ b/client/docs/GetCommentsForUserResponse.md @@ -0,0 +1,13 @@ + + +# GetCommentsForUserResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**moderatingTenantIds** | **List<String>** | | [optional] | + + + diff --git a/client/docs/GetCommentsPublic200Response.md b/client/docs/GetCommentsPublic200Response.md deleted file mode 100644 index 6adb2ea8..00000000 --- a/client/docs/GetCommentsPublic200Response.md +++ /dev/null @@ -1,43 +0,0 @@ - - -# GetCommentsPublic200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**statusCode** | **Integer** | | [optional] | -|**status** | **APIStatus** | | | -|**code** | **String** | | [optional] | -|**reason** | **String** | | [optional] | -|**translatedWarning** | **String** | | [optional] | -|**comments** | [**List<PublicComment>**](PublicComment.md) | | [optional] | -|**user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] | -|**urlIdClean** | **String** | | [optional] | -|**lastGenDate** | **Long** | | [optional] | -|**includesPastPages** | **Boolean** | | [optional] | -|**isDemo** | **Boolean** | | [optional] | -|**commentCount** | **Integer** | | [optional] | -|**isSiteAdmin** | **Boolean** | | [optional] | -|**hasBillingIssue** | **Boolean** | | [optional] | -|**moduleData** | **Map<String, Object>** | Construct a type with a set of properties K of type T | [optional] | -|**pageNumber** | **Integer** | | [optional] | -|**isWhiteLabeled** | **Boolean** | | [optional] | -|**isProd** | **Boolean** | | [optional] | -|**isCrawler** | **Boolean** | | [optional] | -|**notificationCount** | **Integer** | | [optional] | -|**hasMore** | **Boolean** | | [optional] | -|**isClosed** | **Boolean** | | [optional] | -|**presencePollState** | **Integer** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | -|**urlIdWS** | **String** | | [optional] | -|**userIdWS** | **String** | | [optional] | -|**tenantIdWS** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | - - - diff --git a/client/docs/GetDomainConfig200Response.md b/client/docs/GetDomainConfigResponse.md similarity index 91% rename from client/docs/GetDomainConfig200Response.md rename to client/docs/GetDomainConfigResponse.md index 685cab9d..f9830e15 100644 --- a/client/docs/GetDomainConfig200Response.md +++ b/client/docs/GetDomainConfigResponse.md @@ -1,6 +1,6 @@ -# GetDomainConfig200Response +# GetDomainConfigResponse ## Properties diff --git a/client/docs/GetDomainConfigs200Response.md b/client/docs/GetDomainConfigsResponse.md similarity index 90% rename from client/docs/GetDomainConfigs200Response.md rename to client/docs/GetDomainConfigsResponse.md index 795a5db6..64214c59 100644 --- a/client/docs/GetDomainConfigs200Response.md +++ b/client/docs/GetDomainConfigsResponse.md @@ -1,6 +1,6 @@ -# GetDomainConfigs200Response +# GetDomainConfigsResponse ## Properties diff --git a/client/docs/GetDomainConfigs200ResponseAnyOf.md b/client/docs/GetDomainConfigsResponseAnyOf.md similarity index 84% rename from client/docs/GetDomainConfigs200ResponseAnyOf.md rename to client/docs/GetDomainConfigsResponseAnyOf.md index 52cd87b6..34b2321d 100644 --- a/client/docs/GetDomainConfigs200ResponseAnyOf.md +++ b/client/docs/GetDomainConfigsResponseAnyOf.md @@ -1,6 +1,6 @@ -# GetDomainConfigs200ResponseAnyOf +# GetDomainConfigsResponseAnyOf ## Properties diff --git a/client/docs/GetDomainConfigs200ResponseAnyOf1.md b/client/docs/GetDomainConfigsResponseAnyOf1.md similarity index 85% rename from client/docs/GetDomainConfigs200ResponseAnyOf1.md rename to client/docs/GetDomainConfigsResponseAnyOf1.md index 5cc47eb4..77b6cb9c 100644 --- a/client/docs/GetDomainConfigs200ResponseAnyOf1.md +++ b/client/docs/GetDomainConfigsResponseAnyOf1.md @@ -1,6 +1,6 @@ -# GetDomainConfigs200ResponseAnyOf1 +# GetDomainConfigsResponseAnyOf1 ## Properties diff --git a/client/docs/GetEmailTemplate200Response.md b/client/docs/GetEmailTemplate200Response.md deleted file mode 100644 index 9e143ade..00000000 --- a/client/docs/GetEmailTemplate200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetEmailTemplate200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**emailTemplate** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetEmailTemplateDefinitions200Response.md b/client/docs/GetEmailTemplateDefinitions200Response.md deleted file mode 100644 index 5057aebd..00000000 --- a/client/docs/GetEmailTemplateDefinitions200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetEmailTemplateDefinitions200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**definitions** | [**List<EmailTemplateDefinition>**](EmailTemplateDefinition.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetEmailTemplateRenderErrors200Response.md b/client/docs/GetEmailTemplateRenderErrors200Response.md deleted file mode 100644 index 07de7034..00000000 --- a/client/docs/GetEmailTemplateRenderErrors200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetEmailTemplateRenderErrors200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**renderErrors** | [**List<EmailTemplateRenderErrorResponse>**](EmailTemplateRenderErrorResponse.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetEmailTemplates200Response.md b/client/docs/GetEmailTemplates200Response.md deleted file mode 100644 index 4610a988..00000000 --- a/client/docs/GetEmailTemplates200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetEmailTemplates200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**emailTemplates** | [**List<CustomEmailTemplate>**](CustomEmailTemplate.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetEventLog200Response.md b/client/docs/GetEventLog200Response.md deleted file mode 100644 index 18d65f9d..00000000 --- a/client/docs/GetEventLog200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetEventLog200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**events** | [**List<EventLogEntry>**](EventLogEntry.md) | | [optional] | -|**status** | **APIStatus** | | | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetFeedPosts200Response.md b/client/docs/GetFeedPosts200Response.md deleted file mode 100644 index b5899cad..00000000 --- a/client/docs/GetFeedPosts200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetFeedPosts200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**feedPosts** | [**List<FeedPost>**](FeedPost.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetFeedPostsPublic200Response.md b/client/docs/GetFeedPostsPublic200Response.md deleted file mode 100644 index 09022dcb..00000000 --- a/client/docs/GetFeedPostsPublic200Response.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# GetFeedPostsPublic200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**myReacts** | **Map<String, Map<String, Boolean>>** | | [optional] | -|**status** | **APIStatus** | | | -|**feedPosts** | [**List<FeedPost>**](FeedPost.md) | | [optional] | -|**user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] | -|**urlIdWS** | **String** | | [optional] | -|**userIdWS** | **String** | | [optional] | -|**tenantIdWS** | **String** | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetFeedPostsStats200Response.md b/client/docs/GetFeedPostsStats200Response.md deleted file mode 100644 index 09884083..00000000 --- a/client/docs/GetFeedPostsStats200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetFeedPostsStats200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**stats** | [**Map<String, FeedPostStats>**](FeedPostStats.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetGifsSearchResponse.md b/client/docs/GetGifsSearchResponse.md new file mode 100644 index 00000000..fce3ff89 --- /dev/null +++ b/client/docs/GetGifsSearchResponse.md @@ -0,0 +1,15 @@ + + +# GetGifsSearchResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**images** | **List<List<GifSearchResponseImagesInnerInner>>** | | [optional] | +|**status** | **APIStatus** | | | +|**code** | **String** | | [optional] | + + + diff --git a/client/docs/GetGifsTrendingResponse.md b/client/docs/GetGifsTrendingResponse.md new file mode 100644 index 00000000..2245bb10 --- /dev/null +++ b/client/docs/GetGifsTrendingResponse.md @@ -0,0 +1,15 @@ + + +# GetGifsTrendingResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**images** | **List<List<GifSearchResponseImagesInnerInner>>** | | [optional] | +|**status** | **APIStatus** | | | +|**code** | **String** | | [optional] | + + + diff --git a/client/docs/GetHashTags200Response.md b/client/docs/GetHashTags200Response.md deleted file mode 100644 index 50ed9fa2..00000000 --- a/client/docs/GetHashTags200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetHashTags200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**hashTags** | [**List<TenantHashTag>**](TenantHashTag.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetModerator200Response.md b/client/docs/GetModerator200Response.md deleted file mode 100644 index a6ac0b6e..00000000 --- a/client/docs/GetModerator200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetModerator200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**moderator** | [**Moderator**](Moderator.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetModerators200Response.md b/client/docs/GetModerators200Response.md deleted file mode 100644 index 390a1b09..00000000 --- a/client/docs/GetModerators200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetModerators200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**moderators** | [**List<Moderator>**](Moderator.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetNotificationCount200Response.md b/client/docs/GetNotificationCount200Response.md deleted file mode 100644 index 91d6bdb4..00000000 --- a/client/docs/GetNotificationCount200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetNotificationCount200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**count** | **Double** | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetNotifications200Response.md b/client/docs/GetNotifications200Response.md deleted file mode 100644 index 59829fc6..00000000 --- a/client/docs/GetNotifications200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetNotifications200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**notifications** | [**List<UserNotification>**](UserNotification.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetPendingWebhookEventCount200Response.md b/client/docs/GetPendingWebhookEventCount200Response.md deleted file mode 100644 index 79daa4e0..00000000 --- a/client/docs/GetPendingWebhookEventCount200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetPendingWebhookEventCount200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**count** | **Double** | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetPendingWebhookEvents200Response.md b/client/docs/GetPendingWebhookEvents200Response.md deleted file mode 100644 index 356c4278..00000000 --- a/client/docs/GetPendingWebhookEvents200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetPendingWebhookEvents200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**pendingWebhookEvents** | [**List<PendingCommentToSyncOutbound>**](PendingCommentToSyncOutbound.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetPublicPagesResponse.md b/client/docs/GetPublicPagesResponse.md new file mode 100644 index 00000000..321c1e32 --- /dev/null +++ b/client/docs/GetPublicPagesResponse.md @@ -0,0 +1,15 @@ + + +# GetPublicPagesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nextCursor** | **String** | | | +|**pages** | [**List<PublicPage>**](PublicPage.md) | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/GetQuestionConfig200Response.md b/client/docs/GetQuestionConfig200Response.md deleted file mode 100644 index 0b67b88a..00000000 --- a/client/docs/GetQuestionConfig200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetQuestionConfig200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**questionConfig** | [**QuestionConfig**](QuestionConfig.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetQuestionConfigs200Response.md b/client/docs/GetQuestionConfigs200Response.md deleted file mode 100644 index 990ddd0a..00000000 --- a/client/docs/GetQuestionConfigs200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetQuestionConfigs200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**questionConfigs** | [**List<QuestionConfig>**](QuestionConfig.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetQuestionResult200Response.md b/client/docs/GetQuestionResult200Response.md deleted file mode 100644 index 7179fec8..00000000 --- a/client/docs/GetQuestionResult200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetQuestionResult200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**questionResult** | [**QuestionResult**](QuestionResult.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetQuestionResults200Response.md b/client/docs/GetQuestionResults200Response.md deleted file mode 100644 index a4bb18f4..00000000 --- a/client/docs/GetQuestionResults200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetQuestionResults200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**questionResults** | [**List<QuestionResult>**](QuestionResult.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetSSOUsers200Response.md b/client/docs/GetSSOUsersResponse.md similarity index 89% rename from client/docs/GetSSOUsers200Response.md rename to client/docs/GetSSOUsersResponse.md index d9745f8a..eeef6099 100644 --- a/client/docs/GetSSOUsers200Response.md +++ b/client/docs/GetSSOUsersResponse.md @@ -1,6 +1,6 @@ -# GetSSOUsers200Response +# GetSSOUsersResponse ## Properties diff --git a/client/docs/GetTenant200Response.md b/client/docs/GetTenant200Response.md deleted file mode 100644 index bce2b4a2..00000000 --- a/client/docs/GetTenant200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTenant200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**tenant** | [**APITenant**](APITenant.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetTenantDailyUsages200Response.md b/client/docs/GetTenantDailyUsages200Response.md deleted file mode 100644 index 9e0e050d..00000000 --- a/client/docs/GetTenantDailyUsages200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTenantDailyUsages200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**tenantDailyUsages** | [**List<APITenantDailyUsage>**](APITenantDailyUsage.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetTenantManualBadgesResponse.md b/client/docs/GetTenantManualBadgesResponse.md new file mode 100644 index 00000000..0c8b794b --- /dev/null +++ b/client/docs/GetTenantManualBadgesResponse.md @@ -0,0 +1,14 @@ + + +# GetTenantManualBadgesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**badges** | [**List<TenantBadge>**](TenantBadge.md) | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/GetTenantPackage200Response.md b/client/docs/GetTenantPackage200Response.md deleted file mode 100644 index cad39579..00000000 --- a/client/docs/GetTenantPackage200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTenantPackage200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**tenantPackage** | [**TenantPackage**](TenantPackage.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetTenantPackages200Response.md b/client/docs/GetTenantPackages200Response.md deleted file mode 100644 index 34081eb8..00000000 --- a/client/docs/GetTenantPackages200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTenantPackages200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**tenantPackages** | [**List<TenantPackage>**](TenantPackage.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetTenantUser200Response.md b/client/docs/GetTenantUser200Response.md deleted file mode 100644 index 18b244a2..00000000 --- a/client/docs/GetTenantUser200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTenantUser200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**tenantUser** | [**User**](User.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetTenantUsers200Response.md b/client/docs/GetTenantUsers200Response.md deleted file mode 100644 index 30939e92..00000000 --- a/client/docs/GetTenantUsers200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTenantUsers200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**tenantUsers** | [**List<User>**](User.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetTenants200Response.md b/client/docs/GetTenants200Response.md deleted file mode 100644 index 56362402..00000000 --- a/client/docs/GetTenants200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTenants200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**tenants** | [**List<APITenant>**](APITenant.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetTicket200Response.md b/client/docs/GetTicket200Response.md deleted file mode 100644 index 469727f1..00000000 --- a/client/docs/GetTicket200Response.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# GetTicket200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**ticket** | [**APITicketDetail**](APITicketDetail.md) | | [optional] | -|**availableStates** | **List<Double>** | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetTickets200Response.md b/client/docs/GetTickets200Response.md deleted file mode 100644 index 3875da28..00000000 --- a/client/docs/GetTickets200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTickets200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**tickets** | [**List<APITicket>**](APITicket.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetTranslationsResponse.md b/client/docs/GetTranslationsResponse.md new file mode 100644 index 00000000..904bdea6 --- /dev/null +++ b/client/docs/GetTranslationsResponse.md @@ -0,0 +1,14 @@ + + +# GetTranslationsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**translations** | **Map<String, String>** | Construct a type with a set of properties K of type T | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/GetUser200Response.md b/client/docs/GetUser200Response.md deleted file mode 100644 index b87556d0..00000000 --- a/client/docs/GetUser200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUser200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**user** | [**User**](User.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetUserBadge200Response.md b/client/docs/GetUserBadge200Response.md deleted file mode 100644 index 77c10e2d..00000000 --- a/client/docs/GetUserBadge200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserBadge200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**userBadge** | [**UserBadge**](UserBadge.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetUserBadgeProgressById200Response.md b/client/docs/GetUserBadgeProgressById200Response.md deleted file mode 100644 index a509311d..00000000 --- a/client/docs/GetUserBadgeProgressById200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserBadgeProgressById200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**userBadgeProgress** | [**UserBadgeProgress**](UserBadgeProgress.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetUserBadgeProgressList200Response.md b/client/docs/GetUserBadgeProgressList200Response.md deleted file mode 100644 index 1cd7a5f9..00000000 --- a/client/docs/GetUserBadgeProgressList200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserBadgeProgressList200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**userBadgeProgresses** | [**List<UserBadgeProgress>**](UserBadgeProgress.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetUserBadges200Response.md b/client/docs/GetUserBadges200Response.md deleted file mode 100644 index 5173c880..00000000 --- a/client/docs/GetUserBadges200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserBadges200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**userBadges** | [**List<UserBadge>**](UserBadge.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetUserInternalProfileResponse.md b/client/docs/GetUserInternalProfileResponse.md new file mode 100644 index 00000000..245296e5 --- /dev/null +++ b/client/docs/GetUserInternalProfileResponse.md @@ -0,0 +1,14 @@ + + +# GetUserInternalProfileResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**profile** | [**GetUserInternalProfileResponseProfile**](GetUserInternalProfileResponseProfile.md) | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/GetUserInternalProfileResponseProfile.md b/client/docs/GetUserInternalProfileResponseProfile.md new file mode 100644 index 00000000..cb58fdde --- /dev/null +++ b/client/docs/GetUserInternalProfileResponseProfile.md @@ -0,0 +1,29 @@ + + +# GetUserInternalProfileResponseProfile + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**commenterName** | **String** | | [optional] | +|**firstCommentDate** | **OffsetDateTime** | | [optional] | +|**ipHash** | **String** | | [optional] | +|**countryFlag** | **String** | | [optional] | +|**countryCode** | **String** | | [optional] | +|**websiteUrl** | **String** | | [optional] | +|**bio** | **String** | | [optional] | +|**karma** | **Double** | | [optional] | +|**locale** | **String** | | [optional] | +|**verified** | **Boolean** | | [optional] | +|**avatarSrc** | **String** | | [optional] | +|**displayName** | **String** | | [optional] | +|**username** | **String** | | [optional] | +|**commenterEmail** | **String** | | [optional] | +|**email** | **String** | | [optional] | +|**anonUserId** | **String** | | [optional] | +|**userId** | **String** | | [optional] | + + + diff --git a/client/docs/GetUserManualBadgesResponse.md b/client/docs/GetUserManualBadgesResponse.md new file mode 100644 index 00000000..3e910c9d --- /dev/null +++ b/client/docs/GetUserManualBadgesResponse.md @@ -0,0 +1,14 @@ + + +# GetUserManualBadgesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**badges** | [**List<UserBadge>**](UserBadge.md) | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/GetUserNotificationCount200Response.md b/client/docs/GetUserNotificationCount200Response.md deleted file mode 100644 index ad8866b4..00000000 --- a/client/docs/GetUserNotificationCount200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserNotificationCount200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**count** | **Long** | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetUserNotifications200Response.md b/client/docs/GetUserNotifications200Response.md deleted file mode 100644 index b9122981..00000000 --- a/client/docs/GetUserNotifications200Response.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# GetUserNotifications200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**translations** | **Map<String, String>** | Construct a type with a set of properties K of type T | [optional] | -|**isSubscribed** | **Boolean** | | [optional] | -|**hasMore** | **Boolean** | | [optional] | -|**notifications** | [**List<RenderableUserNotification>**](RenderableUserNotification.md) | | [optional] | -|**status** | **APIStatus** | | | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetUserPresenceStatuses200Response.md b/client/docs/GetUserPresenceStatuses200Response.md deleted file mode 100644 index 7e3cbccb..00000000 --- a/client/docs/GetUserPresenceStatuses200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserPresenceStatuses200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**userIdsOnline** | **Map<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetUserReactsPublic200Response.md b/client/docs/GetUserReactsPublic200Response.md deleted file mode 100644 index a18e4c79..00000000 --- a/client/docs/GetUserReactsPublic200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserReactsPublic200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**reacts** | **Map<String, Map<String, Boolean>>** | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetUserTrustFactorResponse.md b/client/docs/GetUserTrustFactorResponse.md new file mode 100644 index 00000000..8997faef --- /dev/null +++ b/client/docs/GetUserTrustFactorResponse.md @@ -0,0 +1,15 @@ + + +# GetUserTrustFactorResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**manualTrustFactor** | **Double** | | [optional] | +|**autoTrustFactor** | **Double** | | [optional] | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/GetV1PageLikes.md b/client/docs/GetV1PageLikes.md new file mode 100644 index 00000000..4b41176e --- /dev/null +++ b/client/docs/GetV1PageLikes.md @@ -0,0 +1,17 @@ + + +# GetV1PageLikes + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**urlIdWS** | **String** | | | +|**didLike** | **Boolean** | | | +|**commentCount** | **Integer** | | | +|**likeCount** | **Integer** | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/GetV2PageReactUsersResponse.md b/client/docs/GetV2PageReactUsersResponse.md new file mode 100644 index 00000000..bd340b9c --- /dev/null +++ b/client/docs/GetV2PageReactUsersResponse.md @@ -0,0 +1,14 @@ + + +# GetV2PageReactUsersResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userNames** | **List<String>** | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/GetV2PageReacts.md b/client/docs/GetV2PageReacts.md new file mode 100644 index 00000000..004526b6 --- /dev/null +++ b/client/docs/GetV2PageReacts.md @@ -0,0 +1,15 @@ + + +# GetV2PageReacts + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**reactedIds** | **List<String>** | | [optional] | +|**counts** | **Map<String, Double>** | Construct a type with a set of properties K of type T | [optional] | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/GetVotes200Response.md b/client/docs/GetVotes200Response.md deleted file mode 100644 index 0bc95e19..00000000 --- a/client/docs/GetVotes200Response.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# GetVotes200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**appliedAuthorizedVotes** | [**List<PublicVote>**](PublicVote.md) | | [optional] | -|**appliedAnonymousVotes** | [**List<PublicVote>**](PublicVote.md) | | [optional] | -|**pendingVotes** | [**List<PublicVote>**](PublicVote.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GetVotesForUser200Response.md b/client/docs/GetVotesForUser200Response.md deleted file mode 100644 index b1eaa0be..00000000 --- a/client/docs/GetVotesForUser200Response.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# GetVotesForUser200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**appliedAuthorizedVotes** | [**List<PublicVote>**](PublicVote.md) | | [optional] | -|**appliedAnonymousVotes** | [**List<PublicVote>**](PublicVote.md) | | [optional] | -|**pendingVotes** | [**List<PublicVote>**](PublicVote.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/GifGetLargeResponse.md b/client/docs/GifGetLargeResponse.md new file mode 100644 index 00000000..8e0a56ae --- /dev/null +++ b/client/docs/GifGetLargeResponse.md @@ -0,0 +1,14 @@ + + +# GifGetLargeResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**src** | **String** | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/GifSearchInternalError.md b/client/docs/GifSearchInternalError.md new file mode 100644 index 00000000..9c52ee94 --- /dev/null +++ b/client/docs/GifSearchInternalError.md @@ -0,0 +1,14 @@ + + +# GifSearchInternalError + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **String** | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/GifSearchResponse.md b/client/docs/GifSearchResponse.md new file mode 100644 index 00000000..7240578d --- /dev/null +++ b/client/docs/GifSearchResponse.md @@ -0,0 +1,14 @@ + + +# GifSearchResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**images** | **List<List<GifSearchResponseImagesInnerInner>>** | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/GifSearchResponseImagesInnerInner.md b/client/docs/GifSearchResponseImagesInnerInner.md new file mode 100644 index 00000000..38ffff8a --- /dev/null +++ b/client/docs/GifSearchResponseImagesInnerInner.md @@ -0,0 +1,12 @@ + + +# GifSearchResponseImagesInnerInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| + + + diff --git a/client/docs/HeaderAccountNotification.md b/client/docs/HeaderAccountNotification.md index 5cca8c41..77b8347d 100644 --- a/client/docs/HeaderAccountNotification.md +++ b/client/docs/HeaderAccountNotification.md @@ -16,6 +16,7 @@ |**linkUrl** | **String** | | | |**linkText** | **String** | | | |**createdAt** | **OffsetDateTime** | | | +|**type** | **String** | Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\"). | [optional] | diff --git a/client/docs/ImportedAgentApprovalNotificationFrequency.md b/client/docs/ImportedAgentApprovalNotificationFrequency.md new file mode 100644 index 00000000..bdf2e510 --- /dev/null +++ b/client/docs/ImportedAgentApprovalNotificationFrequency.md @@ -0,0 +1,17 @@ + + +# ImportedAgentApprovalNotificationFrequency + +## Enum + + +* `NUMBER_MINUS_1` (value: `-1`) + +* `NUMBER_0` (value: `0`) + +* `NUMBER_1` (value: `1`) + +* `NUMBER_2` (value: `2`) + + + diff --git a/client/docs/LiveEventType.md b/client/docs/LiveEventType.md index 91068bc4..f8bd38e6 100644 --- a/client/docs/LiveEventType.md +++ b/client/docs/LiveEventType.md @@ -47,5 +47,9 @@ * `DELETED_TICKET` (value: `"deleted-ticket"`) +* `PAGE_REACT` (value: `"page-react"`) + +* `QUESTION_RESULT` (value: `"question-result"`) + diff --git a/client/docs/LockComment200Response.md b/client/docs/LockComment200Response.md deleted file mode 100644 index 0d6067a7..00000000 --- a/client/docs/LockComment200Response.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# LockComment200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/ModerationAPIChildCommentsResponse.md b/client/docs/ModerationAPIChildCommentsResponse.md new file mode 100644 index 00000000..44934dae --- /dev/null +++ b/client/docs/ModerationAPIChildCommentsResponse.md @@ -0,0 +1,14 @@ + + +# ModerationAPIChildCommentsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**comments** | [**List<ModerationAPIComment>**](ModerationAPIComment.md) | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/ModerationAPIComment.md b/client/docs/ModerationAPIComment.md new file mode 100644 index 00000000..64e620bb --- /dev/null +++ b/client/docs/ModerationAPIComment.md @@ -0,0 +1,54 @@ + + +# ModerationAPIComment + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**isLocalDeleted** | **Boolean** | | [optional] | +|**replyCount** | **Double** | | [optional] | +|**feedbackResults** | **List<String>** | | [optional] | +|**isVotedUp** | **Boolean** | | [optional] | +|**isVotedDown** | **Boolean** | | [optional] | +|**myVoteId** | **String** | | [optional] | +|**id** | **String** | | | +|**tenantId** | **String** | | | +|**urlId** | **String** | | | +|**url** | **String** | | | +|**pageTitle** | **String** | | [optional] | +|**userId** | **String** | | [optional] | +|**anonUserId** | **String** | | [optional] | +|**commenterName** | **String** | | | +|**commenterLink** | **String** | | [optional] | +|**commentHTML** | **String** | | | +|**parentId** | **String** | | [optional] | +|**date** | **OffsetDateTime** | | | +|**localDateString** | **String** | | [optional] | +|**votes** | **Double** | | [optional] | +|**votesUp** | **Double** | | [optional] | +|**votesDown** | **Double** | | [optional] | +|**expireAt** | **OffsetDateTime** | | [optional] | +|**reviewed** | **Boolean** | | [optional] | +|**avatarSrc** | **String** | | [optional] | +|**isSpam** | **Boolean** | | [optional] | +|**permNotSpam** | **Boolean** | | [optional] | +|**hasLinks** | **Boolean** | | [optional] | +|**hasCode** | **Boolean** | | [optional] | +|**approved** | **Boolean** | | | +|**locale** | **String** | | | +|**isBannedUser** | **Boolean** | | [optional] | +|**isByAdmin** | **Boolean** | | [optional] | +|**isByModerator** | **Boolean** | | [optional] | +|**isPinned** | **Boolean** | | [optional] | +|**isLocked** | **Boolean** | | [optional] | +|**flagCount** | **Double** | | [optional] | +|**displayLabel** | **String** | | [optional] | +|**badges** | [**List<CommentUserBadgeInfo>**](CommentUserBadgeInfo.md) | | [optional] | +|**verified** | **Boolean** | | | +|**feedbackIds** | **List<String>** | | [optional] | +|**isDeleted** | **Boolean** | | [optional] | + + + diff --git a/client/docs/ModerationAPICommentLog.md b/client/docs/ModerationAPICommentLog.md new file mode 100644 index 00000000..216913da --- /dev/null +++ b/client/docs/ModerationAPICommentLog.md @@ -0,0 +1,16 @@ + + +# ModerationAPICommentLog + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**date** | **OffsetDateTime** | | | +|**username** | **String** | | [optional] | +|**actionName** | **String** | | | +|**messageHTML** | **String** | | | + + + diff --git a/client/docs/ModerationAPICommentResponse.md b/client/docs/ModerationAPICommentResponse.md new file mode 100644 index 00000000..b6ff836c --- /dev/null +++ b/client/docs/ModerationAPICommentResponse.md @@ -0,0 +1,14 @@ + + +# ModerationAPICommentResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**comment** | [**ModerationAPIComment**](ModerationAPIComment.md) | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/ModerationAPICountCommentsResponse.md b/client/docs/ModerationAPICountCommentsResponse.md new file mode 100644 index 00000000..cab00884 --- /dev/null +++ b/client/docs/ModerationAPICountCommentsResponse.md @@ -0,0 +1,14 @@ + + +# ModerationAPICountCommentsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**count** | **Double** | | | + + + diff --git a/client/docs/ModerationAPIGetCommentIdsResponse.md b/client/docs/ModerationAPIGetCommentIdsResponse.md new file mode 100644 index 00000000..903da84d --- /dev/null +++ b/client/docs/ModerationAPIGetCommentIdsResponse.md @@ -0,0 +1,15 @@ + + +# ModerationAPIGetCommentIdsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**ids** | **List<String>** | | | +|**hasMore** | **Boolean** | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/ModerationAPIGetCommentsResponse.md b/client/docs/ModerationAPIGetCommentsResponse.md new file mode 100644 index 00000000..a26a5db5 --- /dev/null +++ b/client/docs/ModerationAPIGetCommentsResponse.md @@ -0,0 +1,16 @@ + + +# ModerationAPIGetCommentsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**translations** | **Object** | | | +|**comments** | [**List<ModerationAPIComment>**](ModerationAPIComment.md) | | | +|**moderationFilter** | [**ModerationFilter**](ModerationFilter.md) | | [optional] | + + + diff --git a/client/docs/ModerationAPIGetLogsResponse.md b/client/docs/ModerationAPIGetLogsResponse.md new file mode 100644 index 00000000..600071e1 --- /dev/null +++ b/client/docs/ModerationAPIGetLogsResponse.md @@ -0,0 +1,14 @@ + + +# ModerationAPIGetLogsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**logs** | [**List<ModerationAPICommentLog>**](ModerationAPICommentLog.md) | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/ModerationApi.md b/client/docs/ModerationApi.md new file mode 100644 index 00000000..9e1561f0 --- /dev/null +++ b/client/docs/ModerationApi.md @@ -0,0 +1,3014 @@ +# ModerationApi +FastComments API Client - A SDK for interacting with the FastComments API + +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(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + String voteId = "voteId_example"; // String | + String sso = "sso_example"; // String | + try { + VoteDeleteResponse result = apiInstance.deleteModerationVote(commentId, voteId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#deleteModerationVote"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **voteId** | **String**| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**VoteDeleteResponse**](VoteDeleteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getApiComments** +> ModerationAPIGetCommentsResponse getApiComments().page(page).count(count).textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).demo(demo).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + Double page = 3.4D; // Double | + Double count = 3.4D; // Double | + String textSearch = "textSearch_example"; // String | + String byIPFromComment = "byIPFromComment_example"; // String | + String filters = "filters_example"; // String | + String searchFilters = "searchFilters_example"; // String | + String sorts = "sorts_example"; // String | + Boolean demo = true; // Boolean | + String sso = "sso_example"; // String | + try { + ModerationAPIGetCommentsResponse result = apiInstance.getApiComments() + .page(page) + .count(count) + .textSearch(textSearch) + .byIPFromComment(byIPFromComment) + .filters(filters) + .searchFilters(searchFilters) + .sorts(sorts) + .demo(demo) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getApiComments"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **page** | **Double**| | [optional] | +| **count** | **Double**| | [optional] | +| **textSearch** | **String**| | [optional] | +| **byIPFromComment** | **String**| | [optional] | +| **filters** | **String**| | [optional] | +| **searchFilters** | **String**| | [optional] | +| **sorts** | **String**| | [optional] | +| **demo** | **Boolean**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**ModerationAPIGetCommentsResponse**](ModerationAPIGetCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getApiExportStatus** +> ModerationExportStatusResponse getApiExportStatus().batchJobId(batchJobId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String batchJobId = "batchJobId_example"; // String | + String sso = "sso_example"; // String | + try { + ModerationExportStatusResponse result = apiInstance.getApiExportStatus() + .batchJobId(batchJobId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getApiExportStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **batchJobId** | **String**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**ModerationExportStatusResponse**](ModerationExportStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getApiIds** +> ModerationAPIGetCommentIdsResponse getApiIds().textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).afterId(afterId).demo(demo).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String textSearch = "textSearch_example"; // String | + String byIPFromComment = "byIPFromComment_example"; // String | + String filters = "filters_example"; // String | + String searchFilters = "searchFilters_example"; // String | + String afterId = "afterId_example"; // String | + Boolean demo = true; // Boolean | + String sso = "sso_example"; // String | + try { + ModerationAPIGetCommentIdsResponse result = apiInstance.getApiIds() + .textSearch(textSearch) + .byIPFromComment(byIPFromComment) + .filters(filters) + .searchFilters(searchFilters) + .afterId(afterId) + .demo(demo) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getApiIds"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **textSearch** | **String**| | [optional] | +| **byIPFromComment** | **String**| | [optional] | +| **filters** | **String**| | [optional] | +| **searchFilters** | **String**| | [optional] | +| **afterId** | **String**| | [optional] | +| **demo** | **Boolean**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**ModerationAPIGetCommentIdsResponse**](ModerationAPIGetCommentIdsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getBanUsersFromComment** +> GetBannedUsersFromCommentResponse getBanUsersFromComment(commentId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + String sso = "sso_example"; // String | + try { + GetBannedUsersFromCommentResponse result = apiInstance.getBanUsersFromComment(commentId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getBanUsersFromComment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**GetBannedUsersFromCommentResponse**](GetBannedUsersFromCommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getCommentBanStatus** +> GetCommentBanStatusResponse getCommentBanStatus(commentId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + String sso = "sso_example"; // String | + try { + GetCommentBanStatusResponse result = apiInstance.getCommentBanStatus(commentId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getCommentBanStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**GetCommentBanStatusResponse**](GetCommentBanStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getCommentChildren** +> ModerationAPIChildCommentsResponse getCommentChildren(commentId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + String sso = "sso_example"; // String | + try { + ModerationAPIChildCommentsResponse result = apiInstance.getCommentChildren(commentId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getCommentChildren"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getCount** +> ModerationAPICountCommentsResponse getCount().textSearch(textSearch).byIPFromComment(byIPFromComment).filter(filter).searchFilters(searchFilters).demo(demo).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String textSearch = "textSearch_example"; // String | + String byIPFromComment = "byIPFromComment_example"; // String | + String filter = "filter_example"; // String | + String searchFilters = "searchFilters_example"; // String | + Boolean demo = true; // Boolean | + String sso = "sso_example"; // String | + try { + ModerationAPICountCommentsResponse result = apiInstance.getCount() + .textSearch(textSearch) + .byIPFromComment(byIPFromComment) + .filter(filter) + .searchFilters(searchFilters) + .demo(demo) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getCount"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **textSearch** | **String**| | [optional] | +| **byIPFromComment** | **String**| | [optional] | +| **filter** | **String**| | [optional] | +| **searchFilters** | **String**| | [optional] | +| **demo** | **Boolean**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**ModerationAPICountCommentsResponse**](ModerationAPICountCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getCounts** +> GetBannedUsersCountResponse getCounts().sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String sso = "sso_example"; // String | + try { + GetBannedUsersCountResponse result = apiInstance.getCounts() + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getCounts"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **sso** | **String**| | [optional] | + +### Return type + +[**GetBannedUsersCountResponse**](GetBannedUsersCountResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getLogs** +> ModerationAPIGetLogsResponse getLogs(commentId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + String sso = "sso_example"; // String | + try { + ModerationAPIGetLogsResponse result = apiInstance.getLogs(commentId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getLogs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**ModerationAPIGetLogsResponse**](ModerationAPIGetLogsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getManualBadges** +> GetTenantManualBadgesResponse getManualBadges().sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String sso = "sso_example"; // String | + try { + GetTenantManualBadgesResponse result = apiInstance.getManualBadges() + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getManualBadges"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **sso** | **String**| | [optional] | + +### Return type + +[**GetTenantManualBadgesResponse**](GetTenantManualBadgesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getManualBadgesForUser** +> GetUserManualBadgesResponse getManualBadgesForUser().badgesUserId(badgesUserId).commentId(commentId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String badgesUserId = "badgesUserId_example"; // String | + String commentId = "commentId_example"; // String | + String sso = "sso_example"; // String | + try { + GetUserManualBadgesResponse result = apiInstance.getManualBadgesForUser() + .badgesUserId(badgesUserId) + .commentId(commentId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getManualBadgesForUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **badgesUserId** | **String**| | [optional] | +| **commentId** | **String**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**GetUserManualBadgesResponse**](GetUserManualBadgesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getModerationComment** +> ModerationAPICommentResponse getModerationComment(commentId).includeEmail(includeEmail).includeIP(includeIP).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + Boolean includeEmail = true; // Boolean | + Boolean includeIP = true; // Boolean | + String sso = "sso_example"; // String | + try { + ModerationAPICommentResponse result = apiInstance.getModerationComment(commentId) + .includeEmail(includeEmail) + .includeIP(includeIP) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getModerationComment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **includeEmail** | **Boolean**| | [optional] | +| **includeIP** | **Boolean**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**ModerationAPICommentResponse**](ModerationAPICommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getModerationCommentText** +> GetCommentTextResponse getModerationCommentText(commentId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + String sso = "sso_example"; // String | + try { + GetCommentTextResponse result = apiInstance.getModerationCommentText(commentId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getModerationCommentText"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**GetCommentTextResponse**](GetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getPreBanSummary** +> PreBanSummary getPreBanSummary(commentId).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + Boolean includeByUserIdAndEmail = true; // Boolean | + Boolean includeByIP = true; // Boolean | + Boolean includeByEmailDomain = true; // Boolean | + String sso = "sso_example"; // String | + try { + PreBanSummary result = apiInstance.getPreBanSummary(commentId) + .includeByUserIdAndEmail(includeByUserIdAndEmail) + .includeByIP(includeByIP) + .includeByEmailDomain(includeByEmailDomain) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getPreBanSummary"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **includeByUserIdAndEmail** | **Boolean**| | [optional] | +| **includeByIP** | **Boolean**| | [optional] | +| **includeByEmailDomain** | **Boolean**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**PreBanSummary**](PreBanSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getSearchCommentsSummary** +> ModerationCommentSearchResponse getSearchCommentsSummary().value(value).filters(filters).searchFilters(searchFilters).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String value = "value_example"; // String | + String filters = "filters_example"; // String | + String searchFilters = "searchFilters_example"; // String | + String sso = "sso_example"; // String | + try { + ModerationCommentSearchResponse result = apiInstance.getSearchCommentsSummary() + .value(value) + .filters(filters) + .searchFilters(searchFilters) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getSearchCommentsSummary"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **value** | **String**| | [optional] | +| **filters** | **String**| | [optional] | +| **searchFilters** | **String**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**ModerationCommentSearchResponse**](ModerationCommentSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getSearchPages** +> ModerationPageSearchResponse getSearchPages().value(value).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String value = "value_example"; // String | + String sso = "sso_example"; // String | + try { + ModerationPageSearchResponse result = apiInstance.getSearchPages() + .value(value) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getSearchPages"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **value** | **String**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**ModerationPageSearchResponse**](ModerationPageSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getSearchSites** +> ModerationSiteSearchResponse getSearchSites().value(value).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String value = "value_example"; // String | + String sso = "sso_example"; // String | + try { + ModerationSiteSearchResponse result = apiInstance.getSearchSites() + .value(value) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getSearchSites"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **value** | **String**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**ModerationSiteSearchResponse**](ModerationSiteSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getSearchSuggest** +> ModerationSuggestResponse getSearchSuggest().textSearch(textSearch).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String textSearch = "textSearch_example"; // String | + String sso = "sso_example"; // String | + try { + ModerationSuggestResponse result = apiInstance.getSearchSuggest() + .textSearch(textSearch) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getSearchSuggest"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **textSearch** | **String**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**ModerationSuggestResponse**](ModerationSuggestResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getSearchUsers** +> ModerationUserSearchResponse getSearchUsers().value(value).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String value = "value_example"; // String | + String sso = "sso_example"; // String | + try { + ModerationUserSearchResponse result = apiInstance.getSearchUsers() + .value(value) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getSearchUsers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **value** | **String**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**ModerationUserSearchResponse**](ModerationUserSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getTrustFactor** +> GetUserTrustFactorResponse getTrustFactor().userId(userId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String userId = "userId_example"; // String | + String sso = "sso_example"; // String | + try { + GetUserTrustFactorResponse result = apiInstance.getTrustFactor() + .userId(userId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getTrustFactor"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userId** | **String**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**GetUserTrustFactorResponse**](GetUserTrustFactorResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getUserBanPreference** +> APIModerateGetUserBanPreferencesResponse getUserBanPreference().sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String sso = "sso_example"; // String | + try { + APIModerateGetUserBanPreferencesResponse result = apiInstance.getUserBanPreference() + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getUserBanPreference"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **sso** | **String**| | [optional] | + +### Return type + +[**APIModerateGetUserBanPreferencesResponse**](APIModerateGetUserBanPreferencesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getUserInternalProfile** +> GetUserInternalProfileResponse getUserInternalProfile().commentId(commentId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + String sso = "sso_example"; // String | + try { + GetUserInternalProfileResponse result = apiInstance.getUserInternalProfile() + .commentId(commentId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#getUserInternalProfile"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**GetUserInternalProfileResponse**](GetUserInternalProfileResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **postAdjustCommentVotes** +> AdjustVotesResponse postAdjustCommentVotes(commentId, adjustCommentVotesParams).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + AdjustCommentVotesParams adjustCommentVotesParams = new AdjustCommentVotesParams(); // AdjustCommentVotesParams | + String sso = "sso_example"; // String | + try { + AdjustVotesResponse result = apiInstance.postAdjustCommentVotes(commentId, adjustCommentVotesParams) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#postAdjustCommentVotes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **adjustCommentVotesParams** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md)| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**AdjustVotesResponse**](AdjustVotesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **postApiExport** +> ModerationExportResponse postApiExport().textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String textSearch = "textSearch_example"; // String | + String byIPFromComment = "byIPFromComment_example"; // String | + String filters = "filters_example"; // String | + String searchFilters = "searchFilters_example"; // String | + String sorts = "sorts_example"; // String | + String sso = "sso_example"; // String | + try { + ModerationExportResponse result = apiInstance.postApiExport() + .textSearch(textSearch) + .byIPFromComment(byIPFromComment) + .filters(filters) + .searchFilters(searchFilters) + .sorts(sorts) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#postApiExport"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **textSearch** | **String**| | [optional] | +| **byIPFromComment** | **String**| | [optional] | +| **filters** | **String**| | [optional] | +| **searchFilters** | **String**| | [optional] | +| **sorts** | **String**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**ModerationExportResponse**](ModerationExportResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **postBanUserFromComment** +> BanUserFromCommentResult postBanUserFromComment(commentId).banEmail(banEmail).banEmailDomain(banEmailDomain).banIP(banIP).deleteAllUsersComments(deleteAllUsersComments).bannedUntil(bannedUntil).isShadowBan(isShadowBan).updateId(updateId).banReason(banReason).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + Boolean banEmail = true; // Boolean | + Boolean banEmailDomain = true; // Boolean | + Boolean banIP = true; // Boolean | + Boolean deleteAllUsersComments = true; // Boolean | + String bannedUntil = "bannedUntil_example"; // String | + Boolean isShadowBan = true; // Boolean | + String updateId = "updateId_example"; // String | + String banReason = "banReason_example"; // String | + String sso = "sso_example"; // String | + try { + BanUserFromCommentResult result = apiInstance.postBanUserFromComment(commentId) + .banEmail(banEmail) + .banEmailDomain(banEmailDomain) + .banIP(banIP) + .deleteAllUsersComments(deleteAllUsersComments) + .bannedUntil(bannedUntil) + .isShadowBan(isShadowBan) + .updateId(updateId) + .banReason(banReason) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#postBanUserFromComment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **banEmail** | **Boolean**| | [optional] | +| **banEmailDomain** | **Boolean**| | [optional] | +| **banIP** | **Boolean**| | [optional] | +| **deleteAllUsersComments** | **Boolean**| | [optional] | +| **bannedUntil** | **String**| | [optional] | +| **isShadowBan** | **Boolean**| | [optional] | +| **updateId** | **String**| | [optional] | +| **banReason** | **String**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**BanUserFromCommentResult**](BanUserFromCommentResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **postBanUserUndo** +> APIEmptyResponse postBanUserUndo(banUserUndoParams).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + BanUserUndoParams banUserUndoParams = new BanUserUndoParams(); // BanUserUndoParams | + String sso = "sso_example"; // String | + try { + APIEmptyResponse result = apiInstance.postBanUserUndo(banUserUndoParams) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#postBanUserUndo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **banUserUndoParams** | [**BanUserUndoParams**](BanUserUndoParams.md)| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **postBulkPreBanSummary** +> BulkPreBanSummary postBulkPreBanSummary(bulkPreBanParams).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + BulkPreBanParams bulkPreBanParams = new BulkPreBanParams(); // BulkPreBanParams | + Boolean includeByUserIdAndEmail = true; // Boolean | + Boolean includeByIP = true; // Boolean | + Boolean includeByEmailDomain = true; // Boolean | + String sso = "sso_example"; // String | + try { + BulkPreBanSummary result = apiInstance.postBulkPreBanSummary(bulkPreBanParams) + .includeByUserIdAndEmail(includeByUserIdAndEmail) + .includeByIP(includeByIP) + .includeByEmailDomain(includeByEmailDomain) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#postBulkPreBanSummary"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **bulkPreBanParams** | [**BulkPreBanParams**](BulkPreBanParams.md)| | | +| **includeByUserIdAndEmail** | **Boolean**| | [optional] | +| **includeByIP** | **Boolean**| | [optional] | +| **includeByEmailDomain** | **Boolean**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**BulkPreBanSummary**](BulkPreBanSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **postCommentsByIds** +> ModerationAPIChildCommentsResponse postCommentsByIds(commentsByIdsParams).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + CommentsByIdsParams commentsByIdsParams = new CommentsByIdsParams(); // CommentsByIdsParams | + String sso = "sso_example"; // String | + try { + ModerationAPIChildCommentsResponse result = apiInstance.postCommentsByIds(commentsByIdsParams) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#postCommentsByIds"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentsByIdsParams** | [**CommentsByIdsParams**](CommentsByIdsParams.md)| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **postFlagComment** +> APIEmptyResponse postFlagComment(commentId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + String sso = "sso_example"; // String | + try { + APIEmptyResponse result = apiInstance.postFlagComment(commentId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#postFlagComment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **postRemoveComment** +> PostRemoveCommentResponse postRemoveComment(commentId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + String sso = "sso_example"; // String | + try { + PostRemoveCommentResponse result = apiInstance.postRemoveComment(commentId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#postRemoveComment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**PostRemoveCommentResponse**](PostRemoveCommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **postRestoreDeletedComment** +> APIEmptyResponse postRestoreDeletedComment(commentId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + String sso = "sso_example"; // String | + try { + APIEmptyResponse result = apiInstance.postRestoreDeletedComment(commentId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#postRestoreDeletedComment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **postSetCommentApprovalStatus** +> SetCommentApprovedResponse postSetCommentApprovalStatus(commentId).approved(approved).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + Boolean approved = true; // Boolean | + String sso = "sso_example"; // String | + try { + SetCommentApprovedResponse result = apiInstance.postSetCommentApprovalStatus(commentId) + .approved(approved) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#postSetCommentApprovalStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **approved** | **Boolean**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**SetCommentApprovedResponse**](SetCommentApprovedResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **postSetCommentReviewStatus** +> APIEmptyResponse postSetCommentReviewStatus(commentId).reviewed(reviewed).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + Boolean reviewed = true; // Boolean | + String sso = "sso_example"; // String | + try { + APIEmptyResponse result = apiInstance.postSetCommentReviewStatus(commentId) + .reviewed(reviewed) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#postSetCommentReviewStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **reviewed** | **Boolean**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **postSetCommentSpamStatus** +> APIEmptyResponse postSetCommentSpamStatus(commentId).spam(spam).permNotSpam(permNotSpam).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + Boolean spam = true; // Boolean | + Boolean permNotSpam = true; // Boolean | + String sso = "sso_example"; // String | + try { + APIEmptyResponse result = apiInstance.postSetCommentSpamStatus(commentId) + .spam(spam) + .permNotSpam(permNotSpam) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#postSetCommentSpamStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **spam** | **Boolean**| | [optional] | +| **permNotSpam** | **Boolean**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **postSetCommentText** +> SetCommentTextResponse postSetCommentText(commentId, setCommentTextParams).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + SetCommentTextParams setCommentTextParams = new SetCommentTextParams(); // SetCommentTextParams | + String sso = "sso_example"; // String | + try { + SetCommentTextResponse result = apiInstance.postSetCommentText(commentId, setCommentTextParams) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#postSetCommentText"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **setCommentTextParams** | [**SetCommentTextParams**](SetCommentTextParams.md)| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**SetCommentTextResponse**](SetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **postUnFlagComment** +> APIEmptyResponse postUnFlagComment(commentId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + String sso = "sso_example"; // String | + try { + APIEmptyResponse result = apiInstance.postUnFlagComment(commentId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#postUnFlagComment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **postVote** +> VoteResponse postVote(commentId).direction(direction).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String commentId = "commentId_example"; // String | + String direction = "direction_example"; // String | + String sso = "sso_example"; // String | + try { + VoteResponse result = apiInstance.postVote(commentId) + .direction(direction) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#postVote"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | | +| **direction** | **String**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**VoteResponse**](VoteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **putAwardBadge** +> AwardUserBadgeResponse putAwardBadge(badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String badgeId = "badgeId_example"; // String | + String userId = "userId_example"; // String | + String commentId = "commentId_example"; // String | + String broadcastId = "broadcastId_example"; // String | + String sso = "sso_example"; // String | + try { + AwardUserBadgeResponse result = apiInstance.putAwardBadge(badgeId) + .userId(userId) + .commentId(commentId) + .broadcastId(broadcastId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#putAwardBadge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **badgeId** | **String**| | | +| **userId** | **String**| | [optional] | +| **commentId** | **String**| | [optional] | +| **broadcastId** | **String**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**AwardUserBadgeResponse**](AwardUserBadgeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **putCloseThread** +> APIEmptyResponse putCloseThread(urlId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String urlId = "urlId_example"; // String | + String sso = "sso_example"; // String | + try { + APIEmptyResponse result = apiInstance.putCloseThread(urlId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#putCloseThread"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **urlId** | **String**| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **putRemoveBadge** +> RemoveUserBadgeResponse putRemoveBadge(badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String badgeId = "badgeId_example"; // String | + String userId = "userId_example"; // String | + String commentId = "commentId_example"; // String | + String broadcastId = "broadcastId_example"; // String | + String sso = "sso_example"; // String | + try { + RemoveUserBadgeResponse result = apiInstance.putRemoveBadge(badgeId) + .userId(userId) + .commentId(commentId) + .broadcastId(broadcastId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#putRemoveBadge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **badgeId** | **String**| | | +| **userId** | **String**| | [optional] | +| **commentId** | **String**| | [optional] | +| **broadcastId** | **String**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**RemoveUserBadgeResponse**](RemoveUserBadgeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **putReopenThread** +> APIEmptyResponse putReopenThread(urlId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String urlId = "urlId_example"; // String | + String sso = "sso_example"; // String | + try { + APIEmptyResponse result = apiInstance.putReopenThread(urlId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#putReopenThread"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **urlId** | **String**| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **setTrustFactor** +> SetUserTrustFactorResponse setTrustFactor().userId(userId).trustFactor(trustFactor).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.ModerationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + ModerationApi apiInstance = new ModerationApi(defaultClient); + String userId = "userId_example"; // String | + String trustFactor = "trustFactor_example"; // String | + String sso = "sso_example"; // String | + try { + SetUserTrustFactorResponse result = apiInstance.setTrustFactor() + .userId(userId) + .trustFactor(trustFactor) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#setTrustFactor"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userId** | **String**| | [optional] | +| **trustFactor** | **String**| | [optional] | +| **sso** | **String**| | [optional] | + +### Return type + +[**SetUserTrustFactorResponse**](SetUserTrustFactorResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + diff --git a/client/docs/ModerationCommentSearchResponse.md b/client/docs/ModerationCommentSearchResponse.md new file mode 100644 index 00000000..0253b810 --- /dev/null +++ b/client/docs/ModerationCommentSearchResponse.md @@ -0,0 +1,14 @@ + + +# ModerationCommentSearchResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**commentCount** | **Integer** | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/ModerationExportResponse.md b/client/docs/ModerationExportResponse.md new file mode 100644 index 00000000..aafc1eab --- /dev/null +++ b/client/docs/ModerationExportResponse.md @@ -0,0 +1,14 @@ + + +# ModerationExportResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **String** | | | +|**batchJobId** | **String** | | | + + + diff --git a/client/docs/ModerationExportStatusResponse.md b/client/docs/ModerationExportStatusResponse.md new file mode 100644 index 00000000..dc24b99c --- /dev/null +++ b/client/docs/ModerationExportStatusResponse.md @@ -0,0 +1,16 @@ + + +# ModerationExportStatusResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **String** | | | +|**jobStatus** | **String** | | | +|**recordCount** | **Integer** | | | +|**downloadUrl** | **String** | | [optional] | + + + diff --git a/client/docs/ModerationFilter.md b/client/docs/ModerationFilter.md new file mode 100644 index 00000000..20087e5a --- /dev/null +++ b/client/docs/ModerationFilter.md @@ -0,0 +1,24 @@ + + +# ModerationFilter + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**reviewed** | **Boolean** | | [optional] | +|**approved** | **Boolean** | | [optional] | +|**isSpam** | **Boolean** | | [optional] | +|**isBannedUser** | **Boolean** | | [optional] | +|**isLocked** | **Boolean** | | [optional] | +|**flagCountGt** | **Double** | | [optional] | +|**userId** | **String** | | [optional] | +|**urlId** | **String** | | [optional] | +|**domain** | **String** | | [optional] | +|**moderationGroupIds** | **List<String>** | | [optional] | +|**commentTextSearch** | **List<String>** | Text search terms. Each term is matched case-insensitively against the comment text. A term wrapped in quotes means exact phrase match. | [optional] | +|**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] | + + + diff --git a/client/docs/ModerationPageSearchProjected.md b/client/docs/ModerationPageSearchProjected.md new file mode 100644 index 00000000..f48faa52 --- /dev/null +++ b/client/docs/ModerationPageSearchProjected.md @@ -0,0 +1,16 @@ + + +# ModerationPageSearchProjected + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**urlId** | **String** | | | +|**url** | **String** | | | +|**title** | **String** | | | +|**commentCount** | **Double** | | | + + + diff --git a/client/docs/ModerationPageSearchResponse.md b/client/docs/ModerationPageSearchResponse.md new file mode 100644 index 00000000..6529dafa --- /dev/null +++ b/client/docs/ModerationPageSearchResponse.md @@ -0,0 +1,14 @@ + + +# ModerationPageSearchResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**pages** | [**List<ModerationPageSearchProjected>**](ModerationPageSearchProjected.md) | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/ModerationSiteSearchProjected.md b/client/docs/ModerationSiteSearchProjected.md new file mode 100644 index 00000000..03939523 --- /dev/null +++ b/client/docs/ModerationSiteSearchProjected.md @@ -0,0 +1,14 @@ + + +# ModerationSiteSearchProjected + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**domain** | **String** | | | +|**logoSrc100px** | **String** | | [optional] | + + + diff --git a/client/docs/ModerationSiteSearchResponse.md b/client/docs/ModerationSiteSearchResponse.md new file mode 100644 index 00000000..4ec75fc1 --- /dev/null +++ b/client/docs/ModerationSiteSearchResponse.md @@ -0,0 +1,14 @@ + + +# ModerationSiteSearchResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sites** | [**List<ModerationSiteSearchProjected>**](ModerationSiteSearchProjected.md) | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/ModerationSuggestResponse.md b/client/docs/ModerationSuggestResponse.md new file mode 100644 index 00000000..18276c48 --- /dev/null +++ b/client/docs/ModerationSuggestResponse.md @@ -0,0 +1,16 @@ + + +# ModerationSuggestResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **String** | | | +|**pages** | [**List<ModerationPageSearchProjected>**](ModerationPageSearchProjected.md) | | [optional] | +|**users** | [**List<ModerationUserSearchProjected>**](ModerationUserSearchProjected.md) | | [optional] | +|**code** | **String** | | [optional] | + + + diff --git a/client/docs/ModerationUserSearchProjected.md b/client/docs/ModerationUserSearchProjected.md new file mode 100644 index 00000000..c76a9a2a --- /dev/null +++ b/client/docs/ModerationUserSearchProjected.md @@ -0,0 +1,16 @@ + + +# ModerationUserSearchProjected + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | | +|**username** | **String** | | | +|**displayName** | **String** | | [optional] | +|**avatarSrc** | **String** | | [optional] | + + + diff --git a/client/docs/ModerationUserSearchResponse.md b/client/docs/ModerationUserSearchResponse.md new file mode 100644 index 00000000..2f0494c8 --- /dev/null +++ b/client/docs/ModerationUserSearchResponse.md @@ -0,0 +1,14 @@ + + +# ModerationUserSearchResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**users** | [**List<ModerationUserSearchProjected>**](ModerationUserSearchProjected.md) | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/PageUserEntry.md b/client/docs/PageUserEntry.md new file mode 100644 index 00000000..fdb16ee5 --- /dev/null +++ b/client/docs/PageUserEntry.md @@ -0,0 +1,16 @@ + + +# PageUserEntry + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**isPrivate** | **Boolean** | | [optional] | +|**avatarSrc** | **String** | | [optional] | +|**displayName** | **String** | | | +|**id** | **String** | | | + + + diff --git a/client/docs/PageUsersInfoResponse.md b/client/docs/PageUsersInfoResponse.md new file mode 100644 index 00000000..d5481a6c --- /dev/null +++ b/client/docs/PageUsersInfoResponse.md @@ -0,0 +1,14 @@ + + +# PageUsersInfoResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**users** | [**List<PageUserEntry>**](PageUserEntry.md) | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/PageUsersOfflineResponse.md b/client/docs/PageUsersOfflineResponse.md new file mode 100644 index 00000000..f1cd1a2c --- /dev/null +++ b/client/docs/PageUsersOfflineResponse.md @@ -0,0 +1,16 @@ + + +# PageUsersOfflineResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nextAfterUserId** | **String** | | | +|**nextAfterName** | **String** | | | +|**users** | [**List<PageUserEntry>**](PageUserEntry.md) | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/PageUsersOnlineResponse.md b/client/docs/PageUsersOnlineResponse.md new file mode 100644 index 00000000..7d06ba24 --- /dev/null +++ b/client/docs/PageUsersOnlineResponse.md @@ -0,0 +1,18 @@ + + +# PageUsersOnlineResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nextAfterUserId** | **String** | | | +|**nextAfterName** | **String** | | | +|**totalCount** | **Double** | | | +|**anonCount** | **Double** | | | +|**users** | [**List<PageUserEntry>**](PageUserEntry.md) | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/PagesSortBy.md b/client/docs/PagesSortBy.md new file mode 100644 index 00000000..df25183a --- /dev/null +++ b/client/docs/PagesSortBy.md @@ -0,0 +1,15 @@ + + +# PagesSortBy + +## Enum + + +* `UPDATED_AT` (value: `"updatedAt"`) + +* `COMMENT_COUNT` (value: `"commentCount"`) + +* `TITLE` (value: `"title"`) + + + diff --git a/client/docs/PatchDomainConfigResponse.md b/client/docs/PatchDomainConfigResponse.md new file mode 100644 index 00000000..ef245c8b --- /dev/null +++ b/client/docs/PatchDomainConfigResponse.md @@ -0,0 +1,16 @@ + + +# PatchDomainConfigResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**_configuration** | **Object** | | [optional] | +|**status** | **Object** | | | +|**reason** | **String** | | [optional] | +|**code** | **String** | | [optional] | + + + diff --git a/client/docs/PinComment200Response.md b/client/docs/PinComment200Response.md deleted file mode 100644 index 4b10fcf9..00000000 --- a/client/docs/PinComment200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# PinComment200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**commentPositions** | [**Map<String, RecordStringBeforeStringOrNullAfterStringOrNullValue>**](RecordStringBeforeStringOrNullAfterStringOrNullValue.md) | Construct a type with a set of properties K of type T | [optional] | -|**status** | **APIStatus** | | | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/PostRemoveCommentResponse.md b/client/docs/PostRemoveCommentResponse.md new file mode 100644 index 00000000..ad9d1d96 --- /dev/null +++ b/client/docs/PostRemoveCommentResponse.md @@ -0,0 +1,14 @@ + + +# PostRemoveCommentResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**action** | **String** | | | +|**status** | **String** | | | + + + diff --git a/client/docs/PreBanSummary.md b/client/docs/PreBanSummary.md new file mode 100644 index 00000000..39e07ba7 --- /dev/null +++ b/client/docs/PreBanSummary.md @@ -0,0 +1,15 @@ + + +# PreBanSummary + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**usernames** | **List<String>** | | | +|**count** | **Double** | | | + + + diff --git a/client/docs/PublicApi.md b/client/docs/PublicApi.md index a386a341..fc189e61 100644 --- a/client/docs/PublicApi.md +++ b/client/docs/PublicApi.md @@ -9,22 +9,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 | | @@ -44,7 +61,7 @@ All URIs are relative to *https://fastcomments.com* # **blockFromCommentPublic** -> BlockFromCommentPublic200Response blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams).sso(sso).execute(); +> BlockSuccess blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams).sso(sso).execute(); @@ -68,7 +85,7 @@ public class Example { PublicBlockFromCommentParams publicBlockFromCommentParams = new PublicBlockFromCommentParams(); // PublicBlockFromCommentParams | String sso = "sso_example"; // String | try { - BlockFromCommentPublic200Response result = apiInstance.blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams) + BlockSuccess result = apiInstance.blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams) .sso(sso) .execute(); System.out.println(result); @@ -94,7 +111,7 @@ public class Example { ### Return type -[**BlockFromCommentPublic200Response**](BlockFromCommentPublic200Response.md) +[**BlockSuccess**](BlockSuccess.md) ### Authorization @@ -109,10 +126,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **checkedCommentsForBlocked** -> CheckedCommentsForBlocked200Response checkedCommentsForBlocked(tenantId, commentIds).sso(sso).execute(); +> CheckBlockedCommentsResponse checkedCommentsForBlocked(tenantId, commentIds).sso(sso).execute(); @@ -135,7 +153,7 @@ public class Example { String commentIds = "commentIds_example"; // String | A comma separated list of comment ids. String sso = "sso_example"; // String | try { - CheckedCommentsForBlocked200Response result = apiInstance.checkedCommentsForBlocked(tenantId, commentIds) + CheckBlockedCommentsResponse result = apiInstance.checkedCommentsForBlocked(tenantId, commentIds) .sso(sso) .execute(); System.out.println(result); @@ -160,7 +178,7 @@ public class Example { ### Return type -[**CheckedCommentsForBlocked200Response**](CheckedCommentsForBlocked200Response.md) +[**CheckBlockedCommentsResponse**](CheckBlockedCommentsResponse.md) ### Authorization @@ -175,10 +193,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createCommentPublic** -> CreateCommentPublic200Response createCommentPublic(tenantId, urlId, broadcastId, commentData).sessionId(sessionId).sso(sso).execute(); +> SaveCommentsResponseWithPresence createCommentPublic(tenantId, urlId, broadcastId, commentData).sessionId(sessionId).sso(sso).execute(); @@ -204,7 +223,7 @@ public class Example { String sessionId = "sessionId_example"; // String | String sso = "sso_example"; // String | try { - CreateCommentPublic200Response result = apiInstance.createCommentPublic(tenantId, urlId, broadcastId, commentData) + SaveCommentsResponseWithPresence result = apiInstance.createCommentPublic(tenantId, urlId, broadcastId, commentData) .sessionId(sessionId) .sso(sso) .execute(); @@ -233,7 +252,7 @@ public class Example { ### Return type -[**CreateCommentPublic200Response**](CreateCommentPublic200Response.md) +[**SaveCommentsResponseWithPresence**](SaveCommentsResponseWithPresence.md) ### Authorization @@ -248,10 +267,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createFeedPostPublic** -> CreateFeedPostPublic200Response createFeedPostPublic(tenantId, createFeedPostParams).broadcastId(broadcastId).sso(sso).execute(); +> CreateFeedPostResponse createFeedPostPublic(tenantId, createFeedPostParams).broadcastId(broadcastId).sso(sso).execute(); @@ -275,7 +295,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - CreateFeedPostPublic200Response result = apiInstance.createFeedPostPublic(tenantId, createFeedPostParams) + CreateFeedPostResponse result = apiInstance.createFeedPostPublic(tenantId, createFeedPostParams) .broadcastId(broadcastId) .sso(sso) .execute(); @@ -302,7 +322,7 @@ public class Example { ### Return type -[**CreateFeedPostPublic200Response**](CreateFeedPostPublic200Response.md) +[**CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -317,10 +337,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | - -# **deleteCommentPublic** -> DeleteCommentPublic200Response deleteCommentPublic(tenantId, commentId, broadcastId).editKey(editKey).sso(sso).execute(); + +# **createV1PageReact** +> CreateV1PageReact createV1PageReact(tenantId, urlId).title(title).execute(); @@ -340,18 +361,15 @@ public class Example { PublicApi apiInstance = new PublicApi(defaultClient); String tenantId = "tenantId_example"; // String | - String commentId = "commentId_example"; // String | - String broadcastId = "broadcastId_example"; // String | - String editKey = "editKey_example"; // String | - String sso = "sso_example"; // String | + String urlId = "urlId_example"; // String | + String title = "title_example"; // String | try { - DeleteCommentPublic200Response result = apiInstance.deleteCommentPublic(tenantId, commentId, broadcastId) - .editKey(editKey) - .sso(sso) + CreateV1PageReact result = apiInstance.createV1PageReact(tenantId, urlId) + .title(title) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PublicApi#deleteCommentPublic"); + System.err.println("Exception when calling PublicApi#createV1PageReact"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -366,14 +384,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | | -| **commentId** | **String**| | | -| **broadcastId** | **String**| | | -| **editKey** | **String**| | [optional] | -| **sso** | **String**| | [optional] | +| **urlId** | **String**| | | +| **title** | **String**| | [optional] | ### Return type -[**DeleteCommentPublic200Response**](DeleteCommentPublic200Response.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -388,10 +404,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | - -# **deleteCommentVote** -> DeleteCommentVote200Response deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId).editKey(editKey).sso(sso).execute(); + +# **createV2PageReact** +> CreateV1PageReact createV2PageReact(tenantId, urlId, id).title(title).execute(); @@ -411,20 +428,16 @@ public class Example { PublicApi apiInstance = new PublicApi(defaultClient); String tenantId = "tenantId_example"; // String | - String commentId = "commentId_example"; // String | - String voteId = "voteId_example"; // String | String urlId = "urlId_example"; // String | - String broadcastId = "broadcastId_example"; // String | - String editKey = "editKey_example"; // String | - String sso = "sso_example"; // String | + String id = "id_example"; // String | + String title = "title_example"; // String | try { - DeleteCommentVote200Response result = apiInstance.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId) - .editKey(editKey) - .sso(sso) + CreateV1PageReact result = apiInstance.createV2PageReact(tenantId, urlId, id) + .title(title) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PublicApi#deleteCommentVote"); + System.err.println("Exception when calling PublicApi#createV2PageReact"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -439,16 +452,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | | -| **commentId** | **String**| | | -| **voteId** | **String**| | | | **urlId** | **String**| | | -| **broadcastId** | **String**| | | -| **editKey** | **String**| | [optional] | -| **sso** | **String**| | [optional] | +| **id** | **String**| | | +| **title** | **String**| | [optional] | ### Return type -[**DeleteCommentVote200Response**](DeleteCommentVote200Response.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -463,10 +473,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | - -# **deleteFeedPostPublic** -> DeleteFeedPostPublic200Response deleteFeedPostPublic(tenantId, postId).broadcastId(broadcastId).sso(sso).execute(); + +# **deleteCommentPublic** +> PublicAPIDeleteCommentResponse deleteCommentPublic(tenantId, commentId, broadcastId).editKey(editKey).sso(sso).execute(); @@ -486,17 +497,18 @@ public class Example { PublicApi apiInstance = new PublicApi(defaultClient); String tenantId = "tenantId_example"; // String | - String postId = "postId_example"; // String | + String commentId = "commentId_example"; // String | String broadcastId = "broadcastId_example"; // String | + String editKey = "editKey_example"; // String | String sso = "sso_example"; // String | try { - DeleteFeedPostPublic200Response result = apiInstance.deleteFeedPostPublic(tenantId, postId) - .broadcastId(broadcastId) + PublicAPIDeleteCommentResponse result = apiInstance.deleteCommentPublic(tenantId, commentId, broadcastId) + .editKey(editKey) .sso(sso) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PublicApi#deleteFeedPostPublic"); + System.err.println("Exception when calling PublicApi#deleteCommentPublic"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -511,13 +523,14 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | | -| **postId** | **String**| | | -| **broadcastId** | **String**| | [optional] | +| **commentId** | **String**| | | +| **broadcastId** | **String**| | | +| **editKey** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**DeleteFeedPostPublic200Response**](DeleteFeedPostPublic200Response.md) +[**PublicAPIDeleteCommentResponse**](PublicAPIDeleteCommentResponse.md) ### Authorization @@ -532,10 +545,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | - -# **flagCommentPublic** -> FlagCommentPublic200Response flagCommentPublic(tenantId, commentId, isFlagged).sso(sso).execute(); + +# **deleteCommentVote** +> VoteDeleteResponse deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId).editKey(editKey).sso(sso).execute(); @@ -556,15 +570,19 @@ public class Example { PublicApi apiInstance = new PublicApi(defaultClient); String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | - Boolean isFlagged = true; // Boolean | + String voteId = "voteId_example"; // String | + String urlId = "urlId_example"; // String | + String broadcastId = "broadcastId_example"; // String | + String editKey = "editKey_example"; // String | String sso = "sso_example"; // String | try { - FlagCommentPublic200Response result = apiInstance.flagCommentPublic(tenantId, commentId, isFlagged) + VoteDeleteResponse result = apiInstance.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId) + .editKey(editKey) .sso(sso) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PublicApi#flagCommentPublic"); + System.err.println("Exception when calling PublicApi#deleteCommentVote"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -580,12 +598,15 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | | | **commentId** | **String**| | | -| **isFlagged** | **Boolean**| | | +| **voteId** | **String**| | | +| **urlId** | **String**| | | +| **broadcastId** | **String**| | | +| **editKey** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -600,10 +621,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | - -# **getCommentText** -> GetCommentText200Response getCommentText(tenantId, commentId).editKey(editKey).sso(sso).execute(); + +# **deleteFeedPostPublic** +> DeleteFeedPostPublicResponse deleteFeedPostPublic(tenantId, postId).broadcastId(broadcastId).sso(sso).execute(); @@ -623,17 +645,17 @@ public class Example { PublicApi apiInstance = new PublicApi(defaultClient); String tenantId = "tenantId_example"; // String | - String commentId = "commentId_example"; // String | - String editKey = "editKey_example"; // String | + String postId = "postId_example"; // String | + String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - GetCommentText200Response result = apiInstance.getCommentText(tenantId, commentId) - .editKey(editKey) + DeleteFeedPostPublicResponse result = apiInstance.deleteFeedPostPublic(tenantId, postId) + .broadcastId(broadcastId) .sso(sso) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PublicApi#getCommentText"); + System.err.println("Exception when calling PublicApi#deleteFeedPostPublic"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -648,13 +670,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | | -| **commentId** | **String**| | | -| **editKey** | **String**| | [optional] | +| **postId** | **String**| | | +| **broadcastId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**GetCommentText200Response**](GetCommentText200Response.md) +[**DeleteFeedPostPublicResponse**](DeleteFeedPostPublicResponse.md) ### Authorization @@ -669,10 +691,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | - -# **getCommentVoteUserNames** -> GetCommentVoteUserNames200Response getCommentVoteUserNames(tenantId, commentId, dir).sso(sso).execute(); + +# **deleteV1PageReact** +> CreateV1PageReact deleteV1PageReact(tenantId, urlId).execute(); @@ -692,16 +715,13 @@ public class Example { PublicApi apiInstance = new PublicApi(defaultClient); String tenantId = "tenantId_example"; // String | - String commentId = "commentId_example"; // String | - Integer dir = 56; // Integer | - String sso = "sso_example"; // String | + String urlId = "urlId_example"; // String | try { - GetCommentVoteUserNames200Response result = apiInstance.getCommentVoteUserNames(tenantId, commentId, dir) - .sso(sso) + CreateV1PageReact result = apiInstance.deleteV1PageReact(tenantId, urlId) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PublicApi#getCommentVoteUserNames"); + System.err.println("Exception when calling PublicApi#deleteV1PageReact"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -716,13 +736,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | | -| **commentId** | **String**| | | -| **dir** | **Integer**| | | -| **sso** | **String**| | [optional] | +| **urlId** | **String**| | | ### Return type -[**GetCommentVoteUserNames200Response**](GetCommentVoteUserNames200Response.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -737,14 +755,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | - -# **getCommentsPublic** -> GetCommentsPublic200Response getCommentsPublic(tenantId, urlId).page(page).direction(direction).sso(sso).skip(skip).skipChildren(skipChildren).limit(limit).limitChildren(limitChildren).countChildren(countChildren).fetchPageForCommentId(fetchPageForCommentId).includeConfig(includeConfig).countAll(countAll).includei10n(includei10n).locale(locale).modules(modules).isCrawler(isCrawler).includeNotificationCount(includeNotificationCount).asTree(asTree).maxTreeDepth(maxTreeDepth).useFullTranslationIds(useFullTranslationIds).parentId(parentId).searchText(searchText).hashTags(hashTags).userId(userId).customConfigStr(customConfigStr).afterCommentId(afterCommentId).beforeCommentId(beforeCommentId).execute(); - + +# **deleteV2PageReact** +> CreateV1PageReact deleteV2PageReact(tenantId, urlId, id).execute(); - req tenantId urlId ### Example ```java @@ -763,64 +780,13 @@ public class Example { PublicApi apiInstance = new PublicApi(defaultClient); String tenantId = "tenantId_example"; // String | String urlId = "urlId_example"; // String | - Integer page = 56; // Integer | - SortDirections direction = SortDirections.fromValue("OF"); // SortDirections | - String sso = "sso_example"; // String | - Integer skip = 56; // Integer | - Integer skipChildren = 56; // Integer | - Integer limit = 56; // Integer | - Integer limitChildren = 56; // Integer | - Boolean countChildren = true; // Boolean | - String fetchPageForCommentId = "fetchPageForCommentId_example"; // String | - Boolean includeConfig = true; // Boolean | - Boolean countAll = true; // Boolean | - Boolean includei10n = true; // Boolean | - String locale = "locale_example"; // String | - String modules = "modules_example"; // String | - Boolean isCrawler = true; // Boolean | - Boolean includeNotificationCount = true; // Boolean | - Boolean asTree = true; // Boolean | - Integer maxTreeDepth = 56; // Integer | - Boolean useFullTranslationIds = true; // Boolean | - String parentId = "parentId_example"; // String | - String searchText = "searchText_example"; // String | - List hashTags = Arrays.asList(); // List | - String userId = "userId_example"; // String | - String customConfigStr = "customConfigStr_example"; // String | - String afterCommentId = "afterCommentId_example"; // String | - String beforeCommentId = "beforeCommentId_example"; // String | + String id = "id_example"; // String | try { - GetCommentsPublic200Response result = apiInstance.getCommentsPublic(tenantId, urlId) - .page(page) - .direction(direction) - .sso(sso) - .skip(skip) - .skipChildren(skipChildren) - .limit(limit) - .limitChildren(limitChildren) - .countChildren(countChildren) - .fetchPageForCommentId(fetchPageForCommentId) - .includeConfig(includeConfig) - .countAll(countAll) - .includei10n(includei10n) - .locale(locale) - .modules(modules) - .isCrawler(isCrawler) - .includeNotificationCount(includeNotificationCount) - .asTree(asTree) - .maxTreeDepth(maxTreeDepth) - .useFullTranslationIds(useFullTranslationIds) - .parentId(parentId) - .searchText(searchText) - .hashTags(hashTags) - .userId(userId) - .customConfigStr(customConfigStr) - .afterCommentId(afterCommentId) - .beforeCommentId(beforeCommentId) + CreateV1PageReact result = apiInstance.deleteV2PageReact(tenantId, urlId, id) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PublicApi#getCommentsPublic"); + System.err.println("Exception when calling PublicApi#deleteV2PageReact"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -836,36 +802,11 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | | | **urlId** | **String**| | | -| **page** | **Integer**| | [optional] | -| **direction** | [**SortDirections**](.md)| | [optional] [enum: OF, NF, MR] | -| **sso** | **String**| | [optional] | -| **skip** | **Integer**| | [optional] | -| **skipChildren** | **Integer**| | [optional] | -| **limit** | **Integer**| | [optional] | -| **limitChildren** | **Integer**| | [optional] | -| **countChildren** | **Boolean**| | [optional] | -| **fetchPageForCommentId** | **String**| | [optional] | -| **includeConfig** | **Boolean**| | [optional] | -| **countAll** | **Boolean**| | [optional] | -| **includei10n** | **Boolean**| | [optional] | -| **locale** | **String**| | [optional] | -| **modules** | **String**| | [optional] | -| **isCrawler** | **Boolean**| | [optional] | -| **includeNotificationCount** | **Boolean**| | [optional] | -| **asTree** | **Boolean**| | [optional] | -| **maxTreeDepth** | **Integer**| | [optional] | -| **useFullTranslationIds** | **Boolean**| | [optional] | -| **parentId** | **String**| | [optional] | -| **searchText** | **String**| | [optional] | -| **hashTags** | [**List<String>**](String.md)| | [optional] | -| **userId** | **String**| | [optional] | -| **customConfigStr** | **String**| | [optional] | -| **afterCommentId** | **String**| | [optional] | -| **beforeCommentId** | **String**| | [optional] | +| **id** | **String**| | | ### Return type -[**GetCommentsPublic200Response**](GetCommentsPublic200Response.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -880,14 +821,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | - -# **getEventLog** -> GetEventLog200Response getEventLog(tenantId, urlId, userIdWS, startTime, endTime).execute(); - + +# **flagCommentPublic** +> APIEmptyResponse flagCommentPublic(tenantId, commentId, isFlagged).sso(sso).execute(); - req tenantId urlId userIdWS ### Example ```java @@ -905,16 +845,16 @@ public class Example { PublicApi apiInstance = new PublicApi(defaultClient); String tenantId = "tenantId_example"; // String | - String urlId = "urlId_example"; // String | - String userIdWS = "userIdWS_example"; // String | - Long startTime = 56L; // Long | - Long endTime = 56L; // Long | + String commentId = "commentId_example"; // String | + Boolean isFlagged = true; // Boolean | + String sso = "sso_example"; // String | try { - GetEventLog200Response result = apiInstance.getEventLog(tenantId, urlId, userIdWS, startTime, endTime) + APIEmptyResponse result = apiInstance.flagCommentPublic(tenantId, commentId, isFlagged) + .sso(sso) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PublicApi#getEventLog"); + System.err.println("Exception when calling PublicApi#flagCommentPublic"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -929,14 +869,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | | -| **urlId** | **String**| | | -| **userIdWS** | **String**| | | -| **startTime** | **Long**| | | -| **endTime** | **Long**| | | +| **commentId** | **String**| | | +| **isFlagged** | **Boolean**| | | +| **sso** | **String**| | [optional] | ### Return type -[**GetEventLog200Response**](GetEventLog200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -951,14 +890,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | - -# **getFeedPostsPublic** -> GetFeedPostsPublic200Response getFeedPostsPublic(tenantId).afterId(afterId).limit(limit).tags(tags).sso(sso).isCrawler(isCrawler).includeUserInfo(includeUserInfo).execute(); - + +# **getCommentText** +> PublicAPIGetCommentTextResponse getCommentText(tenantId, commentId).editKey(editKey).sso(sso).execute(); - req tenantId afterId ### Example ```java @@ -976,24 +914,17 @@ public class Example { PublicApi apiInstance = new PublicApi(defaultClient); String tenantId = "tenantId_example"; // String | - String afterId = "afterId_example"; // String | - Integer limit = 56; // Integer | - List tags = Arrays.asList(); // List | + String commentId = "commentId_example"; // String | + String editKey = "editKey_example"; // String | String sso = "sso_example"; // String | - Boolean isCrawler = true; // Boolean | - Boolean includeUserInfo = true; // Boolean | try { - GetFeedPostsPublic200Response result = apiInstance.getFeedPostsPublic(tenantId) - .afterId(afterId) - .limit(limit) - .tags(tags) + PublicAPIGetCommentTextResponse result = apiInstance.getCommentText(tenantId, commentId) + .editKey(editKey) .sso(sso) - .isCrawler(isCrawler) - .includeUserInfo(includeUserInfo) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PublicApi#getFeedPostsPublic"); + System.err.println("Exception when calling PublicApi#getCommentText"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1008,16 +939,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | | -| **afterId** | **String**| | [optional] | -| **limit** | **Integer**| | [optional] | -| **tags** | [**List<String>**](String.md)| | [optional] | +| **commentId** | **String**| | | +| **editKey** | **String**| | [optional] | | **sso** | **String**| | [optional] | -| **isCrawler** | **Boolean**| | [optional] | -| **includeUserInfo** | **Boolean**| | [optional] | ### Return type -[**GetFeedPostsPublic200Response**](GetFeedPostsPublic200Response.md) +[**PublicAPIGetCommentTextResponse**](PublicAPIGetCommentTextResponse.md) ### Authorization @@ -1032,10 +960,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | - -# **getFeedPostsStats** -> GetFeedPostsStats200Response getFeedPostsStats(tenantId, postIds).sso(sso).execute(); + +# **getCommentVoteUserNames** +> GetCommentVoteUserNamesSuccessResponse getCommentVoteUserNames(tenantId, commentId, dir).sso(sso).execute(); @@ -1055,15 +984,16 @@ public class Example { PublicApi apiInstance = new PublicApi(defaultClient); String tenantId = "tenantId_example"; // String | - List postIds = Arrays.asList(); // List | + String commentId = "commentId_example"; // String | + Integer dir = 56; // Integer | String sso = "sso_example"; // String | try { - GetFeedPostsStats200Response result = apiInstance.getFeedPostsStats(tenantId, postIds) + GetCommentVoteUserNamesSuccessResponse result = apiInstance.getCommentVoteUserNames(tenantId, commentId, dir) .sso(sso) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PublicApi#getFeedPostsStats"); + System.err.println("Exception when calling PublicApi#getCommentVoteUserNames"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1078,12 +1008,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | | -| **postIds** | [**List<String>**](String.md)| | | +| **commentId** | **String**| | | +| **dir** | **Integer**| | | | **sso** | **String**| | [optional] | ### Return type -[**GetFeedPostsStats200Response**](GetFeedPostsStats200Response.md) +[**GetCommentVoteUserNamesSuccessResponse**](GetCommentVoteUserNamesSuccessResponse.md) ### Authorization @@ -1098,15 +1029,14 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | - -# **getGlobalEventLog** -> GetEventLog200Response getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime).execute(); + +# **getCommentsForUser** +> GetCommentsForUserResponse getCommentsForUser().userId(userId).direction(direction).repliesToUserId(repliesToUserId).page(page).includei10n(includei10n).locale(locale).isCrawler(isCrawler).execute(); - req tenantId urlId userIdWS - ### Example ```java // Import classes: @@ -1122,13 +1052,672 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); PublicApi apiInstance = new PublicApi(defaultClient); - String tenantId = "tenantId_example"; // String | - String urlId = "urlId_example"; // String | - String userIdWS = "userIdWS_example"; // String | - Long startTime = 56L; // Long | - Long endTime = 56L; // Long | + String userId = "userId_example"; // String | + SortDirections direction = SortDirections.fromValue("OF"); // SortDirections | + String repliesToUserId = "repliesToUserId_example"; // String | + Double page = 3.4D; // Double | + Boolean includei10n = true; // Boolean | + String locale = "locale_example"; // String | + Boolean isCrawler = true; // Boolean | try { - GetEventLog200Response result = apiInstance.getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime) + GetCommentsForUserResponse result = apiInstance.getCommentsForUser() + .userId(userId) + .direction(direction) + .repliesToUserId(repliesToUserId) + .page(page) + .includei10n(includei10n) + .locale(locale) + .isCrawler(isCrawler) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getCommentsForUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userId** | **String**| | [optional] | +| **direction** | [**SortDirections**](.md)| | [optional] [enum: OF, NF, MR] | +| **repliesToUserId** | **String**| | [optional] | +| **page** | **Double**| | [optional] | +| **includei10n** | **Boolean**| | [optional] | +| **locale** | **String**| | [optional] | +| **isCrawler** | **Boolean**| | [optional] | + +### Return type + +[**GetCommentsForUserResponse**](GetCommentsForUserResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getCommentsPublic** +> GetCommentsResponseWithPresencePublicComment getCommentsPublic(tenantId, urlId).page(page).direction(direction).sso(sso).skip(skip).skipChildren(skipChildren).limit(limit).limitChildren(limitChildren).countChildren(countChildren).fetchPageForCommentId(fetchPageForCommentId).includeConfig(includeConfig).countAll(countAll).includei10n(includei10n).locale(locale).modules(modules).isCrawler(isCrawler).includeNotificationCount(includeNotificationCount).asTree(asTree).maxTreeDepth(maxTreeDepth).useFullTranslationIds(useFullTranslationIds).parentId(parentId).searchText(searchText).hashTags(hashTags).userId(userId).customConfigStr(customConfigStr).afterCommentId(afterCommentId).beforeCommentId(beforeCommentId).execute(); + + + + req tenantId urlId + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String tenantId = "tenantId_example"; // String | + String urlId = "urlId_example"; // String | + Integer page = 56; // Integer | + SortDirections direction = SortDirections.fromValue("OF"); // SortDirections | + String sso = "sso_example"; // String | + Integer skip = 56; // Integer | + Integer skipChildren = 56; // Integer | + Integer limit = 56; // Integer | + Integer limitChildren = 56; // Integer | + Boolean countChildren = true; // Boolean | + String fetchPageForCommentId = "fetchPageForCommentId_example"; // String | + Boolean includeConfig = true; // Boolean | + Boolean countAll = true; // Boolean | + Boolean includei10n = true; // Boolean | + String locale = "locale_example"; // String | + String modules = "modules_example"; // String | + Boolean isCrawler = true; // Boolean | + Boolean includeNotificationCount = true; // Boolean | + Boolean asTree = true; // Boolean | + Integer maxTreeDepth = 56; // Integer | + Boolean useFullTranslationIds = true; // Boolean | + String parentId = "parentId_example"; // String | + String searchText = "searchText_example"; // String | + List hashTags = Arrays.asList(); // List | + String userId = "userId_example"; // String | + String customConfigStr = "customConfigStr_example"; // String | + String afterCommentId = "afterCommentId_example"; // String | + String beforeCommentId = "beforeCommentId_example"; // String | + try { + GetCommentsResponseWithPresencePublicComment result = apiInstance.getCommentsPublic(tenantId, urlId) + .page(page) + .direction(direction) + .sso(sso) + .skip(skip) + .skipChildren(skipChildren) + .limit(limit) + .limitChildren(limitChildren) + .countChildren(countChildren) + .fetchPageForCommentId(fetchPageForCommentId) + .includeConfig(includeConfig) + .countAll(countAll) + .includei10n(includei10n) + .locale(locale) + .modules(modules) + .isCrawler(isCrawler) + .includeNotificationCount(includeNotificationCount) + .asTree(asTree) + .maxTreeDepth(maxTreeDepth) + .useFullTranslationIds(useFullTranslationIds) + .parentId(parentId) + .searchText(searchText) + .hashTags(hashTags) + .userId(userId) + .customConfigStr(customConfigStr) + .afterCommentId(afterCommentId) + .beforeCommentId(beforeCommentId) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getCommentsPublic"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | +| **urlId** | **String**| | | +| **page** | **Integer**| | [optional] | +| **direction** | [**SortDirections**](.md)| | [optional] [enum: OF, NF, MR] | +| **sso** | **String**| | [optional] | +| **skip** | **Integer**| | [optional] | +| **skipChildren** | **Integer**| | [optional] | +| **limit** | **Integer**| | [optional] | +| **limitChildren** | **Integer**| | [optional] | +| **countChildren** | **Boolean**| | [optional] | +| **fetchPageForCommentId** | **String**| | [optional] | +| **includeConfig** | **Boolean**| | [optional] | +| **countAll** | **Boolean**| | [optional] | +| **includei10n** | **Boolean**| | [optional] | +| **locale** | **String**| | [optional] | +| **modules** | **String**| | [optional] | +| **isCrawler** | **Boolean**| | [optional] | +| **includeNotificationCount** | **Boolean**| | [optional] | +| **asTree** | **Boolean**| | [optional] | +| **maxTreeDepth** | **Integer**| | [optional] | +| **useFullTranslationIds** | **Boolean**| | [optional] | +| **parentId** | **String**| | [optional] | +| **searchText** | **String**| | [optional] | +| **hashTags** | [**List<String>**](String.md)| | [optional] | +| **userId** | **String**| | [optional] | +| **customConfigStr** | **String**| | [optional] | +| **afterCommentId** | **String**| | [optional] | +| **beforeCommentId** | **String**| | [optional] | + +### Return type + +[**GetCommentsResponseWithPresencePublicComment**](GetCommentsResponseWithPresencePublicComment.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getEventLog** +> GetEventLogResponse getEventLog(tenantId, urlId, userIdWS, startTime).endTime(endTime).execute(); + + + + req tenantId urlId userIdWS + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String tenantId = "tenantId_example"; // String | + String urlId = "urlId_example"; // String | + String userIdWS = "userIdWS_example"; // String | + Long startTime = 56L; // Long | + Long endTime = 56L; // Long | + try { + GetEventLogResponse result = apiInstance.getEventLog(tenantId, urlId, userIdWS, startTime) + .endTime(endTime) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getEventLog"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | +| **urlId** | **String**| | | +| **userIdWS** | **String**| | | +| **startTime** | **Long**| | | +| **endTime** | **Long**| | [optional] | + +### Return type + +[**GetEventLogResponse**](GetEventLogResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getFeedPostsPublic** +> PublicFeedPostsResponse getFeedPostsPublic(tenantId).afterId(afterId).limit(limit).tags(tags).sso(sso).isCrawler(isCrawler).includeUserInfo(includeUserInfo).execute(); + + + + req tenantId afterId + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String tenantId = "tenantId_example"; // String | + String afterId = "afterId_example"; // String | + Integer limit = 56; // Integer | + List tags = Arrays.asList(); // List | + String sso = "sso_example"; // String | + Boolean isCrawler = true; // Boolean | + Boolean includeUserInfo = true; // Boolean | + try { + PublicFeedPostsResponse result = apiInstance.getFeedPostsPublic(tenantId) + .afterId(afterId) + .limit(limit) + .tags(tags) + .sso(sso) + .isCrawler(isCrawler) + .includeUserInfo(includeUserInfo) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getFeedPostsPublic"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | +| **afterId** | **String**| | [optional] | +| **limit** | **Integer**| | [optional] | +| **tags** | [**List<String>**](String.md)| | [optional] | +| **sso** | **String**| | [optional] | +| **isCrawler** | **Boolean**| | [optional] | +| **includeUserInfo** | **Boolean**| | [optional] | + +### Return type + +[**PublicFeedPostsResponse**](PublicFeedPostsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getFeedPostsStats** +> FeedPostsStatsResponse getFeedPostsStats(tenantId, postIds).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String tenantId = "tenantId_example"; // String | + List postIds = Arrays.asList(); // List | + String sso = "sso_example"; // String | + try { + FeedPostsStatsResponse result = apiInstance.getFeedPostsStats(tenantId, postIds) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getFeedPostsStats"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | +| **postIds** | [**List<String>**](String.md)| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**FeedPostsStatsResponse**](FeedPostsStatsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getGifLarge** +> GifGetLargeResponse getGifLarge(tenantId, largeInternalURLSanitized).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String tenantId = "tenantId_example"; // String | + String largeInternalURLSanitized = "largeInternalURLSanitized_example"; // String | + try { + GifGetLargeResponse result = apiInstance.getGifLarge(tenantId, largeInternalURLSanitized) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getGifLarge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | +| **largeInternalURLSanitized** | **String**| | | + +### Return type + +[**GifGetLargeResponse**](GifGetLargeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **422** | Validation Failed | - | +| **0** | Error | - | + + +# **getGifsSearch** +> GetGifsSearchResponse getGifsSearch(tenantId, search).locale(locale).rating(rating).page(page).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String tenantId = "tenantId_example"; // String | + String search = "search_example"; // String | + String locale = "locale_example"; // String | + String rating = "rating_example"; // String | + Double page = 3.4D; // Double | + try { + GetGifsSearchResponse result = apiInstance.getGifsSearch(tenantId, search) + .locale(locale) + .rating(rating) + .page(page) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getGifsSearch"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | +| **search** | **String**| | | +| **locale** | **String**| | [optional] | +| **rating** | **String**| | [optional] | +| **page** | **Double**| | [optional] | + +### Return type + +[**GetGifsSearchResponse**](GetGifsSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **422** | Validation Failed | - | +| **0** | Error | - | + + +# **getGifsTrending** +> GetGifsTrendingResponse getGifsTrending(tenantId).locale(locale).rating(rating).page(page).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String tenantId = "tenantId_example"; // String | + String locale = "locale_example"; // String | + String rating = "rating_example"; // String | + Double page = 3.4D; // Double | + try { + GetGifsTrendingResponse result = apiInstance.getGifsTrending(tenantId) + .locale(locale) + .rating(rating) + .page(page) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getGifsTrending"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | +| **locale** | **String**| | [optional] | +| **rating** | **String**| | [optional] | +| **page** | **Double**| | [optional] | + +### Return type + +[**GetGifsTrendingResponse**](GetGifsTrendingResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | + + +# **getGlobalEventLog** +> GetEventLogResponse getGlobalEventLog(tenantId, urlId, userIdWS, startTime).endTime(endTime).execute(); + + + + req tenantId urlId userIdWS + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String tenantId = "tenantId_example"; // String | + String urlId = "urlId_example"; // String | + String userIdWS = "userIdWS_example"; // String | + Long startTime = 56L; // Long | + Long endTime = 56L; // Long | + try { + GetEventLogResponse result = apiInstance.getGlobalEventLog(tenantId, urlId, userIdWS, startTime) + .endTime(endTime) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1147,14 +1736,473 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | | -| **urlId** | **String**| | | -| **userIdWS** | **String**| | | -| **startTime** | **Long**| | | -| **endTime** | **Long**| | | +| **urlId** | **String**| | | +| **userIdWS** | **String**| | | +| **startTime** | **Long**| | | +| **endTime** | **Long**| | [optional] | + +### Return type + +[**GetEventLogResponse**](GetEventLogResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getOfflineUsers** +> PageUsersOfflineResponse getOfflineUsers(tenantId, urlId).afterName(afterName).afterUserId(afterUserId).execute(); + + + +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. + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String tenantId = "tenantId_example"; // String | + String urlId = "urlId_example"; // String | Page URL identifier (cleaned server-side). + String afterName = "afterName_example"; // String | Cursor: pass nextAfterName from the previous response. + String afterUserId = "afterUserId_example"; // String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + try { + PageUsersOfflineResponse result = apiInstance.getOfflineUsers(tenantId, urlId) + .afterName(afterName) + .afterUserId(afterUserId) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getOfflineUsers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | +| **urlId** | **String**| Page URL identifier (cleaned server-side). | | +| **afterName** | **String**| Cursor: pass nextAfterName from the previous response. | [optional] | +| **afterUserId** | **String**| Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. | [optional] | + +### Return type + +[**PageUsersOfflineResponse**](PageUsersOfflineResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **403** | Forbidden | - | +| **422** | Validation Failed | - | +| **0** | Error | - | + + +# **getOnlineUsers** +> PageUsersOnlineResponse getOnlineUsers(tenantId, urlId).afterName(afterName).afterUserId(afterUserId).execute(); + + + +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). + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String tenantId = "tenantId_example"; // String | + String urlId = "urlId_example"; // String | Page URL identifier (cleaned server-side). + String afterName = "afterName_example"; // String | Cursor: pass nextAfterName from the previous response. + String afterUserId = "afterUserId_example"; // String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + try { + PageUsersOnlineResponse result = apiInstance.getOnlineUsers(tenantId, urlId) + .afterName(afterName) + .afterUserId(afterUserId) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getOnlineUsers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | +| **urlId** | **String**| Page URL identifier (cleaned server-side). | | +| **afterName** | **String**| Cursor: pass nextAfterName from the previous response. | [optional] | +| **afterUserId** | **String**| Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. | [optional] | + +### Return type + +[**PageUsersOnlineResponse**](PageUsersOnlineResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **403** | Forbidden | - | +| **422** | Validation Failed | - | +| **0** | Error | - | + + +# **getPagesPublic** +> GetPublicPagesResponse getPagesPublic(tenantId).cursor(cursor).limit(limit).q(q).sortBy(sortBy).hasComments(hasComments).execute(); + + + +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. + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String tenantId = "tenantId_example"; // String | + String cursor = "cursor_example"; // String | Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. + Integer limit = 56; // Integer | 1..200, default 50 + String q = "q_example"; // String | Optional case-insensitive title prefix filter. + PagesSortBy sortBy = PagesSortBy.fromValue("updatedAt"); // PagesSortBy | Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). + Boolean hasComments = true; // Boolean | If true, only return pages with at least one comment. + try { + GetPublicPagesResponse result = apiInstance.getPagesPublic(tenantId) + .cursor(cursor) + .limit(limit) + .q(q) + .sortBy(sortBy) + .hasComments(hasComments) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getPagesPublic"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | +| **cursor** | **String**| Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. | [optional] | +| **limit** | **Integer**| 1..200, default 50 | [optional] | +| **q** | **String**| Optional case-insensitive title prefix filter. | [optional] | +| **sortBy** | [**PagesSortBy**](.md)| Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). | [optional] [enum: updatedAt, commentCount, title] | +| **hasComments** | **Boolean**| If true, only return pages with at least one comment. | [optional] | + +### Return type + +[**GetPublicPagesResponse**](GetPublicPagesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getTranslations** +> GetTranslationsResponse getTranslations(namespace, component).locale(locale).useFullTranslationIds(useFullTranslationIds).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String namespace = "namespace_example"; // String | + String component = "component_example"; // String | + String locale = "locale_example"; // String | + Boolean useFullTranslationIds = true; // Boolean | + try { + GetTranslationsResponse result = apiInstance.getTranslations(namespace, component) + .locale(locale) + .useFullTranslationIds(useFullTranslationIds) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getTranslations"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| | | +| **component** | **String**| | | +| **locale** | **String**| | [optional] | +| **useFullTranslationIds** | **Boolean**| | [optional] | + +### Return type + +[**GetTranslationsResponse**](GetTranslationsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **422** | Validation Failed | - | +| **500** | Internal | - | +| **0** | Error | - | + + +# **getUserNotificationCount** +> GetUserNotificationCountResponse getUserNotificationCount(tenantId).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String tenantId = "tenantId_example"; // String | + String sso = "sso_example"; // String | + try { + GetUserNotificationCountResponse result = apiInstance.getUserNotificationCount(tenantId) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getUserNotificationCount"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | +| **sso** | **String**| | [optional] | + +### Return type + +[**GetUserNotificationCountResponse**](GetUserNotificationCountResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getUserNotifications** +> GetMyNotificationsResponse getUserNotifications(tenantId).urlId(urlId).pageSize(pageSize).afterId(afterId).includeContext(includeContext).afterCreatedAt(afterCreatedAt).unreadOnly(unreadOnly).dmOnly(dmOnly).noDm(noDm).includeTranslations(includeTranslations).includeTenantNotifications(includeTenantNotifications).sso(sso).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String tenantId = "tenantId_example"; // String | + String urlId = "urlId_example"; // String | Used to determine whether the current page is subscribed. + Integer pageSize = 56; // Integer | + String afterId = "afterId_example"; // String | + Boolean includeContext = true; // Boolean | + Long afterCreatedAt = 56L; // Long | + Boolean unreadOnly = true; // Boolean | + Boolean dmOnly = true; // Boolean | + Boolean noDm = true; // Boolean | + Boolean includeTranslations = true; // Boolean | + Boolean includeTenantNotifications = true; // Boolean | + String sso = "sso_example"; // String | + try { + GetMyNotificationsResponse result = apiInstance.getUserNotifications(tenantId) + .urlId(urlId) + .pageSize(pageSize) + .afterId(afterId) + .includeContext(includeContext) + .afterCreatedAt(afterCreatedAt) + .unreadOnly(unreadOnly) + .dmOnly(dmOnly) + .noDm(noDm) + .includeTranslations(includeTranslations) + .includeTenantNotifications(includeTenantNotifications) + .sso(sso) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getUserNotifications"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | +| **urlId** | **String**| Used to determine whether the current page is subscribed. | [optional] | +| **pageSize** | **Integer**| | [optional] | +| **afterId** | **String**| | [optional] | +| **includeContext** | **Boolean**| | [optional] | +| **afterCreatedAt** | **Long**| | [optional] | +| **unreadOnly** | **Boolean**| | [optional] | +| **dmOnly** | **Boolean**| | [optional] | +| **noDm** | **Boolean**| | [optional] | +| **includeTranslations** | **Boolean**| | [optional] | +| **includeTenantNotifications** | **Boolean**| | [optional] | +| **sso** | **String**| | [optional] | ### Return type -[**GetEventLog200Response**](GetEventLog200Response.md) +[**GetMyNotificationsResponse**](GetMyNotificationsResponse.md) ### Authorization @@ -1169,10 +2217,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | - -# **getUserNotificationCount** -> GetUserNotificationCount200Response getUserNotificationCount(tenantId).sso(sso).execute(); + +# **getUserPresenceStatuses** +> GetUserPresenceStatusesResponse getUserPresenceStatuses(tenantId, urlIdWS, userIds).execute(); @@ -1192,14 +2241,14 @@ public class Example { PublicApi apiInstance = new PublicApi(defaultClient); String tenantId = "tenantId_example"; // String | - String sso = "sso_example"; // String | + String urlIdWS = "urlIdWS_example"; // String | + String userIds = "userIds_example"; // String | try { - GetUserNotificationCount200Response result = apiInstance.getUserNotificationCount(tenantId) - .sso(sso) + GetUserPresenceStatusesResponse result = apiInstance.getUserPresenceStatuses(tenantId, urlIdWS, userIds) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PublicApi#getUserNotificationCount"); + System.err.println("Exception when calling PublicApi#getUserPresenceStatuses"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1214,11 +2263,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | | -| **sso** | **String**| | [optional] | +| **urlIdWS** | **String**| | | +| **userIds** | **String**| | | ### Return type -[**GetUserNotificationCount200Response**](GetUserNotificationCount200Response.md) +[**GetUserPresenceStatusesResponse**](GetUserPresenceStatusesResponse.md) ### Authorization @@ -1233,10 +2283,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **422** | Validation Failed | - | +| **0** | Error | - | - -# **getUserNotifications** -> GetUserNotifications200Response getUserNotifications(tenantId).pageSize(pageSize).afterId(afterId).includeContext(includeContext).afterCreatedAt(afterCreatedAt).unreadOnly(unreadOnly).dmOnly(dmOnly).noDm(noDm).includeTranslations(includeTranslations).sso(sso).execute(); + +# **getUserReactsPublic** +> UserReactsResponse getUserReactsPublic(tenantId).postIds(postIds).sso(sso).execute(); @@ -1256,30 +2308,16 @@ public class Example { PublicApi apiInstance = new PublicApi(defaultClient); String tenantId = "tenantId_example"; // String | - Integer pageSize = 56; // Integer | - String afterId = "afterId_example"; // String | - Boolean includeContext = true; // Boolean | - Long afterCreatedAt = 56L; // Long | - Boolean unreadOnly = true; // Boolean | - Boolean dmOnly = true; // Boolean | - Boolean noDm = true; // Boolean | - Boolean includeTranslations = true; // Boolean | + List postIds = Arrays.asList(); // List | String sso = "sso_example"; // String | try { - GetUserNotifications200Response result = apiInstance.getUserNotifications(tenantId) - .pageSize(pageSize) - .afterId(afterId) - .includeContext(includeContext) - .afterCreatedAt(afterCreatedAt) - .unreadOnly(unreadOnly) - .dmOnly(dmOnly) - .noDm(noDm) - .includeTranslations(includeTranslations) + UserReactsResponse result = apiInstance.getUserReactsPublic(tenantId) + .postIds(postIds) .sso(sso) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PublicApi#getUserNotifications"); + System.err.println("Exception when calling PublicApi#getUserReactsPublic"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1294,19 +2332,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | | -| **pageSize** | **Integer**| | [optional] | -| **afterId** | **String**| | [optional] | -| **includeContext** | **Boolean**| | [optional] | -| **afterCreatedAt** | **Long**| | [optional] | -| **unreadOnly** | **Boolean**| | [optional] | -| **dmOnly** | **Boolean**| | [optional] | -| **noDm** | **Boolean**| | [optional] | -| **includeTranslations** | **Boolean**| | [optional] | +| **postIds** | [**List<String>**](String.md)| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**GetUserNotifications200Response**](GetUserNotifications200Response.md) +[**UserReactsResponse**](UserReactsResponse.md) ### Authorization @@ -1321,12 +2352,15 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | + + +# **getUsersInfo** +> PageUsersInfoResponse getUsersInfo(tenantId, ids).execute(); - -# **getUserPresenceStatuses** -> GetUserPresenceStatuses200Response getUserPresenceStatuses(tenantId, urlIdWS, userIds).execute(); +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). ### Example ```java @@ -1344,14 +2378,13 @@ public class Example { PublicApi apiInstance = new PublicApi(defaultClient); String tenantId = "tenantId_example"; // String | - String urlIdWS = "urlIdWS_example"; // String | - String userIds = "userIds_example"; // String | + String ids = "ids_example"; // String | Comma-delimited userIds. try { - GetUserPresenceStatuses200Response result = apiInstance.getUserPresenceStatuses(tenantId, urlIdWS, userIds) + PageUsersInfoResponse result = apiInstance.getUsersInfo(tenantId, ids) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PublicApi#getUserPresenceStatuses"); + System.err.println("Exception when calling PublicApi#getUsersInfo"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1366,12 +2399,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | | -| **urlIdWS** | **String**| | | -| **userIds** | **String**| | | +| **ids** | **String**| Comma-delimited userIds. | | ### Return type -[**GetUserPresenceStatuses200Response**](GetUserPresenceStatuses200Response.md) +[**PageUsersInfoResponse**](PageUsersInfoResponse.md) ### Authorization @@ -1387,10 +2419,11 @@ No authorization required |-------------|-------------|------------------| | **200** | Ok | - | | **422** | Validation Failed | - | +| **0** | Error | - | - -# **getUserReactsPublic** -> GetUserReactsPublic200Response getUserReactsPublic(tenantId).postIds(postIds).sso(sso).execute(); + +# **getV1PageLikes** +> GetV1PageLikes getV1PageLikes(tenantId, urlId).execute(); @@ -1410,16 +2443,13 @@ public class Example { PublicApi apiInstance = new PublicApi(defaultClient); String tenantId = "tenantId_example"; // String | - List postIds = Arrays.asList(); // List | - String sso = "sso_example"; // String | + String urlId = "urlId_example"; // String | try { - GetUserReactsPublic200Response result = apiInstance.getUserReactsPublic(tenantId) - .postIds(postIds) - .sso(sso) + GetV1PageLikes result = apiInstance.getV1PageLikes(tenantId, urlId) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PublicApi#getUserReactsPublic"); + System.err.println("Exception when calling PublicApi#getV1PageLikes"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1434,12 +2464,141 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | | -| **postIds** | [**List<String>**](String.md)| | [optional] | -| **sso** | **String**| | [optional] | +| **urlId** | **String**| | | + +### Return type + +[**GetV1PageLikes**](GetV1PageLikes.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getV2PageReactUsers** +> GetV2PageReactUsersResponse getV2PageReactUsers(tenantId, urlId, id).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String tenantId = "tenantId_example"; // String | + String urlId = "urlId_example"; // String | + String id = "id_example"; // String | + try { + GetV2PageReactUsersResponse result = apiInstance.getV2PageReactUsers(tenantId, urlId, id) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getV2PageReactUsers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | +| **urlId** | **String**| | | +| **id** | **String**| | | + +### Return type + +[**GetV2PageReactUsersResponse**](GetV2PageReactUsersResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **getV2PageReacts** +> GetV2PageReacts getV2PageReacts(tenantId, urlId).execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + String tenantId = "tenantId_example"; // String | + String urlId = "urlId_example"; // String | + try { + GetV2PageReacts result = apiInstance.getV2PageReacts(tenantId, urlId) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#getV2PageReacts"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | +| **urlId** | **String**| | | ### Return type -[**GetUserReactsPublic200Response**](GetUserReactsPublic200Response.md) +[**GetV2PageReacts**](GetV2PageReacts.md) ### Authorization @@ -1454,10 +2613,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **lockComment** -> LockComment200Response lockComment(tenantId, commentId, broadcastId).sso(sso).execute(); +> APIEmptyResponse lockComment(tenantId, commentId, broadcastId).sso(sso).execute(); @@ -1481,7 +2641,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - LockComment200Response result = apiInstance.lockComment(tenantId, commentId, broadcastId) + APIEmptyResponse result = apiInstance.lockComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -1507,7 +2667,65 @@ public class Example { ### Return type -[**LockComment200Response**](LockComment200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Ok | - | +| **0** | Error | - | + + +# **logoutPublic** +> APIEmptyResponse logoutPublic().execute(); + + + +### Example +```java +// Import classes: +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.models.*; +import com.fastcomments.api.PublicApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://fastcomments.com"); + + PublicApi apiInstance = new PublicApi(defaultClient); + try { + APIEmptyResponse result = apiInstance.logoutPublic() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicApi#logoutPublic"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1525,7 +2743,7 @@ No authorization required # **pinComment** -> PinComment200Response pinComment(tenantId, commentId, broadcastId).sso(sso).execute(); +> ChangeCommentPinStatusResponse pinComment(tenantId, commentId, broadcastId).sso(sso).execute(); @@ -1549,7 +2767,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - PinComment200Response result = apiInstance.pinComment(tenantId, commentId, broadcastId) + ChangeCommentPinStatusResponse result = apiInstance.pinComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -1575,7 +2793,7 @@ public class Example { ### Return type -[**PinComment200Response**](PinComment200Response.md) +[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -1590,10 +2808,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **reactFeedPostPublic** -> ReactFeedPostPublic200Response reactFeedPostPublic(tenantId, postId, reactBodyParams).isUndo(isUndo).broadcastId(broadcastId).sso(sso).execute(); +> ReactFeedPostResponse reactFeedPostPublic(tenantId, postId, reactBodyParams).isUndo(isUndo).broadcastId(broadcastId).sso(sso).execute(); @@ -1619,7 +2838,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - ReactFeedPostPublic200Response result = apiInstance.reactFeedPostPublic(tenantId, postId, reactBodyParams) + ReactFeedPostResponse result = apiInstance.reactFeedPostPublic(tenantId, postId, reactBodyParams) .isUndo(isUndo) .broadcastId(broadcastId) .sso(sso) @@ -1649,7 +2868,7 @@ public class Example { ### Return type -[**ReactFeedPostPublic200Response**](ReactFeedPostPublic200Response.md) +[**ReactFeedPostResponse**](ReactFeedPostResponse.md) ### Authorization @@ -1664,10 +2883,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **resetUserNotificationCount** -> ResetUserNotifications200Response resetUserNotificationCount(tenantId).sso(sso).execute(); +> ResetUserNotificationsResponse resetUserNotificationCount(tenantId).sso(sso).execute(); @@ -1689,7 +2909,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ResetUserNotifications200Response result = apiInstance.resetUserNotificationCount(tenantId) + ResetUserNotificationsResponse result = apiInstance.resetUserNotificationCount(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1713,7 +2933,7 @@ public class Example { ### Return type -[**ResetUserNotifications200Response**](ResetUserNotifications200Response.md) +[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -1728,10 +2948,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **resetUserNotifications** -> ResetUserNotifications200Response resetUserNotifications(tenantId).afterId(afterId).afterCreatedAt(afterCreatedAt).unreadOnly(unreadOnly).dmOnly(dmOnly).noDm(noDm).sso(sso).execute(); +> ResetUserNotificationsResponse resetUserNotifications(tenantId).afterId(afterId).afterCreatedAt(afterCreatedAt).unreadOnly(unreadOnly).dmOnly(dmOnly).noDm(noDm).sso(sso).execute(); @@ -1758,7 +2979,7 @@ public class Example { Boolean noDm = true; // Boolean | String sso = "sso_example"; // String | try { - ResetUserNotifications200Response result = apiInstance.resetUserNotifications(tenantId) + ResetUserNotificationsResponse result = apiInstance.resetUserNotifications(tenantId) .afterId(afterId) .afterCreatedAt(afterCreatedAt) .unreadOnly(unreadOnly) @@ -1792,7 +3013,7 @@ public class Example { ### Return type -[**ResetUserNotifications200Response**](ResetUserNotifications200Response.md) +[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -1807,10 +3028,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **searchUsers** -> SearchUsers200Response searchUsers(tenantId, urlId).usernameStartsWith(usernameStartsWith).mentionGroupIds(mentionGroupIds).sso(sso).searchSection(searchSection).execute(); +> SearchUsersResult searchUsers(tenantId, urlId).usernameStartsWith(usernameStartsWith).mentionGroupIds(mentionGroupIds).sso(sso).searchSection(searchSection).execute(); @@ -1836,7 +3058,7 @@ public class Example { String sso = "sso_example"; // String | String searchSection = "fast"; // String | try { - SearchUsers200Response result = apiInstance.searchUsers(tenantId, urlId) + SearchUsersResult result = apiInstance.searchUsers(tenantId, urlId) .usernameStartsWith(usernameStartsWith) .mentionGroupIds(mentionGroupIds) .sso(sso) @@ -1867,7 +3089,7 @@ public class Example { ### Return type -[**SearchUsers200Response**](SearchUsers200Response.md) +[**SearchUsersResult**](SearchUsersResult.md) ### Authorization @@ -1882,10 +3104,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **setCommentText** -> SetCommentText200Response setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest).editKey(editKey).sso(sso).execute(); +> PublicAPISetCommentTextResponse setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest).editKey(editKey).sso(sso).execute(); @@ -1911,7 +3134,7 @@ public class Example { String editKey = "editKey_example"; // String | String sso = "sso_example"; // String | try { - SetCommentText200Response result = apiInstance.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest) + PublicAPISetCommentTextResponse result = apiInstance.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest) .editKey(editKey) .sso(sso) .execute(); @@ -1940,7 +3163,7 @@ public class Example { ### Return type -[**SetCommentText200Response**](SetCommentText200Response.md) +[**PublicAPISetCommentTextResponse**](PublicAPISetCommentTextResponse.md) ### Authorization @@ -1955,10 +3178,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **unBlockCommentPublic** -> UnBlockCommentPublic200Response unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams).sso(sso).execute(); +> UnblockSuccess unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams).sso(sso).execute(); @@ -1982,7 +3206,7 @@ public class Example { PublicBlockFromCommentParams publicBlockFromCommentParams = new PublicBlockFromCommentParams(); // PublicBlockFromCommentParams | String sso = "sso_example"; // String | try { - UnBlockCommentPublic200Response result = apiInstance.unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams) + UnblockSuccess result = apiInstance.unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams) .sso(sso) .execute(); System.out.println(result); @@ -2008,7 +3232,7 @@ public class Example { ### Return type -[**UnBlockCommentPublic200Response**](UnBlockCommentPublic200Response.md) +[**UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -2023,10 +3247,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **unLockComment** -> LockComment200Response unLockComment(tenantId, commentId, broadcastId).sso(sso).execute(); +> APIEmptyResponse unLockComment(tenantId, commentId, broadcastId).sso(sso).execute(); @@ -2050,7 +3275,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - LockComment200Response result = apiInstance.unLockComment(tenantId, commentId, broadcastId) + APIEmptyResponse result = apiInstance.unLockComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -2076,7 +3301,7 @@ public class Example { ### Return type -[**LockComment200Response**](LockComment200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2091,10 +3316,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **unPinComment** -> PinComment200Response unPinComment(tenantId, commentId, broadcastId).sso(sso).execute(); +> ChangeCommentPinStatusResponse unPinComment(tenantId, commentId, broadcastId).sso(sso).execute(); @@ -2118,7 +3344,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - PinComment200Response result = apiInstance.unPinComment(tenantId, commentId, broadcastId) + ChangeCommentPinStatusResponse result = apiInstance.unPinComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -2144,7 +3370,7 @@ public class Example { ### Return type -[**PinComment200Response**](PinComment200Response.md) +[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -2159,10 +3385,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateFeedPostPublic** -> CreateFeedPostPublic200Response updateFeedPostPublic(tenantId, postId, updateFeedPostParams).broadcastId(broadcastId).sso(sso).execute(); +> CreateFeedPostResponse updateFeedPostPublic(tenantId, postId, updateFeedPostParams).broadcastId(broadcastId).sso(sso).execute(); @@ -2187,7 +3414,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - CreateFeedPostPublic200Response result = apiInstance.updateFeedPostPublic(tenantId, postId, updateFeedPostParams) + CreateFeedPostResponse result = apiInstance.updateFeedPostPublic(tenantId, postId, updateFeedPostParams) .broadcastId(broadcastId) .sso(sso) .execute(); @@ -2215,7 +3442,7 @@ public class Example { ### Return type -[**CreateFeedPostPublic200Response**](CreateFeedPostPublic200Response.md) +[**CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -2230,10 +3457,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateUserNotificationCommentSubscriptionStatus** -> UpdateUserNotificationStatus200Response updateUserNotificationCommentSubscriptionStatus(tenantId, notificationId, optedInOrOut, commentId).sso(sso).execute(); +> UpdateUserNotificationCommentSubscriptionStatusResponse updateUserNotificationCommentSubscriptionStatus(tenantId, notificationId, optedInOrOut, commentId).sso(sso).execute(); @@ -2260,7 +3488,7 @@ public class Example { String commentId = "commentId_example"; // String | String sso = "sso_example"; // String | try { - UpdateUserNotificationStatus200Response result = apiInstance.updateUserNotificationCommentSubscriptionStatus(tenantId, notificationId, optedInOrOut, commentId) + UpdateUserNotificationCommentSubscriptionStatusResponse result = apiInstance.updateUserNotificationCommentSubscriptionStatus(tenantId, notificationId, optedInOrOut, commentId) .sso(sso) .execute(); System.out.println(result); @@ -2287,7 +3515,7 @@ public class Example { ### Return type -[**UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus200Response.md) +[**UpdateUserNotificationCommentSubscriptionStatusResponse**](UpdateUserNotificationCommentSubscriptionStatusResponse.md) ### Authorization @@ -2302,10 +3530,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateUserNotificationPageSubscriptionStatus** -> UpdateUserNotificationStatus200Response updateUserNotificationPageSubscriptionStatus(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed).sso(sso).execute(); +> UpdateUserNotificationPageSubscriptionStatusResponse updateUserNotificationPageSubscriptionStatus(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed).sso(sso).execute(); @@ -2333,7 +3562,7 @@ public class Example { String subscribedOrUnsubscribed = "subscribe"; // String | String sso = "sso_example"; // String | try { - UpdateUserNotificationStatus200Response result = apiInstance.updateUserNotificationPageSubscriptionStatus(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed) + UpdateUserNotificationPageSubscriptionStatusResponse result = apiInstance.updateUserNotificationPageSubscriptionStatus(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed) .sso(sso) .execute(); System.out.println(result); @@ -2361,7 +3590,7 @@ public class Example { ### Return type -[**UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus200Response.md) +[**UpdateUserNotificationPageSubscriptionStatusResponse**](UpdateUserNotificationPageSubscriptionStatusResponse.md) ### Authorization @@ -2376,10 +3605,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateUserNotificationStatus** -> UpdateUserNotificationStatus200Response updateUserNotificationStatus(tenantId, notificationId, newStatus).sso(sso).execute(); +> UpdateUserNotificationStatusResponse updateUserNotificationStatus(tenantId, notificationId, newStatus).sso(sso).execute(); @@ -2403,7 +3633,7 @@ public class Example { String newStatus = "read"; // String | String sso = "sso_example"; // String | try { - UpdateUserNotificationStatus200Response result = apiInstance.updateUserNotificationStatus(tenantId, notificationId, newStatus) + UpdateUserNotificationStatusResponse result = apiInstance.updateUserNotificationStatus(tenantId, notificationId, newStatus) .sso(sso) .execute(); System.out.println(result); @@ -2429,7 +3659,7 @@ public class Example { ### Return type -[**UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus200Response.md) +[**UpdateUserNotificationStatusResponse**](UpdateUserNotificationStatusResponse.md) ### Authorization @@ -2444,6 +3674,7 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **uploadImage** @@ -2518,7 +3749,7 @@ No authorization required # **voteComment** -> VoteComment200Response voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams).sessionId(sessionId).sso(sso).execute(); +> VoteResponse voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams).sessionId(sessionId).sso(sso).execute(); @@ -2545,7 +3776,7 @@ public class Example { String sessionId = "sessionId_example"; // String | String sso = "sso_example"; // String | try { - VoteComment200Response result = apiInstance.voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams) + VoteResponse result = apiInstance.voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams) .sessionId(sessionId) .sso(sso) .execute(); @@ -2575,7 +3806,7 @@ public class Example { ### Return type -[**VoteComment200Response**](VoteComment200Response.md) +[**VoteResponse**](VoteResponse.md) ### Authorization @@ -2590,4 +3821,5 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | diff --git a/client/docs/PublicPage.md b/client/docs/PublicPage.md new file mode 100644 index 00000000..17b6916f --- /dev/null +++ b/client/docs/PublicPage.md @@ -0,0 +1,17 @@ + + +# PublicPage + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**updatedAt** | **Long** | | | +|**commentCount** | **Integer** | | | +|**title** | **String** | | | +|**url** | **String** | | | +|**urlId** | **String** | | | + + + diff --git a/client/docs/PutDomainConfigResponse.md b/client/docs/PutDomainConfigResponse.md new file mode 100644 index 00000000..92f26912 --- /dev/null +++ b/client/docs/PutDomainConfigResponse.md @@ -0,0 +1,16 @@ + + +# PutDomainConfigResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**_configuration** | **Object** | | [optional] | +|**status** | **Object** | | | +|**reason** | **String** | | [optional] | +|**code** | **String** | | [optional] | + + + diff --git a/client/docs/ReactFeedPostPublic200Response.md b/client/docs/ReactFeedPostPublic200Response.md deleted file mode 100644 index 1c7824a2..00000000 --- a/client/docs/ReactFeedPostPublic200Response.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# ReactFeedPostPublic200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**reactType** | **String** | | [optional] | -|**isUndo** | **Boolean** | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/RemoveCommentActionResponse.md b/client/docs/RemoveCommentActionResponse.md new file mode 100644 index 00000000..66192643 --- /dev/null +++ b/client/docs/RemoveCommentActionResponse.md @@ -0,0 +1,14 @@ + + +# RemoveCommentActionResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **String** | | | +|**action** | **String** | | | + + + diff --git a/client/docs/RemoveUserBadgeResponse.md b/client/docs/RemoveUserBadgeResponse.md new file mode 100644 index 00000000..110e8bf9 --- /dev/null +++ b/client/docs/RemoveUserBadgeResponse.md @@ -0,0 +1,14 @@ + + +# RemoveUserBadgeResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**badges** | [**List<CommentUserBadgeInfo>**](CommentUserBadgeInfo.md) | | [optional] | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/RenderEmailTemplate200Response.md b/client/docs/RenderEmailTemplate200Response.md deleted file mode 100644 index 7e3cff0f..00000000 --- a/client/docs/RenderEmailTemplate200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# RenderEmailTemplate200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**html** | **String** | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/ResetUserNotifications200Response.md b/client/docs/ResetUserNotifications200Response.md deleted file mode 100644 index 2358be6d..00000000 --- a/client/docs/ResetUserNotifications200Response.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# ResetUserNotifications200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**code** | **String** | | [optional] | -|**reason** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/SaveComment200Response.md b/client/docs/SaveCommentsBulkResponse.md similarity index 88% rename from client/docs/SaveComment200Response.md rename to client/docs/SaveCommentsBulkResponse.md index 1a3e3660..eed33dcf 100644 --- a/client/docs/SaveComment200Response.md +++ b/client/docs/SaveCommentsBulkResponse.md @@ -1,6 +1,6 @@ -# SaveComment200Response +# SaveCommentsBulkResponse ## Properties @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**status** | **APIStatus** | | | -|**comment** | [**FComment**](FComment.md) | | [optional] | +|**comment** | [**APIComment**](APIComment.md) | | [optional] | |**user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] | |**moduleData** | **Map<String, Object>** | Construct a type with a set of properties K of type T | [optional] | |**reason** | **String** | | [optional] | diff --git a/client/docs/SearchUsers200Response.md b/client/docs/SearchUsers200Response.md deleted file mode 100644 index b789f848..00000000 --- a/client/docs/SearchUsers200Response.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# SearchUsers200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**sections** | [**List<UserSearchSectionResult>**](UserSearchSectionResult.md) | | [optional] | -|**users** | [**List<UserSearchResult>**](UserSearchResult.md) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/SearchUsersResult.md b/client/docs/SearchUsersResult.md new file mode 100644 index 00000000..65618ed6 --- /dev/null +++ b/client/docs/SearchUsersResult.md @@ -0,0 +1,15 @@ + + +# SearchUsersResult + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**sections** | [**List<UserSearchSectionResult>**](UserSearchSectionResult.md) | | [optional] | +|**users** | [**List<UserSearchResult>**](UserSearchResult.md) | | [optional] | + + + diff --git a/client/docs/SetCommentApprovedResponse.md b/client/docs/SetCommentApprovedResponse.md new file mode 100644 index 00000000..82b733d3 --- /dev/null +++ b/client/docs/SetCommentApprovedResponse.md @@ -0,0 +1,14 @@ + + +# SetCommentApprovedResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**didResetFlaggedCount** | **Boolean** | | [optional] | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/SetCommentText200Response.md b/client/docs/SetCommentText200Response.md deleted file mode 100644 index 86d5016b..00000000 --- a/client/docs/SetCommentText200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# SetCommentText200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**comment** | [**SetCommentTextResult**](SetCommentTextResult.md) | | [optional] | -|**status** | **APIStatus** | | | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/SetCommentTextParams.md b/client/docs/SetCommentTextParams.md new file mode 100644 index 00000000..0f41858f --- /dev/null +++ b/client/docs/SetCommentTextParams.md @@ -0,0 +1,13 @@ + + +# SetCommentTextParams + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**comment** | **String** | | | + + + diff --git a/client/docs/SetCommentTextResponse.md b/client/docs/SetCommentTextResponse.md new file mode 100644 index 00000000..36e72841 --- /dev/null +++ b/client/docs/SetCommentTextResponse.md @@ -0,0 +1,14 @@ + + +# SetCommentTextResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**newCommentTextHTML** | **String** | | | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/SetUserTrustFactorResponse.md b/client/docs/SetUserTrustFactorResponse.md new file mode 100644 index 00000000..479195db --- /dev/null +++ b/client/docs/SetUserTrustFactorResponse.md @@ -0,0 +1,14 @@ + + +# SetUserTrustFactorResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**previousManualTrustFactor** | **Double** | | [optional] | +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/TenantBadge.md b/client/docs/TenantBadge.md new file mode 100644 index 00000000..1ab35c2f --- /dev/null +++ b/client/docs/TenantBadge.md @@ -0,0 +1,33 @@ + + +# TenantBadge + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | | +|**tenantId** | **String** | | | +|**createdByUserId** | **String** | | | +|**createdAt** | **OffsetDateTime** | | | +|**enabled** | **Boolean** | | | +|**urlId** | **String** | | [optional] | +|**type** | **Double** | | | +|**threshold** | **Double** | | | +|**uses** | **Double** | | | +|**name** | **String** | | | +|**description** | **String** | | | +|**displayLabel** | **String** | | | +|**displaySrc** | **String** | | | +|**backgroundColor** | **String** | | | +|**borderColor** | **String** | | | +|**textColor** | **String** | | | +|**cssClass** | **String** | | [optional] | +|**veteranUserThresholdMillis** | **Double** | | [optional] | +|**isAwaitingReprocess** | **Boolean** | | | +|**isAwaitingDeletion** | **Boolean** | | | +|**replacesBadgeId** | **String** | | [optional] | + + + diff --git a/client/docs/TenantPackage.md b/client/docs/TenantPackage.md index 78fad5f8..7f28ddde 100644 --- a/client/docs/TenantPackage.md +++ b/client/docs/TenantPackage.md @@ -11,6 +11,7 @@ |**name** | **String** | | | |**tenantId** | **String** | | | |**createdAt** | **OffsetDateTime** | | | +|**templateId** | **String** | | [optional] | |**monthlyCostUSD** | **Double** | | | |**yearlyCostUSD** | **Double** | | | |**monthlyStripePlanId** | **String** | | | @@ -63,6 +64,10 @@ |**flexSSOModeratorCostCents** | **Double** | | [optional] | |**flexSSOModeratorUnit** | **Double** | | [optional] | |**isSSOBillingMonthlyActiveUsers** | **Boolean** | | [optional] | +|**hasAIAgents** | **Boolean** | | [optional] | +|**maxAIAgents** | **Double** | | [optional] | +|**aiAgentDailyBudgetCents** | **Double** | | [optional] | +|**aiAgentMonthlyBudgetCents** | **Double** | | [optional] | diff --git a/client/docs/UnBlockCommentPublic200Response.md b/client/docs/UnBlockCommentPublic200Response.md deleted file mode 100644 index 72f0405e..00000000 --- a/client/docs/UnBlockCommentPublic200Response.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# UnBlockCommentPublic200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**commentStatuses** | **Map<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/UpdateUserBadge200Response.md b/client/docs/UpdateUserBadge200Response.md deleted file mode 100644 index b198bda7..00000000 --- a/client/docs/UpdateUserBadge200Response.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# UpdateUserBadge200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/docs/UpdateUserNotificationStatus200Response.md b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md similarity index 52% rename from client/docs/UpdateUserNotificationStatus200Response.md rename to client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md index 8601f990..884ec500 100644 --- a/client/docs/UpdateUserNotificationStatus200Response.md +++ b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -1,6 +1,6 @@ -# UpdateUserNotificationStatus200Response +# UpdateUserNotificationCommentSubscriptionStatusResponse ## Properties @@ -11,13 +11,6 @@ |**matchedCount** | **Long** | | [optional] | |**modifiedCount** | **Long** | | [optional] | |**note** | [**NoteEnum**](#NoteEnum) | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | diff --git a/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md new file mode 100644 index 00000000..e735cead --- /dev/null +++ b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -0,0 +1,25 @@ + + +# UpdateUserNotificationPageSubscriptionStatusResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**matchedCount** | **Long** | | [optional] | +|**modifiedCount** | **Long** | | [optional] | +|**note** | [**NoteEnum**](#NoteEnum) | | [optional] | + + + +## Enum: NoteEnum + +| Name | Value | +|---- | -----| +| IGNORED_SINCE_IMPERSONATED | "ignored-since-impersonated" | +| DEMO_NOOP | "demo-noop" | + + + diff --git a/client/docs/UpdateUserNotificationStatusResponse.md b/client/docs/UpdateUserNotificationStatusResponse.md new file mode 100644 index 00000000..7976fc31 --- /dev/null +++ b/client/docs/UpdateUserNotificationStatusResponse.md @@ -0,0 +1,25 @@ + + +# UpdateUserNotificationStatusResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**matchedCount** | **Long** | | [optional] | +|**modifiedCount** | **Long** | | [optional] | +|**note** | [**NoteEnum**](#NoteEnum) | | [optional] | + + + +## Enum: NoteEnum + +| Name | Value | +|---- | -----| +| IGNORED_SINCE_IMPERSONATED | "ignored-since-impersonated" | +| DEMO_NOOP | "demo-noop" | + + + diff --git a/client/docs/User.md b/client/docs/User.md index 462085ee..cf92e16b 100644 --- a/client/docs/User.md +++ b/client/docs/User.md @@ -46,6 +46,7 @@ |**digestEmailFrequency** | **DigestEmailFrequency** | | [optional] | |**notificationFrequency** | **Double** | | [optional] | |**adminNotificationFrequency** | **Double** | | [optional] | +|**agentApprovalNotificationFrequency** | **ImportedAgentApprovalNotificationFrequency** | | [optional] | |**lastTenantNotificationSentDate** | **OffsetDateTime** | | [optional] | |**lastReplyNotificationSentDate** | **OffsetDateTime** | | [optional] | |**ignoredAddToMySiteMessages** | **Boolean** | | [optional] | diff --git a/client/docs/UsersListLocation.md b/client/docs/UsersListLocation.md new file mode 100644 index 00000000..6988f08e --- /dev/null +++ b/client/docs/UsersListLocation.md @@ -0,0 +1,17 @@ + + +# UsersListLocation + +## Enum + + +* `NUMBER_0` (value: `0`) + +* `NUMBER_1` (value: `1`) + +* `NUMBER_2` (value: `2`) + +* `NUMBER_3` (value: `3`) + + + diff --git a/client/docs/VoteComment200Response.md b/client/docs/VoteComment200Response.md deleted file mode 100644 index 863fed45..00000000 --- a/client/docs/VoteComment200Response.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# VoteComment200Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**voteId** | **String** | | [optional] | -|**isVerified** | **Boolean** | | [optional] | -|**user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] | -|**editKey** | **String** | | [optional] | -|**reason** | **String** | | [optional] | -|**code** | **String** | | [optional] | -|**secondaryCode** | **String** | | [optional] | -|**bannedUntil** | **Long** | | [optional] | -|**maxCharacterLength** | **Integer** | | [optional] | -|**translatedError** | **String** | | [optional] | -|**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - - - diff --git a/client/src/main/java/com/fastcomments/api/DefaultApi.java b/client/src/main/java/com/fastcomments/api/DefaultApi.java index 7f37f692..677aced1 100644 --- a/client/src/main/java/com/fastcomments/api/DefaultApi.java +++ b/client/src/main/java/com/fastcomments/api/DefaultApi.java @@ -27,119 +27,122 @@ import java.io.IOException; -import com.fastcomments.model.AddDomainConfig200Response; +import com.fastcomments.model.APICreateUserBadgeResponse; +import com.fastcomments.model.APIEmptyResponse; +import com.fastcomments.model.APIEmptySuccessResponse; +import com.fastcomments.model.APIError; +import com.fastcomments.model.APIGetCommentResponse; +import com.fastcomments.model.APIGetCommentsResponse; +import com.fastcomments.model.APIGetUserBadgeProgressListResponse; +import com.fastcomments.model.APIGetUserBadgeProgressResponse; +import com.fastcomments.model.APIGetUserBadgeResponse; +import com.fastcomments.model.APIGetUserBadgesResponse; +import com.fastcomments.model.APISaveCommentResponse; import com.fastcomments.model.AddDomainConfigParams; -import com.fastcomments.model.AddHashTag200Response; -import com.fastcomments.model.AddHashTagsBulk200Response; +import com.fastcomments.model.AddDomainConfigResponse; import com.fastcomments.model.AddPageAPIResponse; import com.fastcomments.model.AddSSOUserAPIResponse; -import com.fastcomments.model.AggregateQuestionResults200Response; +import com.fastcomments.model.AggregateQuestionResultsResponse; +import com.fastcomments.model.AggregateResponse; import com.fastcomments.model.AggregateTimeBucket; import com.fastcomments.model.AggregationRequest; -import com.fastcomments.model.AggregationResponse; import com.fastcomments.model.BlockFromCommentParams; -import com.fastcomments.model.BlockFromCommentPublic200Response; -import com.fastcomments.model.BulkAggregateQuestionResults200Response; +import com.fastcomments.model.BlockSuccess; import com.fastcomments.model.BulkAggregateQuestionResultsRequest; +import com.fastcomments.model.BulkAggregateQuestionResultsResponse; import com.fastcomments.model.BulkCreateHashTagsBody; -import com.fastcomments.model.ChangeTicketState200Response; +import com.fastcomments.model.BulkCreateHashTagsResponse; import com.fastcomments.model.ChangeTicketStateBody; -import com.fastcomments.model.CombineCommentsWithQuestionResults200Response; +import com.fastcomments.model.ChangeTicketStateResponse; +import com.fastcomments.model.CombineQuestionResultsWithCommentsResponse; import com.fastcomments.model.CreateAPIPageData; import com.fastcomments.model.CreateAPISSOUserData; import com.fastcomments.model.CreateAPIUserSubscriptionData; import com.fastcomments.model.CreateCommentParams; -import com.fastcomments.model.CreateEmailTemplate200Response; import com.fastcomments.model.CreateEmailTemplateBody; -import com.fastcomments.model.CreateFeedPost200Response; +import com.fastcomments.model.CreateEmailTemplateResponse; import com.fastcomments.model.CreateFeedPostParams; +import com.fastcomments.model.CreateFeedPostsResponse; import com.fastcomments.model.CreateHashTagBody; -import com.fastcomments.model.CreateModerator200Response; +import com.fastcomments.model.CreateHashTagResponse; import com.fastcomments.model.CreateModeratorBody; -import com.fastcomments.model.CreateQuestionConfig200Response; +import com.fastcomments.model.CreateModeratorResponse; import com.fastcomments.model.CreateQuestionConfigBody; -import com.fastcomments.model.CreateQuestionResult200Response; +import com.fastcomments.model.CreateQuestionConfigResponse; import com.fastcomments.model.CreateQuestionResultBody; +import com.fastcomments.model.CreateQuestionResultResponse; import com.fastcomments.model.CreateSubscriptionAPIResponse; -import com.fastcomments.model.CreateTenant200Response; import com.fastcomments.model.CreateTenantBody; -import com.fastcomments.model.CreateTenantPackage200Response; import com.fastcomments.model.CreateTenantPackageBody; -import com.fastcomments.model.CreateTenantUser200Response; +import com.fastcomments.model.CreateTenantPackageResponse; +import com.fastcomments.model.CreateTenantResponse; import com.fastcomments.model.CreateTenantUserBody; -import com.fastcomments.model.CreateTicket200Response; +import com.fastcomments.model.CreateTenantUserResponse; import com.fastcomments.model.CreateTicketBody; -import com.fastcomments.model.CreateUserBadge200Response; +import com.fastcomments.model.CreateTicketResponse; import com.fastcomments.model.CreateUserBadgeParams; -import com.fastcomments.model.DeleteComment200Response; -import com.fastcomments.model.DeleteCommentVote200Response; -import com.fastcomments.model.DeleteDomainConfig200Response; -import com.fastcomments.model.DeleteHashTagRequest; +import com.fastcomments.model.DeleteCommentResult; +import com.fastcomments.model.DeleteDomainConfigResponse; +import com.fastcomments.model.DeleteHashTagRequestBody; import com.fastcomments.model.DeletePageAPIResponse; import com.fastcomments.model.DeleteSSOUserAPIResponse; import com.fastcomments.model.DeleteSubscriptionAPIResponse; import com.fastcomments.model.FeedPost; -import com.fastcomments.model.FlagComment200Response; -import com.fastcomments.model.FlagCommentPublic200Response; -import com.fastcomments.model.GetAuditLogs200Response; -import com.fastcomments.model.GetCachedNotificationCount200Response; -import com.fastcomments.model.GetComment200Response; -import com.fastcomments.model.GetComments200Response; -import com.fastcomments.model.GetDomainConfig200Response; -import com.fastcomments.model.GetDomainConfigs200Response; -import com.fastcomments.model.GetEmailTemplate200Response; -import com.fastcomments.model.GetEmailTemplateDefinitions200Response; -import com.fastcomments.model.GetEmailTemplateRenderErrors200Response; -import com.fastcomments.model.GetEmailTemplates200Response; -import com.fastcomments.model.GetFeedPosts200Response; -import com.fastcomments.model.GetHashTags200Response; -import com.fastcomments.model.GetModerator200Response; -import com.fastcomments.model.GetModerators200Response; -import com.fastcomments.model.GetNotificationCount200Response; -import com.fastcomments.model.GetNotifications200Response; +import com.fastcomments.model.FlagCommentResponse; +import com.fastcomments.model.GetAuditLogsResponse; +import com.fastcomments.model.GetCachedNotificationCountResponse; +import com.fastcomments.model.GetDomainConfigResponse; +import com.fastcomments.model.GetDomainConfigsResponse; +import com.fastcomments.model.GetEmailTemplateDefinitionsResponse; +import com.fastcomments.model.GetEmailTemplateRenderErrorsResponse; +import com.fastcomments.model.GetEmailTemplateResponse; +import com.fastcomments.model.GetEmailTemplatesResponse; +import com.fastcomments.model.GetFeedPostsResponse; +import com.fastcomments.model.GetHashTagsResponse; +import com.fastcomments.model.GetModeratorResponse; +import com.fastcomments.model.GetModeratorsResponse; +import com.fastcomments.model.GetNotificationCountResponse; +import com.fastcomments.model.GetNotificationsResponse; import com.fastcomments.model.GetPageByURLIdAPIResponse; import com.fastcomments.model.GetPagesAPIResponse; -import com.fastcomments.model.GetPendingWebhookEventCount200Response; -import com.fastcomments.model.GetPendingWebhookEvents200Response; -import com.fastcomments.model.GetQuestionConfig200Response; -import com.fastcomments.model.GetQuestionConfigs200Response; -import com.fastcomments.model.GetQuestionResult200Response; -import com.fastcomments.model.GetQuestionResults200Response; +import com.fastcomments.model.GetPendingWebhookEventCountResponse; +import com.fastcomments.model.GetPendingWebhookEventsResponse; +import com.fastcomments.model.GetQuestionConfigResponse; +import com.fastcomments.model.GetQuestionConfigsResponse; +import com.fastcomments.model.GetQuestionResultResponse; +import com.fastcomments.model.GetQuestionResultsResponse; import com.fastcomments.model.GetSSOUserByEmailAPIResponse; import com.fastcomments.model.GetSSOUserByIdAPIResponse; -import com.fastcomments.model.GetSSOUsers200Response; +import com.fastcomments.model.GetSSOUsersResponse; import com.fastcomments.model.GetSubscriptionsAPIResponse; -import com.fastcomments.model.GetTenant200Response; -import com.fastcomments.model.GetTenantDailyUsages200Response; -import com.fastcomments.model.GetTenantPackage200Response; -import com.fastcomments.model.GetTenantPackages200Response; -import com.fastcomments.model.GetTenantUser200Response; -import com.fastcomments.model.GetTenantUsers200Response; -import com.fastcomments.model.GetTenants200Response; -import com.fastcomments.model.GetTicket200Response; -import com.fastcomments.model.GetTickets200Response; -import com.fastcomments.model.GetUser200Response; -import com.fastcomments.model.GetUserBadge200Response; -import com.fastcomments.model.GetUserBadgeProgressById200Response; -import com.fastcomments.model.GetUserBadgeProgressList200Response; -import com.fastcomments.model.GetUserBadges200Response; -import com.fastcomments.model.GetVotes200Response; -import com.fastcomments.model.GetVotesForUser200Response; +import com.fastcomments.model.GetTenantDailyUsagesResponse; +import com.fastcomments.model.GetTenantPackageResponse; +import com.fastcomments.model.GetTenantPackagesResponse; +import com.fastcomments.model.GetTenantResponse; +import com.fastcomments.model.GetTenantUserResponse; +import com.fastcomments.model.GetTenantUsersResponse; +import com.fastcomments.model.GetTenantsResponse; +import com.fastcomments.model.GetTicketResponse; +import com.fastcomments.model.GetTicketsResponse; +import com.fastcomments.model.GetUserResponse; +import com.fastcomments.model.GetVotesForUserResponse; +import com.fastcomments.model.GetVotesResponse; import java.time.OffsetDateTime; import com.fastcomments.model.PatchDomainConfigParams; -import com.fastcomments.model.PatchHashTag200Response; +import com.fastcomments.model.PatchDomainConfigResponse; import com.fastcomments.model.PatchPageAPIResponse; import com.fastcomments.model.PatchSSOUserAPIResponse; +import com.fastcomments.model.PutDomainConfigResponse; import com.fastcomments.model.PutSSOUserAPIResponse; -import com.fastcomments.model.RenderEmailTemplate200Response; import com.fastcomments.model.RenderEmailTemplateBody; +import com.fastcomments.model.RenderEmailTemplateResponse; import com.fastcomments.model.ReplaceTenantPackageBody; import com.fastcomments.model.ReplaceTenantUserBody; import com.fastcomments.model.SORTDIR; -import com.fastcomments.model.SaveComment200Response; +import com.fastcomments.model.SaveCommentsBulkResponse; import com.fastcomments.model.SortDirections; -import com.fastcomments.model.UnBlockCommentPublic200Response; import com.fastcomments.model.UnBlockFromCommentParams; +import com.fastcomments.model.UnblockSuccess; import com.fastcomments.model.UpdatableCommentParams; import com.fastcomments.model.UpdateAPIPageData; import com.fastcomments.model.UpdateAPISSOUserData; @@ -147,6 +150,7 @@ import com.fastcomments.model.UpdateDomainConfigParams; import com.fastcomments.model.UpdateEmailTemplateBody; import com.fastcomments.model.UpdateHashTagBody; +import com.fastcomments.model.UpdateHashTagResponse; import com.fastcomments.model.UpdateModeratorBody; import com.fastcomments.model.UpdateNotificationBody; import com.fastcomments.model.UpdateQuestionConfigBody; @@ -155,9 +159,9 @@ import com.fastcomments.model.UpdateTenantBody; import com.fastcomments.model.UpdateTenantPackageBody; import com.fastcomments.model.UpdateTenantUserBody; -import com.fastcomments.model.UpdateUserBadge200Response; import com.fastcomments.model.UpdateUserBadgeParams; -import com.fastcomments.model.VoteComment200Response; +import com.fastcomments.model.VoteDeleteResponse; +import com.fastcomments.model.VoteResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -268,16 +272,16 @@ private okhttp3.Call addDomainConfigValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse addDomainConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull AddDomainConfigParams addDomainConfigParams) throws ApiException { + private ApiResponse addDomainConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull AddDomainConfigParams addDomainConfigParams) throws ApiException { okhttp3.Call localVarCall = addDomainConfigValidateBeforeCall(tenantId, addDomainConfigParams, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call addDomainConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull AddDomainConfigParams addDomainConfigParams, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addDomainConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull AddDomainConfigParams addDomainConfigParams, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addDomainConfigValidateBeforeCall(tenantId, addDomainConfigParams, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -311,7 +315,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute addDomainConfig request - * @return AddDomainConfig200Response + * @return AddDomainConfigResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -320,14 +324,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
200 Ok -
*/ - public AddDomainConfig200Response execute() throws ApiException { - ApiResponse localVarResp = addDomainConfigWithHttpInfo(tenantId, addDomainConfigParams); + public AddDomainConfigResponse execute() throws ApiException { + ApiResponse localVarResp = addDomainConfigWithHttpInfo(tenantId, addDomainConfigParams); return localVarResp.getData(); } /** * Execute addDomainConfig request with HTTP info returned - * @return ApiResponse<AddDomainConfig200Response> + * @return ApiResponse<AddDomainConfigResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -336,7 +340,7 @@ public AddDomainConfig200Response execute() throws ApiException {
200 Ok -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return addDomainConfigWithHttpInfo(tenantId, addDomainConfigParams); } @@ -352,7 +356,7 @@ public ApiResponse executeWithHttpInfo() throws ApiE 200 Ok - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return addDomainConfigAsync(tenantId, addDomainConfigParams, _callback); } } @@ -429,16 +433,16 @@ private okhttp3.Call addHashTagValidateBeforeCall(@javax.annotation.Nullable Str } - private ApiResponse addHashTagWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody) throws ApiException { + private ApiResponse addHashTagWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody) throws ApiException { okhttp3.Call localVarCall = addHashTagValidateBeforeCall(tenantId, createHashTagBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call addHashTagAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addHashTagAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addHashTagValidateBeforeCall(tenantId, createHashTagBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -482,6 +486,7 @@ public APIaddHashTagRequest createHashTagBody(@javax.annotation.Nullable CreateH Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -490,32 +495,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute addHashTag request - * @return AddHashTag200Response + * @return CreateHashTagResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public AddHashTag200Response execute() throws ApiException { - ApiResponse localVarResp = addHashTagWithHttpInfo(tenantId, createHashTagBody); + public CreateHashTagResponse execute() throws ApiException { + ApiResponse localVarResp = addHashTagWithHttpInfo(tenantId, createHashTagBody); return localVarResp.getData(); } /** * Execute addHashTag request with HTTP info returned - * @return ApiResponse<AddHashTag200Response> + * @return ApiResponse<CreateHashTagResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return addHashTagWithHttpInfo(tenantId, createHashTagBody); } @@ -529,9 +536,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return addHashTagAsync(tenantId, createHashTagBody, _callback); } } @@ -545,6 +553,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIaddHashTagRequest addHashTag() { @@ -606,16 +615,16 @@ private okhttp3.Call addHashTagsBulkValidateBeforeCall(@javax.annotation.Nullabl } - private ApiResponse addHashTagsBulkWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody) throws ApiException { + private ApiResponse addHashTagsBulkWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody) throws ApiException { okhttp3.Call localVarCall = addHashTagsBulkValidateBeforeCall(tenantId, bulkCreateHashTagsBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call addHashTagsBulkAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addHashTagsBulkAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addHashTagsBulkValidateBeforeCall(tenantId, bulkCreateHashTagsBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -659,6 +668,7 @@ public APIaddHashTagsBulkRequest bulkCreateHashTagsBody(@javax.annotation.Nullab Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -667,32 +677,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute addHashTagsBulk request - * @return AddHashTagsBulk200Response + * @return BulkCreateHashTagsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public AddHashTagsBulk200Response execute() throws ApiException { - ApiResponse localVarResp = addHashTagsBulkWithHttpInfo(tenantId, bulkCreateHashTagsBody); + public BulkCreateHashTagsResponse execute() throws ApiException { + ApiResponse localVarResp = addHashTagsBulkWithHttpInfo(tenantId, bulkCreateHashTagsBody); return localVarResp.getData(); } /** * Execute addHashTagsBulk request with HTTP info returned - * @return ApiResponse<AddHashTagsBulk200Response> + * @return ApiResponse<BulkCreateHashTagsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return addHashTagsBulkWithHttpInfo(tenantId, bulkCreateHashTagsBody); } @@ -706,9 +718,10 @@ public ApiResponse executeWithHttpInfo() throws ApiE Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return addHashTagsBulkAsync(tenantId, bulkCreateHashTagsBody, _callback); } } @@ -722,6 +735,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIaddHashTagsBulkRequest addHashTagsBulk() { @@ -1143,16 +1157,16 @@ private okhttp3.Call aggregateValidateBeforeCall(@javax.annotation.Nonnull Strin } - private ApiResponse aggregateWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull AggregationRequest aggregationRequest, @javax.annotation.Nullable String parentTenantId, @javax.annotation.Nullable Boolean includeStats) throws ApiException { + private ApiResponse aggregateWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull AggregationRequest aggregationRequest, @javax.annotation.Nullable String parentTenantId, @javax.annotation.Nullable Boolean includeStats) throws ApiException { okhttp3.Call localVarCall = aggregateValidateBeforeCall(tenantId, aggregationRequest, parentTenantId, includeStats, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call aggregateAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull AggregationRequest aggregationRequest, @javax.annotation.Nullable String parentTenantId, @javax.annotation.Nullable Boolean includeStats, final ApiCallback _callback) throws ApiException { + private okhttp3.Call aggregateAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull AggregationRequest aggregationRequest, @javax.annotation.Nullable String parentTenantId, @javax.annotation.Nullable Boolean includeStats, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = aggregateValidateBeforeCall(tenantId, aggregationRequest, parentTenantId, includeStats, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1210,7 +1224,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute aggregate request - * @return AggregationResponse + * @return AggregateResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1219,14 +1233,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
200 Ok -
*/ - public AggregationResponse execute() throws ApiException { - ApiResponse localVarResp = aggregateWithHttpInfo(tenantId, aggregationRequest, parentTenantId, includeStats); + public AggregateResponse execute() throws ApiException { + ApiResponse localVarResp = aggregateWithHttpInfo(tenantId, aggregationRequest, parentTenantId, includeStats); return localVarResp.getData(); } /** * Execute aggregate request with HTTP info returned - * @return ApiResponse<AggregationResponse> + * @return ApiResponse<AggregateResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1235,7 +1249,7 @@ public AggregationResponse execute() throws ApiException {
200 Ok -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return aggregateWithHttpInfo(tenantId, aggregationRequest, parentTenantId, includeStats); } @@ -1251,7 +1265,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio 200 Ok - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return aggregateAsync(tenantId, aggregationRequest, parentTenantId, includeStats, _callback); } } @@ -1356,16 +1370,16 @@ private okhttp3.Call aggregateQuestionResultsValidateBeforeCall(@javax.annotatio } - private ApiResponse aggregateQuestionResultsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String questionId, @javax.annotation.Nullable List questionIds, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable AggregateTimeBucket timeBucket, @javax.annotation.Nullable OffsetDateTime startDate, @javax.annotation.Nullable Boolean forceRecalculate) throws ApiException { + private ApiResponse aggregateQuestionResultsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String questionId, @javax.annotation.Nullable List questionIds, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable AggregateTimeBucket timeBucket, @javax.annotation.Nullable OffsetDateTime startDate, @javax.annotation.Nullable Boolean forceRecalculate) throws ApiException { okhttp3.Call localVarCall = aggregateQuestionResultsValidateBeforeCall(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call aggregateQuestionResultsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String questionId, @javax.annotation.Nullable List questionIds, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable AggregateTimeBucket timeBucket, @javax.annotation.Nullable OffsetDateTime startDate, @javax.annotation.Nullable Boolean forceRecalculate, final ApiCallback _callback) throws ApiException { + private okhttp3.Call aggregateQuestionResultsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String questionId, @javax.annotation.Nullable List questionIds, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable AggregateTimeBucket timeBucket, @javax.annotation.Nullable OffsetDateTime startDate, @javax.annotation.Nullable Boolean forceRecalculate, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = aggregateQuestionResultsValidateBeforeCall(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1460,6 +1474,7 @@ public APIaggregateQuestionResultsRequest forceRecalculate(@javax.annotation.Nul Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -1468,32 +1483,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute aggregateQuestionResults request - * @return AggregateQuestionResults200Response + * @return AggregateQuestionResultsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public AggregateQuestionResults200Response execute() throws ApiException { - ApiResponse localVarResp = aggregateQuestionResultsWithHttpInfo(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate); + public AggregateQuestionResultsResponse execute() throws ApiException { + ApiResponse localVarResp = aggregateQuestionResultsWithHttpInfo(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate); return localVarResp.getData(); } /** * Execute aggregateQuestionResults request with HTTP info returned - * @return ApiResponse<AggregateQuestionResults200Response> + * @return ApiResponse<AggregateQuestionResultsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return aggregateQuestionResultsWithHttpInfo(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate); } @@ -1507,9 +1524,10 @@ public ApiResponse executeWithHttpInfo() th Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return aggregateQuestionResultsAsync(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate, _callback); } } @@ -1524,6 +1542,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIaggregateQuestionResultsRequest aggregateQuestionResults(@javax.annotation.Nonnull String tenantId) { @@ -1609,16 +1628,16 @@ private okhttp3.Call blockUserFromCommentValidateBeforeCall(@javax.annotation.No } - private ApiResponse blockUserFromCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull BlockFromCommentParams blockFromCommentParams, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId) throws ApiException { + private ApiResponse blockUserFromCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull BlockFromCommentParams blockFromCommentParams, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId) throws ApiException { okhttp3.Call localVarCall = blockUserFromCommentValidateBeforeCall(tenantId, id, blockFromCommentParams, userId, anonUserId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call blockUserFromCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull BlockFromCommentParams blockFromCommentParams, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call blockUserFromCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull BlockFromCommentParams blockFromCommentParams, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = blockUserFromCommentValidateBeforeCall(tenantId, id, blockFromCommentParams, userId, anonUserId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1671,6 +1690,7 @@ public APIblockUserFromCommentRequest anonUserId(@javax.annotation.Nullable Stri Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -1679,32 +1699,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute blockUserFromComment request - * @return BlockFromCommentPublic200Response + * @return BlockSuccess * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public BlockFromCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = blockUserFromCommentWithHttpInfo(tenantId, id, blockFromCommentParams, userId, anonUserId); + public BlockSuccess execute() throws ApiException { + ApiResponse localVarResp = blockUserFromCommentWithHttpInfo(tenantId, id, blockFromCommentParams, userId, anonUserId); return localVarResp.getData(); } /** * Execute blockUserFromComment request with HTTP info returned - * @return ApiResponse<BlockFromCommentPublic200Response> + * @return ApiResponse<BlockSuccess> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return blockUserFromCommentWithHttpInfo(tenantId, id, blockFromCommentParams, userId, anonUserId); } @@ -1718,9 +1740,10 @@ public ApiResponse executeWithHttpInfo() thro Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return blockUserFromCommentAsync(tenantId, id, blockFromCommentParams, userId, anonUserId, _callback); } } @@ -1737,6 +1760,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIblockUserFromCommentRequest blockUserFromComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull BlockFromCommentParams blockFromCommentParams) { @@ -1812,16 +1836,16 @@ private okhttp3.Call bulkAggregateQuestionResultsValidateBeforeCall(@javax.annot } - private ApiResponse bulkAggregateQuestionResultsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest, @javax.annotation.Nullable Boolean forceRecalculate) throws ApiException { + private ApiResponse bulkAggregateQuestionResultsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest, @javax.annotation.Nullable Boolean forceRecalculate) throws ApiException { okhttp3.Call localVarCall = bulkAggregateQuestionResultsValidateBeforeCall(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call bulkAggregateQuestionResultsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest, @javax.annotation.Nullable Boolean forceRecalculate, final ApiCallback _callback) throws ApiException { + private okhttp3.Call bulkAggregateQuestionResultsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest, @javax.annotation.Nullable Boolean forceRecalculate, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = bulkAggregateQuestionResultsValidateBeforeCall(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1859,6 +1883,7 @@ public APIbulkAggregateQuestionResultsRequest forceRecalculate(@javax.annotation Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -1867,32 +1892,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute bulkAggregateQuestionResults request - * @return BulkAggregateQuestionResults200Response + * @return BulkAggregateQuestionResultsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public BulkAggregateQuestionResults200Response execute() throws ApiException { - ApiResponse localVarResp = bulkAggregateQuestionResultsWithHttpInfo(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate); + public BulkAggregateQuestionResultsResponse execute() throws ApiException { + ApiResponse localVarResp = bulkAggregateQuestionResultsWithHttpInfo(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate); return localVarResp.getData(); } /** * Execute bulkAggregateQuestionResults request with HTTP info returned - * @return ApiResponse<BulkAggregateQuestionResults200Response> + * @return ApiResponse<BulkAggregateQuestionResultsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return bulkAggregateQuestionResultsWithHttpInfo(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate); } @@ -1906,9 +1933,10 @@ public ApiResponse executeWithHttpInfo( Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return bulkAggregateQuestionResultsAsync(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate, _callback); } } @@ -1924,6 +1952,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIbulkAggregateQuestionResultsRequest bulkAggregateQuestionResults(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest) { @@ -2010,16 +2039,16 @@ private okhttp3.Call changeTicketStateValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse changeTicketStateWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String userId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull ChangeTicketStateBody changeTicketStateBody) throws ApiException { + private ApiResponse changeTicketStateWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String userId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull ChangeTicketStateBody changeTicketStateBody) throws ApiException { okhttp3.Call localVarCall = changeTicketStateValidateBeforeCall(tenantId, userId, id, changeTicketStateBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call changeTicketStateAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String userId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull ChangeTicketStateBody changeTicketStateBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call changeTicketStateAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String userId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull ChangeTicketStateBody changeTicketStateBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = changeTicketStateValidateBeforeCall(tenantId, userId, id, changeTicketStateBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2051,6 +2080,7 @@ private APIchangeTicketStateRequest(@javax.annotation.Nonnull String tenantId, @ Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -2059,32 +2089,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute changeTicketState request - * @return ChangeTicketState200Response + * @return ChangeTicketStateResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ChangeTicketState200Response execute() throws ApiException { - ApiResponse localVarResp = changeTicketStateWithHttpInfo(tenantId, userId, id, changeTicketStateBody); + public ChangeTicketStateResponse execute() throws ApiException { + ApiResponse localVarResp = changeTicketStateWithHttpInfo(tenantId, userId, id, changeTicketStateBody); return localVarResp.getData(); } /** * Execute changeTicketState request with HTTP info returned - * @return ApiResponse<ChangeTicketState200Response> + * @return ApiResponse<ChangeTicketStateResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return changeTicketStateWithHttpInfo(tenantId, userId, id, changeTicketStateBody); } @@ -2098,9 +2130,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return changeTicketStateAsync(tenantId, userId, id, changeTicketStateBody, _callback); } } @@ -2118,6 +2151,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIchangeTicketStateRequest changeTicketState(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String userId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull ChangeTicketStateBody changeTicketStateBody) { @@ -2215,16 +2249,16 @@ private okhttp3.Call combineCommentsWithQuestionResultsValidateBeforeCall(@javax } - private ApiResponse combineCommentsWithQuestionResultsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String questionId, @javax.annotation.Nullable List questionIds, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable OffsetDateTime startDate, @javax.annotation.Nullable Boolean forceRecalculate, @javax.annotation.Nullable Double minValue, @javax.annotation.Nullable Double maxValue, @javax.annotation.Nullable Double limit) throws ApiException { + private ApiResponse combineCommentsWithQuestionResultsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String questionId, @javax.annotation.Nullable List questionIds, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable OffsetDateTime startDate, @javax.annotation.Nullable Boolean forceRecalculate, @javax.annotation.Nullable Double minValue, @javax.annotation.Nullable Double maxValue, @javax.annotation.Nullable Double limit) throws ApiException { okhttp3.Call localVarCall = combineCommentsWithQuestionResultsValidateBeforeCall(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call combineCommentsWithQuestionResultsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String questionId, @javax.annotation.Nullable List questionIds, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable OffsetDateTime startDate, @javax.annotation.Nullable Boolean forceRecalculate, @javax.annotation.Nullable Double minValue, @javax.annotation.Nullable Double maxValue, @javax.annotation.Nullable Double limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call combineCommentsWithQuestionResultsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String questionId, @javax.annotation.Nullable List questionIds, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable OffsetDateTime startDate, @javax.annotation.Nullable Boolean forceRecalculate, @javax.annotation.Nullable Double minValue, @javax.annotation.Nullable Double maxValue, @javax.annotation.Nullable Double limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = combineCommentsWithQuestionResultsValidateBeforeCall(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2343,6 +2377,7 @@ public APIcombineCommentsWithQuestionResultsRequest limit(@javax.annotation.Null Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -2351,32 +2386,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute combineCommentsWithQuestionResults request - * @return CombineCommentsWithQuestionResults200Response + * @return CombineQuestionResultsWithCommentsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CombineCommentsWithQuestionResults200Response execute() throws ApiException { - ApiResponse localVarResp = combineCommentsWithQuestionResultsWithHttpInfo(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit); + public CombineQuestionResultsWithCommentsResponse execute() throws ApiException { + ApiResponse localVarResp = combineCommentsWithQuestionResultsWithHttpInfo(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit); return localVarResp.getData(); } /** * Execute combineCommentsWithQuestionResults request with HTTP info returned - * @return ApiResponse<CombineCommentsWithQuestionResults200Response> + * @return ApiResponse<CombineQuestionResultsWithCommentsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return combineCommentsWithQuestionResultsWithHttpInfo(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit); } @@ -2390,9 +2427,10 @@ public ApiResponse executeWithHtt Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return combineCommentsWithQuestionResultsAsync(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit, _callback); } } @@ -2407,6 +2445,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcombineCommentsWithQuestionResultsRequest combineCommentsWithQuestionResults(@javax.annotation.Nonnull String tenantId) { @@ -2478,16 +2517,16 @@ private okhttp3.Call createEmailTemplateValidateBeforeCall(@javax.annotation.Non } - private ApiResponse createEmailTemplateWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateEmailTemplateBody createEmailTemplateBody) throws ApiException { + private ApiResponse createEmailTemplateWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateEmailTemplateBody createEmailTemplateBody) throws ApiException { okhttp3.Call localVarCall = createEmailTemplateValidateBeforeCall(tenantId, createEmailTemplateBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createEmailTemplateAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateEmailTemplateBody createEmailTemplateBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createEmailTemplateAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateEmailTemplateBody createEmailTemplateBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createEmailTemplateValidateBeforeCall(tenantId, createEmailTemplateBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2513,6 +2552,7 @@ private APIcreateEmailTemplateRequest(@javax.annotation.Nonnull String tenantId, Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -2521,32 +2561,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createEmailTemplate request - * @return CreateEmailTemplate200Response + * @return CreateEmailTemplateResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateEmailTemplate200Response execute() throws ApiException { - ApiResponse localVarResp = createEmailTemplateWithHttpInfo(tenantId, createEmailTemplateBody); + public CreateEmailTemplateResponse execute() throws ApiException { + ApiResponse localVarResp = createEmailTemplateWithHttpInfo(tenantId, createEmailTemplateBody); return localVarResp.getData(); } /** * Execute createEmailTemplate request with HTTP info returned - * @return ApiResponse<CreateEmailTemplate200Response> + * @return ApiResponse<CreateEmailTemplateResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createEmailTemplateWithHttpInfo(tenantId, createEmailTemplateBody); } @@ -2560,9 +2602,10 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createEmailTemplateAsync(tenantId, createEmailTemplateBody, _callback); } } @@ -2578,6 +2621,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateEmailTemplateRequest createEmailTemplate(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateEmailTemplateBody createEmailTemplateBody) { @@ -2665,16 +2709,16 @@ private okhttp3.Call createFeedPostValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse createFeedPostWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateFeedPostParams createFeedPostParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable Boolean isLive, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean skipDupCheck) throws ApiException { + private ApiResponse createFeedPostWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateFeedPostParams createFeedPostParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable Boolean isLive, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean skipDupCheck) throws ApiException { okhttp3.Call localVarCall = createFeedPostValidateBeforeCall(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createFeedPostAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateFeedPostParams createFeedPostParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable Boolean isLive, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean skipDupCheck, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createFeedPostAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateFeedPostParams createFeedPostParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable Boolean isLive, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean skipDupCheck, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createFeedPostValidateBeforeCall(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2748,6 +2792,7 @@ public APIcreateFeedPostRequest skipDupCheck(@javax.annotation.Nullable Boolean Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -2756,32 +2801,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createFeedPost request - * @return CreateFeedPost200Response + * @return CreateFeedPostsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateFeedPost200Response execute() throws ApiException { - ApiResponse localVarResp = createFeedPostWithHttpInfo(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck); + public CreateFeedPostsResponse execute() throws ApiException { + ApiResponse localVarResp = createFeedPostWithHttpInfo(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck); return localVarResp.getData(); } /** * Execute createFeedPost request with HTTP info returned - * @return ApiResponse<CreateFeedPost200Response> + * @return ApiResponse<CreateFeedPostsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createFeedPostWithHttpInfo(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck); } @@ -2795,9 +2842,10 @@ public ApiResponse executeWithHttpInfo() throws ApiEx Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createFeedPostAsync(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck, _callback); } } @@ -2813,6 +2861,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateFeedPostRequest createFeedPost(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateFeedPostParams createFeedPostParams) { @@ -2884,16 +2933,16 @@ private okhttp3.Call createModeratorValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse createModeratorWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateModeratorBody createModeratorBody) throws ApiException { + private ApiResponse createModeratorWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateModeratorBody createModeratorBody) throws ApiException { okhttp3.Call localVarCall = createModeratorValidateBeforeCall(tenantId, createModeratorBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createModeratorAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateModeratorBody createModeratorBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createModeratorAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateModeratorBody createModeratorBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createModeratorValidateBeforeCall(tenantId, createModeratorBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2919,6 +2968,7 @@ private APIcreateModeratorRequest(@javax.annotation.Nonnull String tenantId, @ja Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -2927,32 +2977,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createModerator request - * @return CreateModerator200Response + * @return CreateModeratorResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateModerator200Response execute() throws ApiException { - ApiResponse localVarResp = createModeratorWithHttpInfo(tenantId, createModeratorBody); + public CreateModeratorResponse execute() throws ApiException { + ApiResponse localVarResp = createModeratorWithHttpInfo(tenantId, createModeratorBody); return localVarResp.getData(); } /** * Execute createModerator request with HTTP info returned - * @return ApiResponse<CreateModerator200Response> + * @return ApiResponse<CreateModeratorResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createModeratorWithHttpInfo(tenantId, createModeratorBody); } @@ -2966,9 +3018,10 @@ public ApiResponse executeWithHttpInfo() throws ApiE Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createModeratorAsync(tenantId, createModeratorBody, _callback); } } @@ -2984,6 +3037,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateModeratorRequest createModerator(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateModeratorBody createModeratorBody) { @@ -3055,16 +3109,16 @@ private okhttp3.Call createQuestionConfigValidateBeforeCall(@javax.annotation.No } - private ApiResponse createQuestionConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateQuestionConfigBody createQuestionConfigBody) throws ApiException { + private ApiResponse createQuestionConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateQuestionConfigBody createQuestionConfigBody) throws ApiException { okhttp3.Call localVarCall = createQuestionConfigValidateBeforeCall(tenantId, createQuestionConfigBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createQuestionConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateQuestionConfigBody createQuestionConfigBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createQuestionConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateQuestionConfigBody createQuestionConfigBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createQuestionConfigValidateBeforeCall(tenantId, createQuestionConfigBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3090,6 +3144,7 @@ private APIcreateQuestionConfigRequest(@javax.annotation.Nonnull String tenantId Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -3098,32 +3153,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createQuestionConfig request - * @return CreateQuestionConfig200Response + * @return CreateQuestionConfigResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateQuestionConfig200Response execute() throws ApiException { - ApiResponse localVarResp = createQuestionConfigWithHttpInfo(tenantId, createQuestionConfigBody); + public CreateQuestionConfigResponse execute() throws ApiException { + ApiResponse localVarResp = createQuestionConfigWithHttpInfo(tenantId, createQuestionConfigBody); return localVarResp.getData(); } /** * Execute createQuestionConfig request with HTTP info returned - * @return ApiResponse<CreateQuestionConfig200Response> + * @return ApiResponse<CreateQuestionConfigResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createQuestionConfigWithHttpInfo(tenantId, createQuestionConfigBody); } @@ -3137,9 +3194,10 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createQuestionConfigAsync(tenantId, createQuestionConfigBody, _callback); } } @@ -3155,6 +3213,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateQuestionConfigRequest createQuestionConfig(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateQuestionConfigBody createQuestionConfigBody) { @@ -3226,16 +3285,16 @@ private okhttp3.Call createQuestionResultValidateBeforeCall(@javax.annotation.No } - private ApiResponse createQuestionResultWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateQuestionResultBody createQuestionResultBody) throws ApiException { + private ApiResponse createQuestionResultWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateQuestionResultBody createQuestionResultBody) throws ApiException { okhttp3.Call localVarCall = createQuestionResultValidateBeforeCall(tenantId, createQuestionResultBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createQuestionResultAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateQuestionResultBody createQuestionResultBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createQuestionResultAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateQuestionResultBody createQuestionResultBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createQuestionResultValidateBeforeCall(tenantId, createQuestionResultBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3261,6 +3320,7 @@ private APIcreateQuestionResultRequest(@javax.annotation.Nonnull String tenantId Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -3269,32 +3329,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createQuestionResult request - * @return CreateQuestionResult200Response + * @return CreateQuestionResultResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateQuestionResult200Response execute() throws ApiException { - ApiResponse localVarResp = createQuestionResultWithHttpInfo(tenantId, createQuestionResultBody); + public CreateQuestionResultResponse execute() throws ApiException { + ApiResponse localVarResp = createQuestionResultWithHttpInfo(tenantId, createQuestionResultBody); return localVarResp.getData(); } /** * Execute createQuestionResult request with HTTP info returned - * @return ApiResponse<CreateQuestionResult200Response> + * @return ApiResponse<CreateQuestionResultResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createQuestionResultWithHttpInfo(tenantId, createQuestionResultBody); } @@ -3308,9 +3370,10 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createQuestionResultAsync(tenantId, createQuestionResultBody, _callback); } } @@ -3326,6 +3389,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateQuestionResultRequest createQuestionResult(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateQuestionResultBody createQuestionResultBody) { @@ -3568,16 +3632,16 @@ private okhttp3.Call createTenantValidateBeforeCall(@javax.annotation.Nonnull St } - private ApiResponse createTenantWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantBody createTenantBody) throws ApiException { + private ApiResponse createTenantWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantBody createTenantBody) throws ApiException { okhttp3.Call localVarCall = createTenantValidateBeforeCall(tenantId, createTenantBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createTenantAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantBody createTenantBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createTenantAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantBody createTenantBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createTenantValidateBeforeCall(tenantId, createTenantBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3603,6 +3667,7 @@ private APIcreateTenantRequest(@javax.annotation.Nonnull String tenantId, @javax Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -3611,32 +3676,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createTenant request - * @return CreateTenant200Response + * @return CreateTenantResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateTenant200Response execute() throws ApiException { - ApiResponse localVarResp = createTenantWithHttpInfo(tenantId, createTenantBody); + public CreateTenantResponse execute() throws ApiException { + ApiResponse localVarResp = createTenantWithHttpInfo(tenantId, createTenantBody); return localVarResp.getData(); } /** * Execute createTenant request with HTTP info returned - * @return ApiResponse<CreateTenant200Response> + * @return ApiResponse<CreateTenantResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createTenantWithHttpInfo(tenantId, createTenantBody); } @@ -3650,9 +3717,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExce Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createTenantAsync(tenantId, createTenantBody, _callback); } } @@ -3668,6 +3736,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateTenantRequest createTenant(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantBody createTenantBody) { @@ -3739,16 +3808,16 @@ private okhttp3.Call createTenantPackageValidateBeforeCall(@javax.annotation.Non } - private ApiResponse createTenantPackageWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantPackageBody createTenantPackageBody) throws ApiException { + private ApiResponse createTenantPackageWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantPackageBody createTenantPackageBody) throws ApiException { okhttp3.Call localVarCall = createTenantPackageValidateBeforeCall(tenantId, createTenantPackageBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createTenantPackageAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantPackageBody createTenantPackageBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createTenantPackageAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantPackageBody createTenantPackageBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createTenantPackageValidateBeforeCall(tenantId, createTenantPackageBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3774,6 +3843,7 @@ private APIcreateTenantPackageRequest(@javax.annotation.Nonnull String tenantId, Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -3782,32 +3852,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createTenantPackage request - * @return CreateTenantPackage200Response + * @return CreateTenantPackageResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateTenantPackage200Response execute() throws ApiException { - ApiResponse localVarResp = createTenantPackageWithHttpInfo(tenantId, createTenantPackageBody); + public CreateTenantPackageResponse execute() throws ApiException { + ApiResponse localVarResp = createTenantPackageWithHttpInfo(tenantId, createTenantPackageBody); return localVarResp.getData(); } /** * Execute createTenantPackage request with HTTP info returned - * @return ApiResponse<CreateTenantPackage200Response> + * @return ApiResponse<CreateTenantPackageResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createTenantPackageWithHttpInfo(tenantId, createTenantPackageBody); } @@ -3821,9 +3893,10 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createTenantPackageAsync(tenantId, createTenantPackageBody, _callback); } } @@ -3839,6 +3912,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateTenantPackageRequest createTenantPackage(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantPackageBody createTenantPackageBody) { @@ -3910,16 +3984,16 @@ private okhttp3.Call createTenantUserValidateBeforeCall(@javax.annotation.Nonnul } - private ApiResponse createTenantUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantUserBody createTenantUserBody) throws ApiException { + private ApiResponse createTenantUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantUserBody createTenantUserBody) throws ApiException { okhttp3.Call localVarCall = createTenantUserValidateBeforeCall(tenantId, createTenantUserBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createTenantUserAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantUserBody createTenantUserBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createTenantUserAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantUserBody createTenantUserBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createTenantUserValidateBeforeCall(tenantId, createTenantUserBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3945,6 +4019,7 @@ private APIcreateTenantUserRequest(@javax.annotation.Nonnull String tenantId, @j Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -3953,32 +4028,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createTenantUser request - * @return CreateTenantUser200Response + * @return CreateTenantUserResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateTenantUser200Response execute() throws ApiException { - ApiResponse localVarResp = createTenantUserWithHttpInfo(tenantId, createTenantUserBody); + public CreateTenantUserResponse execute() throws ApiException { + ApiResponse localVarResp = createTenantUserWithHttpInfo(tenantId, createTenantUserBody); return localVarResp.getData(); } /** * Execute createTenantUser request with HTTP info returned - * @return ApiResponse<CreateTenantUser200Response> + * @return ApiResponse<CreateTenantUserResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createTenantUserWithHttpInfo(tenantId, createTenantUserBody); } @@ -3992,9 +4069,10 @@ public ApiResponse executeWithHttpInfo() throws Api Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createTenantUserAsync(tenantId, createTenantUserBody, _callback); } } @@ -4010,6 +4088,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateTenantUserRequest createTenantUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantUserBody createTenantUserBody) { @@ -4090,16 +4169,16 @@ private okhttp3.Call createTicketValidateBeforeCall(@javax.annotation.Nonnull St } - private ApiResponse createTicketWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String userId, @javax.annotation.Nonnull CreateTicketBody createTicketBody) throws ApiException { + private ApiResponse createTicketWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String userId, @javax.annotation.Nonnull CreateTicketBody createTicketBody) throws ApiException { okhttp3.Call localVarCall = createTicketValidateBeforeCall(tenantId, userId, createTicketBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createTicketAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String userId, @javax.annotation.Nonnull CreateTicketBody createTicketBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createTicketAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String userId, @javax.annotation.Nonnull CreateTicketBody createTicketBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createTicketValidateBeforeCall(tenantId, userId, createTicketBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4128,6 +4207,7 @@ private APIcreateTicketRequest(@javax.annotation.Nonnull String tenantId, @javax Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -4136,32 +4216,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createTicket request - * @return CreateTicket200Response + * @return CreateTicketResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateTicket200Response execute() throws ApiException { - ApiResponse localVarResp = createTicketWithHttpInfo(tenantId, userId, createTicketBody); + public CreateTicketResponse execute() throws ApiException { + ApiResponse localVarResp = createTicketWithHttpInfo(tenantId, userId, createTicketBody); return localVarResp.getData(); } /** * Execute createTicket request with HTTP info returned - * @return ApiResponse<CreateTicket200Response> + * @return ApiResponse<CreateTicketResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createTicketWithHttpInfo(tenantId, userId, createTicketBody); } @@ -4175,9 +4257,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExce Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createTicketAsync(tenantId, userId, createTicketBody, _callback); } } @@ -4194,6 +4277,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateTicketRequest createTicket(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String userId, @javax.annotation.Nonnull CreateTicketBody createTicketBody) { @@ -4265,16 +4349,16 @@ private okhttp3.Call createUserBadgeValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse createUserBadgeWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateUserBadgeParams createUserBadgeParams) throws ApiException { + private ApiResponse createUserBadgeWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateUserBadgeParams createUserBadgeParams) throws ApiException { okhttp3.Call localVarCall = createUserBadgeValidateBeforeCall(tenantId, createUserBadgeParams, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createUserBadgeAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateUserBadgeParams createUserBadgeParams, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUserBadgeAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateUserBadgeParams createUserBadgeParams, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUserBadgeValidateBeforeCall(tenantId, createUserBadgeParams, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4300,6 +4384,7 @@ private APIcreateUserBadgeRequest(@javax.annotation.Nonnull String tenantId, @ja Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -4308,32 +4393,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createUserBadge request - * @return CreateUserBadge200Response + * @return APICreateUserBadgeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateUserBadge200Response execute() throws ApiException { - ApiResponse localVarResp = createUserBadgeWithHttpInfo(tenantId, createUserBadgeParams); + public APICreateUserBadgeResponse execute() throws ApiException { + ApiResponse localVarResp = createUserBadgeWithHttpInfo(tenantId, createUserBadgeParams); return localVarResp.getData(); } /** * Execute createUserBadge request with HTTP info returned - * @return ApiResponse<CreateUserBadge200Response> + * @return ApiResponse<APICreateUserBadgeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createUserBadgeWithHttpInfo(tenantId, createUserBadgeParams); } @@ -4347,9 +4434,10 @@ public ApiResponse executeWithHttpInfo() throws ApiE Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createUserBadgeAsync(tenantId, createUserBadgeParams, _callback); } } @@ -4365,6 +4453,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateUserBadgeRequest createUserBadge(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateUserBadgeParams createUserBadgeParams) { @@ -4456,16 +4545,16 @@ private okhttp3.Call createVoteValidateBeforeCall(@javax.annotation.Nonnull Stri } - private ApiResponse createVoteWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String direction, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId) throws ApiException { + private ApiResponse createVoteWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String direction, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId) throws ApiException { okhttp3.Call localVarCall = createVoteValidateBeforeCall(tenantId, commentId, direction, userId, anonUserId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createVoteAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String direction, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createVoteAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String direction, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createVoteValidateBeforeCall(tenantId, commentId, direction, userId, anonUserId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4518,6 +4607,7 @@ public APIcreateVoteRequest anonUserId(@javax.annotation.Nullable String anonUse Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -4526,32 +4616,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createVote request - * @return VoteComment200Response + * @return VoteResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public VoteComment200Response execute() throws ApiException { - ApiResponse localVarResp = createVoteWithHttpInfo(tenantId, commentId, direction, userId, anonUserId); + public VoteResponse execute() throws ApiException { + ApiResponse localVarResp = createVoteWithHttpInfo(tenantId, commentId, direction, userId, anonUserId); return localVarResp.getData(); } /** * Execute createVote request with HTTP info returned - * @return ApiResponse<VoteComment200Response> + * @return ApiResponse<VoteResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createVoteWithHttpInfo(tenantId, commentId, direction, userId, anonUserId); } @@ -4565,9 +4657,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createVoteAsync(tenantId, commentId, direction, userId, anonUserId, _callback); } } @@ -4584,6 +4677,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateVoteRequest createVote(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String direction) { @@ -4663,16 +4757,16 @@ private okhttp3.Call deleteCommentValidateBeforeCall(@javax.annotation.Nonnull S } - private ApiResponse deleteCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable Boolean isLive) throws ApiException { + private ApiResponse deleteCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable Boolean isLive) throws ApiException { okhttp3.Call localVarCall = deleteCommentValidateBeforeCall(tenantId, id, contextUserId, isLive, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable Boolean isLive, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable Boolean isLive, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCommentValidateBeforeCall(tenantId, id, contextUserId, isLive, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4722,6 +4816,7 @@ public APIdeleteCommentRequest isLive(@javax.annotation.Nullable Boolean isLive) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -4730,32 +4825,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteComment request - * @return DeleteComment200Response + * @return DeleteCommentResult * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public DeleteComment200Response execute() throws ApiException { - ApiResponse localVarResp = deleteCommentWithHttpInfo(tenantId, id, contextUserId, isLive); + public DeleteCommentResult execute() throws ApiException { + ApiResponse localVarResp = deleteCommentWithHttpInfo(tenantId, id, contextUserId, isLive); return localVarResp.getData(); } /** * Execute deleteComment request with HTTP info returned - * @return ApiResponse<DeleteComment200Response> + * @return ApiResponse<DeleteCommentResult> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCommentWithHttpInfo(tenantId, id, contextUserId, isLive); } @@ -4769,9 +4866,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExc Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteCommentAsync(tenantId, id, contextUserId, isLive, _callback); } } @@ -4787,6 +4885,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteCommentRequest deleteComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -4858,16 +4957,16 @@ private okhttp3.Call deleteDomainConfigValidateBeforeCall(@javax.annotation.Nonn } - private ApiResponse deleteDomainConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domain) throws ApiException { + private ApiResponse deleteDomainConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domain) throws ApiException { okhttp3.Call localVarCall = deleteDomainConfigValidateBeforeCall(tenantId, domain, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteDomainConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domain, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDomainConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domain, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteDomainConfigValidateBeforeCall(tenantId, domain, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4901,7 +5000,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteDomainConfig request - * @return DeleteDomainConfig200Response + * @return DeleteDomainConfigResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4910,14 +5009,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
200 Ok -
*/ - public DeleteDomainConfig200Response execute() throws ApiException { - ApiResponse localVarResp = deleteDomainConfigWithHttpInfo(tenantId, domain); + public DeleteDomainConfigResponse execute() throws ApiException { + ApiResponse localVarResp = deleteDomainConfigWithHttpInfo(tenantId, domain); return localVarResp.getData(); } /** * Execute deleteDomainConfig request with HTTP info returned - * @return ApiResponse<DeleteDomainConfig200Response> + * @return ApiResponse<DeleteDomainConfigResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4926,7 +5025,7 @@ public DeleteDomainConfig200Response execute() throws ApiException {
200 Ok -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteDomainConfigWithHttpInfo(tenantId, domain); } @@ -4942,7 +5041,7 @@ public ApiResponse executeWithHttpInfo() throws A 200 Ok - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteDomainConfigAsync(tenantId, domain, _callback); } } @@ -5029,16 +5128,16 @@ private okhttp3.Call deleteEmailTemplateValidateBeforeCall(@javax.annotation.Non } - private ApiResponse deleteEmailTemplateWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse deleteEmailTemplateWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = deleteEmailTemplateValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteEmailTemplateAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteEmailTemplateAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteEmailTemplateValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5064,6 +5163,7 @@ private APIdeleteEmailTemplateRequest(@javax.annotation.Nonnull String tenantId, Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5072,32 +5172,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteEmailTemplate request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = deleteEmailTemplateWithHttpInfo(tenantId, id); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = deleteEmailTemplateWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute deleteEmailTemplate request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteEmailTemplateWithHttpInfo(tenantId, id); } @@ -5111,9 +5213,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteEmailTemplateAsync(tenantId, id, _callback); } } @@ -5129,6 +5232,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteEmailTemplateRequest deleteEmailTemplate(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -5206,16 +5310,16 @@ private okhttp3.Call deleteEmailTemplateRenderErrorValidateBeforeCall(@javax.ann } - private ApiResponse deleteEmailTemplateRenderErrorWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull String errorId) throws ApiException { + private ApiResponse deleteEmailTemplateRenderErrorWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull String errorId) throws ApiException { okhttp3.Call localVarCall = deleteEmailTemplateRenderErrorValidateBeforeCall(tenantId, id, errorId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteEmailTemplateRenderErrorAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull String errorId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteEmailTemplateRenderErrorAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull String errorId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteEmailTemplateRenderErrorValidateBeforeCall(tenantId, id, errorId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5244,6 +5348,7 @@ private APIdeleteEmailTemplateRenderErrorRequest(@javax.annotation.Nonnull Strin Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5252,32 +5357,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteEmailTemplateRenderError request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = deleteEmailTemplateRenderErrorWithHttpInfo(tenantId, id, errorId); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = deleteEmailTemplateRenderErrorWithHttpInfo(tenantId, id, errorId); return localVarResp.getData(); } /** * Execute deleteEmailTemplateRenderError request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteEmailTemplateRenderErrorWithHttpInfo(tenantId, id, errorId); } @@ -5291,9 +5398,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteEmailTemplateRenderErrorAsync(tenantId, id, errorId, _callback); } } @@ -5310,12 +5418,13 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteEmailTemplateRenderErrorRequest deleteEmailTemplateRenderError(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull String errorId) { return new APIdeleteEmailTemplateRenderErrorRequest(tenantId, id, errorId); } - private okhttp3.Call deleteHashTagCall(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable DeleteHashTagRequest deleteHashTagRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteHashTagCall(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5329,7 +5438,7 @@ private okhttp3.Call deleteHashTagCall(@javax.annotation.Nonnull String tag, @ja basePath = null; } - Object localVarPostBody = deleteHashTagRequest; + Object localVarPostBody = deleteHashTagRequestBody; // create path and map variables String localVarPath = "/api/v1/hash-tags/{tag}" @@ -5366,27 +5475,27 @@ private okhttp3.Call deleteHashTagCall(@javax.annotation.Nonnull String tag, @ja } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteHashTagValidateBeforeCall(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable DeleteHashTagRequest deleteHashTagRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteHashTagValidateBeforeCall(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tag' is set if (tag == null) { throw new ApiException("Missing the required parameter 'tag' when calling deleteHashTag(Async)"); } - return deleteHashTagCall(tag, tenantId, deleteHashTagRequest, _callback); + return deleteHashTagCall(tag, tenantId, deleteHashTagRequestBody, _callback); } - private ApiResponse deleteHashTagWithHttpInfo(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable DeleteHashTagRequest deleteHashTagRequest) throws ApiException { - okhttp3.Call localVarCall = deleteHashTagValidateBeforeCall(tag, tenantId, deleteHashTagRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteHashTagWithHttpInfo(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody) throws ApiException { + okhttp3.Call localVarCall = deleteHashTagValidateBeforeCall(tag, tenantId, deleteHashTagRequestBody, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteHashTagAsync(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable DeleteHashTagRequest deleteHashTagRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteHashTagAsync(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteHashTagValidateBeforeCall(tag, tenantId, deleteHashTagRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteHashTagValidateBeforeCall(tag, tenantId, deleteHashTagRequestBody, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5397,7 +5506,7 @@ public class APIdeleteHashTagRequest { @javax.annotation.Nullable private String tenantId; @javax.annotation.Nullable - private DeleteHashTagRequest deleteHashTagRequest; + private DeleteHashTagRequestBody deleteHashTagRequestBody; private APIdeleteHashTagRequest(@javax.annotation.Nonnull String tag) { this.tag = tag; @@ -5414,12 +5523,12 @@ public APIdeleteHashTagRequest tenantId(@javax.annotation.Nullable String tenant } /** - * Set deleteHashTagRequest - * @param deleteHashTagRequest (optional) + * Set deleteHashTagRequestBody + * @param deleteHashTagRequestBody (optional) * @return APIdeleteHashTagRequest */ - public APIdeleteHashTagRequest deleteHashTagRequest(@javax.annotation.Nullable DeleteHashTagRequest deleteHashTagRequest) { - this.deleteHashTagRequest = deleteHashTagRequest; + public APIdeleteHashTagRequest deleteHashTagRequestBody(@javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody) { + this.deleteHashTagRequestBody = deleteHashTagRequestBody; return this; } @@ -5433,41 +5542,44 @@ public APIdeleteHashTagRequest deleteHashTagRequest(@javax.annotation.Nullable D Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteHashTagCall(tag, tenantId, deleteHashTagRequest, _callback); + return deleteHashTagCall(tag, tenantId, deleteHashTagRequestBody, _callback); } /** * Execute deleteHashTag request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = deleteHashTagWithHttpInfo(tag, tenantId, deleteHashTagRequest); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = deleteHashTagWithHttpInfo(tag, tenantId, deleteHashTagRequestBody); return localVarResp.getData(); } /** * Execute deleteHashTag request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteHashTagWithHttpInfo(tag, tenantId, deleteHashTagRequest); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteHashTagWithHttpInfo(tag, tenantId, deleteHashTagRequestBody); } /** @@ -5480,10 +5592,11 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteHashTagAsync(tag, tenantId, deleteHashTagRequest, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteHashTagAsync(tag, tenantId, deleteHashTagRequestBody, _callback); } } @@ -5497,6 +5610,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteHashTagRequest deleteHashTag(@javax.annotation.Nonnull String tag) { @@ -5572,16 +5686,16 @@ private okhttp3.Call deleteModeratorValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse deleteModeratorWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String sendEmail) throws ApiException { + private ApiResponse deleteModeratorWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String sendEmail) throws ApiException { okhttp3.Call localVarCall = deleteModeratorValidateBeforeCall(tenantId, id, sendEmail, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteModeratorAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String sendEmail, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteModeratorAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String sendEmail, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteModeratorValidateBeforeCall(tenantId, id, sendEmail, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5619,6 +5733,7 @@ public APIdeleteModeratorRequest sendEmail(@javax.annotation.Nullable String sen Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5627,32 +5742,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteModerator request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = deleteModeratorWithHttpInfo(tenantId, id, sendEmail); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = deleteModeratorWithHttpInfo(tenantId, id, sendEmail); return localVarResp.getData(); } /** * Execute deleteModerator request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteModeratorWithHttpInfo(tenantId, id, sendEmail); } @@ -5666,9 +5783,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteModeratorAsync(tenantId, id, sendEmail, _callback); } } @@ -5684,6 +5802,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteModeratorRequest deleteModerator(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -5755,16 +5874,16 @@ private okhttp3.Call deleteNotificationCountValidateBeforeCall(@javax.annotation } - private ApiResponse deleteNotificationCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse deleteNotificationCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = deleteNotificationCountValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNotificationCountAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNotificationCountAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteNotificationCountValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5790,6 +5909,7 @@ private APIdeleteNotificationCountRequest(@javax.annotation.Nonnull String tenan Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5798,32 +5918,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteNotificationCount request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = deleteNotificationCountWithHttpInfo(tenantId, id); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = deleteNotificationCountWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute deleteNotificationCount request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteNotificationCountWithHttpInfo(tenantId, id); } @@ -5837,9 +5959,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteNotificationCountAsync(tenantId, id, _callback); } } @@ -5855,6 +5978,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteNotificationCountRequest deleteNotificationCount(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -6097,16 +6221,16 @@ private okhttp3.Call deletePendingWebhookEventValidateBeforeCall(@javax.annotati } - private ApiResponse deletePendingWebhookEventWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse deletePendingWebhookEventWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = deletePendingWebhookEventValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deletePendingWebhookEventAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePendingWebhookEventAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePendingWebhookEventValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6132,6 +6256,7 @@ private APIdeletePendingWebhookEventRequest(@javax.annotation.Nonnull String ten Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -6140,32 +6265,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deletePendingWebhookEvent request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = deletePendingWebhookEventWithHttpInfo(tenantId, id); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = deletePendingWebhookEventWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute deletePendingWebhookEvent request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return deletePendingWebhookEventWithHttpInfo(tenantId, id); } @@ -6179,9 +6306,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deletePendingWebhookEventAsync(tenantId, id, _callback); } } @@ -6197,6 +6325,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeletePendingWebhookEventRequest deletePendingWebhookEvent(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -6268,16 +6397,16 @@ private okhttp3.Call deleteQuestionConfigValidateBeforeCall(@javax.annotation.No } - private ApiResponse deleteQuestionConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse deleteQuestionConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = deleteQuestionConfigValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteQuestionConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteQuestionConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteQuestionConfigValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6303,6 +6432,7 @@ private APIdeleteQuestionConfigRequest(@javax.annotation.Nonnull String tenantId Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -6311,32 +6441,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteQuestionConfig request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = deleteQuestionConfigWithHttpInfo(tenantId, id); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = deleteQuestionConfigWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute deleteQuestionConfig request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteQuestionConfigWithHttpInfo(tenantId, id); } @@ -6350,9 +6482,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteQuestionConfigAsync(tenantId, id, _callback); } } @@ -6368,6 +6501,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteQuestionConfigRequest deleteQuestionConfig(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -6439,16 +6573,16 @@ private okhttp3.Call deleteQuestionResultValidateBeforeCall(@javax.annotation.No } - private ApiResponse deleteQuestionResultWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse deleteQuestionResultWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = deleteQuestionResultValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteQuestionResultAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteQuestionResultAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteQuestionResultValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6474,6 +6608,7 @@ private APIdeleteQuestionResultRequest(@javax.annotation.Nonnull String tenantId Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -6482,32 +6617,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteQuestionResult request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = deleteQuestionResultWithHttpInfo(tenantId, id); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = deleteQuestionResultWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute deleteQuestionResult request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteQuestionResultWithHttpInfo(tenantId, id); } @@ -6521,9 +6658,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteQuestionResultAsync(tenantId, id, _callback); } } @@ -6539,6 +6677,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteQuestionResultRequest deleteQuestionResult(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -7004,16 +7143,16 @@ private okhttp3.Call deleteTenantValidateBeforeCall(@javax.annotation.Nonnull St } - private ApiResponse deleteTenantWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String sure) throws ApiException { + private ApiResponse deleteTenantWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String sure) throws ApiException { okhttp3.Call localVarCall = deleteTenantValidateBeforeCall(tenantId, id, sure, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteTenantAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String sure, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteTenantAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String sure, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteTenantValidateBeforeCall(tenantId, id, sure, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7051,6 +7190,7 @@ public APIdeleteTenantRequest sure(@javax.annotation.Nullable String sure) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -7059,32 +7199,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteTenant request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = deleteTenantWithHttpInfo(tenantId, id, sure); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = deleteTenantWithHttpInfo(tenantId, id, sure); return localVarResp.getData(); } /** * Execute deleteTenant request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteTenantWithHttpInfo(tenantId, id, sure); } @@ -7098,9 +7240,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteTenantAsync(tenantId, id, sure, _callback); } } @@ -7116,6 +7259,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteTenantRequest deleteTenant(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -7187,16 +7331,16 @@ private okhttp3.Call deleteTenantPackageValidateBeforeCall(@javax.annotation.Non } - private ApiResponse deleteTenantPackageWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse deleteTenantPackageWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = deleteTenantPackageValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteTenantPackageAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteTenantPackageAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteTenantPackageValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7222,6 +7366,7 @@ private APIdeleteTenantPackageRequest(@javax.annotation.Nonnull String tenantId, Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -7230,32 +7375,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteTenantPackage request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = deleteTenantPackageWithHttpInfo(tenantId, id); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = deleteTenantPackageWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute deleteTenantPackage request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteTenantPackageWithHttpInfo(tenantId, id); } @@ -7269,9 +7416,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteTenantPackageAsync(tenantId, id, _callback); } } @@ -7287,6 +7435,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteTenantPackageRequest deleteTenantPackage(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -7366,16 +7515,16 @@ private okhttp3.Call deleteTenantUserValidateBeforeCall(@javax.annotation.Nonnul } - private ApiResponse deleteTenantUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String deleteComments, @javax.annotation.Nullable String commentDeleteMode) throws ApiException { + private ApiResponse deleteTenantUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String deleteComments, @javax.annotation.Nullable String commentDeleteMode) throws ApiException { okhttp3.Call localVarCall = deleteTenantUserValidateBeforeCall(tenantId, id, deleteComments, commentDeleteMode, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteTenantUserAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String deleteComments, @javax.annotation.Nullable String commentDeleteMode, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteTenantUserAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String deleteComments, @javax.annotation.Nullable String commentDeleteMode, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteTenantUserValidateBeforeCall(tenantId, id, deleteComments, commentDeleteMode, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7425,6 +7574,7 @@ public APIdeleteTenantUserRequest commentDeleteMode(@javax.annotation.Nullable S Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -7433,32 +7583,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteTenantUser request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = deleteTenantUserWithHttpInfo(tenantId, id, deleteComments, commentDeleteMode); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = deleteTenantUserWithHttpInfo(tenantId, id, deleteComments, commentDeleteMode); return localVarResp.getData(); } /** * Execute deleteTenantUser request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteTenantUserWithHttpInfo(tenantId, id, deleteComments, commentDeleteMode); } @@ -7472,9 +7624,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteTenantUserAsync(tenantId, id, deleteComments, commentDeleteMode, _callback); } } @@ -7490,6 +7643,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteTenantUserRequest deleteTenantUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -7561,16 +7715,16 @@ private okhttp3.Call deleteUserBadgeValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse deleteUserBadgeWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse deleteUserBadgeWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = deleteUserBadgeValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteUserBadgeAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteUserBadgeAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteUserBadgeValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7596,6 +7750,7 @@ private APIdeleteUserBadgeRequest(@javax.annotation.Nonnull String tenantId, @ja Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -7604,32 +7759,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteUserBadge request - * @return UpdateUserBadge200Response + * @return APIEmptySuccessResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public UpdateUserBadge200Response execute() throws ApiException { - ApiResponse localVarResp = deleteUserBadgeWithHttpInfo(tenantId, id); + public APIEmptySuccessResponse execute() throws ApiException { + ApiResponse localVarResp = deleteUserBadgeWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute deleteUserBadge request with HTTP info returned - * @return ApiResponse<UpdateUserBadge200Response> + * @return ApiResponse<APIEmptySuccessResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteUserBadgeWithHttpInfo(tenantId, id); } @@ -7643,9 +7800,10 @@ public ApiResponse executeWithHttpInfo() throws ApiE Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteUserBadgeAsync(tenantId, id, _callback); } } @@ -7661,6 +7819,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteUserBadgeRequest deleteUserBadge(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -7736,16 +7895,16 @@ private okhttp3.Call deleteVoteValidateBeforeCall(@javax.annotation.Nonnull Stri } - private ApiResponse deleteVoteWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String editKey) throws ApiException { + private ApiResponse deleteVoteWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String editKey) throws ApiException { okhttp3.Call localVarCall = deleteVoteValidateBeforeCall(tenantId, id, editKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteVoteAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String editKey, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteVoteAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String editKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteVoteValidateBeforeCall(tenantId, id, editKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7783,6 +7942,7 @@ public APIdeleteVoteRequest editKey(@javax.annotation.Nullable String editKey) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -7791,32 +7951,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteVote request - * @return DeleteCommentVote200Response + * @return VoteDeleteResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public DeleteCommentVote200Response execute() throws ApiException { - ApiResponse localVarResp = deleteVoteWithHttpInfo(tenantId, id, editKey); + public VoteDeleteResponse execute() throws ApiException { + ApiResponse localVarResp = deleteVoteWithHttpInfo(tenantId, id, editKey); return localVarResp.getData(); } /** * Execute deleteVote request with HTTP info returned - * @return ApiResponse<DeleteCommentVote200Response> + * @return ApiResponse<VoteDeleteResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteVoteWithHttpInfo(tenantId, id, editKey); } @@ -7830,9 +7992,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteVoteAsync(tenantId, id, editKey, _callback); } } @@ -7848,6 +8011,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteVoteRequest deleteVote(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -7927,16 +8091,16 @@ private okhttp3.Call flagCommentValidateBeforeCall(@javax.annotation.Nonnull Str } - private ApiResponse flagCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId) throws ApiException { + private ApiResponse flagCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId) throws ApiException { okhttp3.Call localVarCall = flagCommentValidateBeforeCall(tenantId, id, userId, anonUserId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call flagCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call flagCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = flagCommentValidateBeforeCall(tenantId, id, userId, anonUserId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7986,6 +8150,7 @@ public APIflagCommentRequest anonUserId(@javax.annotation.Nullable String anonUs Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -7994,32 +8159,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute flagComment request - * @return FlagComment200Response + * @return FlagCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagComment200Response execute() throws ApiException { - ApiResponse localVarResp = flagCommentWithHttpInfo(tenantId, id, userId, anonUserId); + public FlagCommentResponse execute() throws ApiException { + ApiResponse localVarResp = flagCommentWithHttpInfo(tenantId, id, userId, anonUserId); return localVarResp.getData(); } /** * Execute flagComment request with HTTP info returned - * @return ApiResponse<FlagComment200Response> + * @return ApiResponse<FlagCommentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return flagCommentWithHttpInfo(tenantId, id, userId, anonUserId); } @@ -8033,9 +8200,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return flagCommentAsync(tenantId, id, userId, anonUserId, _callback); } } @@ -8051,6 +8219,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIflagCommentRequest flagComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -8136,16 +8305,16 @@ private okhttp3.Call getAuditLogsValidateBeforeCall(@javax.annotation.Nonnull St } - private ApiResponse getAuditLogsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double limit, @javax.annotation.Nullable Double skip, @javax.annotation.Nullable SORTDIR order, @javax.annotation.Nullable Double after, @javax.annotation.Nullable Double before) throws ApiException { + private ApiResponse getAuditLogsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double limit, @javax.annotation.Nullable Double skip, @javax.annotation.Nullable SORTDIR order, @javax.annotation.Nullable Double after, @javax.annotation.Nullable Double before) throws ApiException { okhttp3.Call localVarCall = getAuditLogsValidateBeforeCall(tenantId, limit, skip, order, after, before, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getAuditLogsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double limit, @javax.annotation.Nullable Double skip, @javax.annotation.Nullable SORTDIR order, @javax.annotation.Nullable Double after, @javax.annotation.Nullable Double before, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAuditLogsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double limit, @javax.annotation.Nullable Double skip, @javax.annotation.Nullable SORTDIR order, @javax.annotation.Nullable Double after, @javax.annotation.Nullable Double before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAuditLogsValidateBeforeCall(tenantId, limit, skip, order, after, before, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -8228,6 +8397,7 @@ public APIgetAuditLogsRequest before(@javax.annotation.Nullable Double before) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -8236,32 +8406,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getAuditLogs request - * @return GetAuditLogs200Response + * @return GetAuditLogsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetAuditLogs200Response execute() throws ApiException { - ApiResponse localVarResp = getAuditLogsWithHttpInfo(tenantId, limit, skip, order, after, before); + public GetAuditLogsResponse execute() throws ApiException { + ApiResponse localVarResp = getAuditLogsWithHttpInfo(tenantId, limit, skip, order, after, before); return localVarResp.getData(); } /** * Execute getAuditLogs request with HTTP info returned - * @return ApiResponse<GetAuditLogs200Response> + * @return ApiResponse<GetAuditLogsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getAuditLogsWithHttpInfo(tenantId, limit, skip, order, after, before); } @@ -8275,9 +8447,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExce Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getAuditLogsAsync(tenantId, limit, skip, order, after, before, _callback); } } @@ -8292,6 +8465,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetAuditLogsRequest getAuditLogs(@javax.annotation.Nonnull String tenantId) { @@ -8363,16 +8537,16 @@ private okhttp3.Call getCachedNotificationCountValidateBeforeCall(@javax.annotat } - private ApiResponse getCachedNotificationCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse getCachedNotificationCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = getCachedNotificationCountValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getCachedNotificationCountAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCachedNotificationCountAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCachedNotificationCountValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -8398,6 +8572,7 @@ private APIgetCachedNotificationCountRequest(@javax.annotation.Nonnull String te Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -8406,32 +8581,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getCachedNotificationCount request - * @return GetCachedNotificationCount200Response + * @return GetCachedNotificationCountResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetCachedNotificationCount200Response execute() throws ApiException { - ApiResponse localVarResp = getCachedNotificationCountWithHttpInfo(tenantId, id); + public GetCachedNotificationCountResponse execute() throws ApiException { + ApiResponse localVarResp = getCachedNotificationCountWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getCachedNotificationCount request with HTTP info returned - * @return ApiResponse<GetCachedNotificationCount200Response> + * @return ApiResponse<GetCachedNotificationCountResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getCachedNotificationCountWithHttpInfo(tenantId, id); } @@ -8445,9 +8622,10 @@ public ApiResponse executeWithHttpInfo() Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getCachedNotificationCountAsync(tenantId, id, _callback); } } @@ -8463,6 +8641,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetCachedNotificationCountRequest getCachedNotificationCount(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -8534,16 +8713,16 @@ private okhttp3.Call getCommentValidateBeforeCall(@javax.annotation.Nonnull Stri } - private ApiResponse getCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse getCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = getCommentValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCommentValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -8569,6 +8748,7 @@ private APIgetCommentRequest(@javax.annotation.Nonnull String tenantId, @javax.a Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -8577,32 +8757,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getComment request - * @return GetComment200Response + * @return APIGetCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetComment200Response execute() throws ApiException { - ApiResponse localVarResp = getCommentWithHttpInfo(tenantId, id); + public APIGetCommentResponse execute() throws ApiException { + ApiResponse localVarResp = getCommentWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getComment request with HTTP info returned - * @return ApiResponse<GetComment200Response> + * @return ApiResponse<APIGetCommentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getCommentWithHttpInfo(tenantId, id); } @@ -8616,9 +8798,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getCommentAsync(tenantId, id, _callback); } } @@ -8634,12 +8817,13 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetCommentRequest getComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { return new APIgetCommentRequest(tenantId, id); } - private okhttp3.Call getCommentsCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable String hashTag, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable SortDirections direction, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentsCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable String hashTag, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable Long fromDate, @javax.annotation.Nullable Long toDate, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8724,6 +8908,14 @@ private okhttp3.Call getCommentsCall(@javax.annotation.Nonnull String tenantId, localVarQueryParams.addAll(localVarApiClient.parameterToPair("direction", direction)); } + if (fromDate != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fromDate", fromDate)); + } + + if (toDate != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("toDate", toDate)); + } + final String[] localVarAccepts = { "application/json" }; @@ -8744,27 +8936,27 @@ private okhttp3.Call getCommentsCall(@javax.annotation.Nonnull String tenantId, } @SuppressWarnings("rawtypes") - private okhttp3.Call getCommentsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable String hashTag, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable SortDirections direction, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable String hashTag, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable Long fromDate, @javax.annotation.Nullable Long toDate, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { throw new ApiException("Missing the required parameter 'tenantId' when calling getComments(Async)"); } - return getCommentsCall(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, _callback); + return getCommentsCall(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate, _callback); } - private ApiResponse getCommentsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable String hashTag, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable SortDirections direction) throws ApiException { - okhttp3.Call localVarCall = getCommentsValidateBeforeCall(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse getCommentsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable String hashTag, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable Long fromDate, @javax.annotation.Nullable Long toDate) throws ApiException { + okhttp3.Call localVarCall = getCommentsValidateBeforeCall(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getCommentsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable String hashTag, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable SortDirections direction, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable String hashTag, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable Long fromDate, @javax.annotation.Nullable Long toDate, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCommentsValidateBeforeCall(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getCommentsValidateBeforeCall(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -8800,6 +8992,10 @@ public class APIgetCommentsRequest { private String parentId; @javax.annotation.Nullable private SortDirections direction; + @javax.annotation.Nullable + private Long fromDate; + @javax.annotation.Nullable + private Long toDate; private APIgetCommentsRequest(@javax.annotation.Nonnull String tenantId) { this.tenantId = tenantId; @@ -8945,6 +9141,26 @@ public APIgetCommentsRequest direction(@javax.annotation.Nullable SortDirections return this; } + /** + * Set fromDate + * @param fromDate (optional) + * @return APIgetCommentsRequest + */ + public APIgetCommentsRequest fromDate(@javax.annotation.Nullable Long fromDate) { + this.fromDate = fromDate; + return this; + } + + /** + * Set toDate + * @param toDate (optional) + * @return APIgetCommentsRequest + */ + public APIgetCommentsRequest toDate(@javax.annotation.Nullable Long toDate) { + this.toDate = toDate; + return this; + } + /** * Build call for getComments * @param _callback ApiCallback API callback @@ -8955,41 +9171,44 @@ public APIgetCommentsRequest direction(@javax.annotation.Nullable SortDirections Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getCommentsCall(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, _callback); + return getCommentsCall(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate, _callback); } /** * Execute getComments request - * @return GetComments200Response + * @return APIGetCommentsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetComments200Response execute() throws ApiException { - ApiResponse localVarResp = getCommentsWithHttpInfo(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction); + public APIGetCommentsResponse execute() throws ApiException { + ApiResponse localVarResp = getCommentsWithHttpInfo(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate); return localVarResp.getData(); } /** * Execute getComments request with HTTP info returned - * @return ApiResponse<GetComments200Response> + * @return ApiResponse<APIGetCommentsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getCommentsWithHttpInfo(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getCommentsWithHttpInfo(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate); } /** @@ -9002,10 +9221,11 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getCommentsAsync(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getCommentsAsync(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate, _callback); } } @@ -9019,6 +9239,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetCommentsRequest getComments(@javax.annotation.Nonnull String tenantId) { @@ -9090,16 +9311,16 @@ private okhttp3.Call getDomainConfigValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse getDomainConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domain) throws ApiException { + private ApiResponse getDomainConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domain) throws ApiException { okhttp3.Call localVarCall = getDomainConfigValidateBeforeCall(tenantId, domain, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getDomainConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domain, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getDomainConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domain, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getDomainConfigValidateBeforeCall(tenantId, domain, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9133,7 +9354,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getDomainConfig request - * @return GetDomainConfig200Response + * @return GetDomainConfigResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9142,14 +9363,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
200 Ok -
*/ - public GetDomainConfig200Response execute() throws ApiException { - ApiResponse localVarResp = getDomainConfigWithHttpInfo(tenantId, domain); + public GetDomainConfigResponse execute() throws ApiException { + ApiResponse localVarResp = getDomainConfigWithHttpInfo(tenantId, domain); return localVarResp.getData(); } /** * Execute getDomainConfig request with HTTP info returned - * @return ApiResponse<GetDomainConfig200Response> + * @return ApiResponse<GetDomainConfigResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9158,7 +9379,7 @@ public GetDomainConfig200Response execute() throws ApiException {
200 Ok -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getDomainConfigWithHttpInfo(tenantId, domain); } @@ -9174,7 +9395,7 @@ public ApiResponse executeWithHttpInfo() throws ApiE 200 Ok - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getDomainConfigAsync(tenantId, domain, _callback); } } @@ -9255,16 +9476,16 @@ private okhttp3.Call getDomainConfigsValidateBeforeCall(@javax.annotation.Nonnul } - private ApiResponse getDomainConfigsWithHttpInfo(@javax.annotation.Nonnull String tenantId) throws ApiException { + private ApiResponse getDomainConfigsWithHttpInfo(@javax.annotation.Nonnull String tenantId) throws ApiException { okhttp3.Call localVarCall = getDomainConfigsValidateBeforeCall(tenantId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getDomainConfigsAsync(@javax.annotation.Nonnull String tenantId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getDomainConfigsAsync(@javax.annotation.Nonnull String tenantId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getDomainConfigsValidateBeforeCall(tenantId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9295,7 +9516,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getDomainConfigs request - * @return GetDomainConfigs200Response + * @return GetDomainConfigsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9304,14 +9525,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
200 Ok -
*/ - public GetDomainConfigs200Response execute() throws ApiException { - ApiResponse localVarResp = getDomainConfigsWithHttpInfo(tenantId); + public GetDomainConfigsResponse execute() throws ApiException { + ApiResponse localVarResp = getDomainConfigsWithHttpInfo(tenantId); return localVarResp.getData(); } /** * Execute getDomainConfigs request with HTTP info returned - * @return ApiResponse<GetDomainConfigs200Response> + * @return ApiResponse<GetDomainConfigsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9320,7 +9541,7 @@ public GetDomainConfigs200Response execute() throws ApiException {
200 Ok -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getDomainConfigsWithHttpInfo(tenantId); } @@ -9336,7 +9557,7 @@ public ApiResponse executeWithHttpInfo() throws Api 200 Ok - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getDomainConfigsAsync(tenantId, _callback); } } @@ -9422,16 +9643,16 @@ private okhttp3.Call getEmailTemplateValidateBeforeCall(@javax.annotation.Nonnul } - private ApiResponse getEmailTemplateWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse getEmailTemplateWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = getEmailTemplateValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getEmailTemplateAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getEmailTemplateAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getEmailTemplateValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9457,6 +9678,7 @@ private APIgetEmailTemplateRequest(@javax.annotation.Nonnull String tenantId, @j Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -9465,32 +9687,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getEmailTemplate request - * @return GetEmailTemplate200Response + * @return GetEmailTemplateResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetEmailTemplate200Response execute() throws ApiException { - ApiResponse localVarResp = getEmailTemplateWithHttpInfo(tenantId, id); + public GetEmailTemplateResponse execute() throws ApiException { + ApiResponse localVarResp = getEmailTemplateWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getEmailTemplate request with HTTP info returned - * @return ApiResponse<GetEmailTemplate200Response> + * @return ApiResponse<GetEmailTemplateResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getEmailTemplateWithHttpInfo(tenantId, id); } @@ -9504,9 +9728,10 @@ public ApiResponse executeWithHttpInfo() throws Api Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getEmailTemplateAsync(tenantId, id, _callback); } } @@ -9522,6 +9747,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetEmailTemplateRequest getEmailTemplate(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -9587,16 +9813,16 @@ private okhttp3.Call getEmailTemplateDefinitionsValidateBeforeCall(@javax.annota } - private ApiResponse getEmailTemplateDefinitionsWithHttpInfo(@javax.annotation.Nonnull String tenantId) throws ApiException { + private ApiResponse getEmailTemplateDefinitionsWithHttpInfo(@javax.annotation.Nonnull String tenantId) throws ApiException { okhttp3.Call localVarCall = getEmailTemplateDefinitionsValidateBeforeCall(tenantId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getEmailTemplateDefinitionsAsync(@javax.annotation.Nonnull String tenantId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getEmailTemplateDefinitionsAsync(@javax.annotation.Nonnull String tenantId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getEmailTemplateDefinitionsValidateBeforeCall(tenantId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9619,6 +9845,7 @@ private APIgetEmailTemplateDefinitionsRequest(@javax.annotation.Nonnull String t Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -9627,32 +9854,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getEmailTemplateDefinitions request - * @return GetEmailTemplateDefinitions200Response + * @return GetEmailTemplateDefinitionsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetEmailTemplateDefinitions200Response execute() throws ApiException { - ApiResponse localVarResp = getEmailTemplateDefinitionsWithHttpInfo(tenantId); + public GetEmailTemplateDefinitionsResponse execute() throws ApiException { + ApiResponse localVarResp = getEmailTemplateDefinitionsWithHttpInfo(tenantId); return localVarResp.getData(); } /** * Execute getEmailTemplateDefinitions request with HTTP info returned - * @return ApiResponse<GetEmailTemplateDefinitions200Response> + * @return ApiResponse<GetEmailTemplateDefinitionsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getEmailTemplateDefinitionsWithHttpInfo(tenantId); } @@ -9666,9 +9895,10 @@ public ApiResponse executeWithHttpInfo() Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getEmailTemplateDefinitionsAsync(tenantId, _callback); } } @@ -9683,6 +9913,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetEmailTemplateDefinitionsRequest getEmailTemplateDefinitions(@javax.annotation.Nonnull String tenantId) { @@ -9758,16 +9989,16 @@ private okhttp3.Call getEmailTemplateRenderErrorsValidateBeforeCall(@javax.annot } - private ApiResponse getEmailTemplateRenderErrorsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable Double skip) throws ApiException { + private ApiResponse getEmailTemplateRenderErrorsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable Double skip) throws ApiException { okhttp3.Call localVarCall = getEmailTemplateRenderErrorsValidateBeforeCall(tenantId, id, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getEmailTemplateRenderErrorsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getEmailTemplateRenderErrorsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getEmailTemplateRenderErrorsValidateBeforeCall(tenantId, id, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9805,6 +10036,7 @@ public APIgetEmailTemplateRenderErrorsRequest skip(@javax.annotation.Nullable Do Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -9813,32 +10045,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getEmailTemplateRenderErrors request - * @return GetEmailTemplateRenderErrors200Response + * @return GetEmailTemplateRenderErrorsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetEmailTemplateRenderErrors200Response execute() throws ApiException { - ApiResponse localVarResp = getEmailTemplateRenderErrorsWithHttpInfo(tenantId, id, skip); + public GetEmailTemplateRenderErrorsResponse execute() throws ApiException { + ApiResponse localVarResp = getEmailTemplateRenderErrorsWithHttpInfo(tenantId, id, skip); return localVarResp.getData(); } /** * Execute getEmailTemplateRenderErrors request with HTTP info returned - * @return ApiResponse<GetEmailTemplateRenderErrors200Response> + * @return ApiResponse<GetEmailTemplateRenderErrorsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getEmailTemplateRenderErrorsWithHttpInfo(tenantId, id, skip); } @@ -9852,9 +10086,10 @@ public ApiResponse executeWithHttpInfo( Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getEmailTemplateRenderErrorsAsync(tenantId, id, skip, _callback); } } @@ -9870,6 +10105,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetEmailTemplateRenderErrorsRequest getEmailTemplateRenderErrors(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -9939,16 +10175,16 @@ private okhttp3.Call getEmailTemplatesValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse getEmailTemplatesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip) throws ApiException { + private ApiResponse getEmailTemplatesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip) throws ApiException { okhttp3.Call localVarCall = getEmailTemplatesValidateBeforeCall(tenantId, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getEmailTemplatesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getEmailTemplatesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getEmailTemplatesValidateBeforeCall(tenantId, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9983,6 +10219,7 @@ public APIgetEmailTemplatesRequest skip(@javax.annotation.Nullable Double skip) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -9991,32 +10228,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getEmailTemplates request - * @return GetEmailTemplates200Response + * @return GetEmailTemplatesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetEmailTemplates200Response execute() throws ApiException { - ApiResponse localVarResp = getEmailTemplatesWithHttpInfo(tenantId, skip); + public GetEmailTemplatesResponse execute() throws ApiException { + ApiResponse localVarResp = getEmailTemplatesWithHttpInfo(tenantId, skip); return localVarResp.getData(); } /** * Execute getEmailTemplates request with HTTP info returned - * @return ApiResponse<GetEmailTemplates200Response> + * @return ApiResponse<GetEmailTemplatesResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getEmailTemplatesWithHttpInfo(tenantId, skip); } @@ -10030,9 +10269,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getEmailTemplatesAsync(tenantId, skip, _callback); } } @@ -10047,6 +10287,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetEmailTemplatesRequest getEmailTemplates(@javax.annotation.Nonnull String tenantId) { @@ -10124,16 +10365,16 @@ private okhttp3.Call getFeedPostsValidateBeforeCall(@javax.annotation.Nonnull St } - private ApiResponse getFeedPostsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable List tags) throws ApiException { + private ApiResponse getFeedPostsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable List tags) throws ApiException { okhttp3.Call localVarCall = getFeedPostsValidateBeforeCall(tenantId, afterId, limit, tags, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getFeedPostsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable List tags, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getFeedPostsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable List tags, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getFeedPostsValidateBeforeCall(tenantId, afterId, limit, tags, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -10192,6 +10433,7 @@ public APIgetFeedPostsRequest tags(@javax.annotation.Nullable List tags) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -10200,32 +10442,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getFeedPosts request - * @return GetFeedPosts200Response + * @return GetFeedPostsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetFeedPosts200Response execute() throws ApiException { - ApiResponse localVarResp = getFeedPostsWithHttpInfo(tenantId, afterId, limit, tags); + public GetFeedPostsResponse execute() throws ApiException { + ApiResponse localVarResp = getFeedPostsWithHttpInfo(tenantId, afterId, limit, tags); return localVarResp.getData(); } /** * Execute getFeedPosts request with HTTP info returned - * @return ApiResponse<GetFeedPosts200Response> + * @return ApiResponse<GetFeedPostsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getFeedPostsWithHttpInfo(tenantId, afterId, limit, tags); } @@ -10239,9 +10483,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExce Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getFeedPostsAsync(tenantId, afterId, limit, tags, _callback); } } @@ -10256,6 +10501,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetFeedPostsRequest getFeedPosts(@javax.annotation.Nonnull String tenantId) { @@ -10325,16 +10571,16 @@ private okhttp3.Call getHashTagsValidateBeforeCall(@javax.annotation.Nonnull Str } - private ApiResponse getHashTagsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double page) throws ApiException { + private ApiResponse getHashTagsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double page) throws ApiException { okhttp3.Call localVarCall = getHashTagsValidateBeforeCall(tenantId, page, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getHashTagsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double page, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getHashTagsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double page, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getHashTagsValidateBeforeCall(tenantId, page, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -10369,6 +10615,7 @@ public APIgetHashTagsRequest page(@javax.annotation.Nullable Double page) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -10377,32 +10624,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getHashTags request - * @return GetHashTags200Response + * @return GetHashTagsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetHashTags200Response execute() throws ApiException { - ApiResponse localVarResp = getHashTagsWithHttpInfo(tenantId, page); + public GetHashTagsResponse execute() throws ApiException { + ApiResponse localVarResp = getHashTagsWithHttpInfo(tenantId, page); return localVarResp.getData(); } /** * Execute getHashTags request with HTTP info returned - * @return ApiResponse<GetHashTags200Response> + * @return ApiResponse<GetHashTagsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getHashTagsWithHttpInfo(tenantId, page); } @@ -10416,9 +10665,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getHashTagsAsync(tenantId, page, _callback); } } @@ -10433,6 +10683,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetHashTagsRequest getHashTags(@javax.annotation.Nonnull String tenantId) { @@ -10504,16 +10755,16 @@ private okhttp3.Call getModeratorValidateBeforeCall(@javax.annotation.Nonnull St } - private ApiResponse getModeratorWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse getModeratorWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = getModeratorValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getModeratorAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModeratorAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getModeratorValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -10539,6 +10790,7 @@ private APIgetModeratorRequest(@javax.annotation.Nonnull String tenantId, @javax Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -10547,32 +10799,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getModerator request - * @return GetModerator200Response + * @return GetModeratorResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetModerator200Response execute() throws ApiException { - ApiResponse localVarResp = getModeratorWithHttpInfo(tenantId, id); + public GetModeratorResponse execute() throws ApiException { + ApiResponse localVarResp = getModeratorWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getModerator request with HTTP info returned - * @return ApiResponse<GetModerator200Response> + * @return ApiResponse<GetModeratorResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getModeratorWithHttpInfo(tenantId, id); } @@ -10586,9 +10840,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExce Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getModeratorAsync(tenantId, id, _callback); } } @@ -10604,6 +10859,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetModeratorRequest getModerator(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -10673,16 +10929,16 @@ private okhttp3.Call getModeratorsValidateBeforeCall(@javax.annotation.Nonnull S } - private ApiResponse getModeratorsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip) throws ApiException { + private ApiResponse getModeratorsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip) throws ApiException { okhttp3.Call localVarCall = getModeratorsValidateBeforeCall(tenantId, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getModeratorsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModeratorsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getModeratorsValidateBeforeCall(tenantId, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -10717,6 +10973,7 @@ public APIgetModeratorsRequest skip(@javax.annotation.Nullable Double skip) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -10725,32 +10982,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getModerators request - * @return GetModerators200Response + * @return GetModeratorsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetModerators200Response execute() throws ApiException { - ApiResponse localVarResp = getModeratorsWithHttpInfo(tenantId, skip); + public GetModeratorsResponse execute() throws ApiException { + ApiResponse localVarResp = getModeratorsWithHttpInfo(tenantId, skip); return localVarResp.getData(); } /** * Execute getModerators request with HTTP info returned - * @return ApiResponse<GetModerators200Response> + * @return ApiResponse<GetModeratorsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getModeratorsWithHttpInfo(tenantId, skip); } @@ -10764,9 +11023,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExc Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getModeratorsAsync(tenantId, skip, _callback); } } @@ -10781,6 +11041,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetModeratorsRequest getModerators(@javax.annotation.Nonnull String tenantId) { @@ -10866,16 +11127,16 @@ private okhttp3.Call getNotificationCountValidateBeforeCall(@javax.annotation.No } - private ApiResponse getNotificationCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String fromCommentId, @javax.annotation.Nullable Boolean viewed, @javax.annotation.Nullable String type) throws ApiException { + private ApiResponse getNotificationCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String fromCommentId, @javax.annotation.Nullable Boolean viewed, @javax.annotation.Nullable String type) throws ApiException { okhttp3.Call localVarCall = getNotificationCountValidateBeforeCall(tenantId, userId, urlId, fromCommentId, viewed, type, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getNotificationCountAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String fromCommentId, @javax.annotation.Nullable Boolean viewed, @javax.annotation.Nullable String type, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getNotificationCountAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String fromCommentId, @javax.annotation.Nullable Boolean viewed, @javax.annotation.Nullable String type, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getNotificationCountValidateBeforeCall(tenantId, userId, urlId, fromCommentId, viewed, type, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -10958,6 +11219,7 @@ public APIgetNotificationCountRequest type(@javax.annotation.Nullable String typ Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -10966,32 +11228,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getNotificationCount request - * @return GetNotificationCount200Response + * @return GetNotificationCountResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetNotificationCount200Response execute() throws ApiException { - ApiResponse localVarResp = getNotificationCountWithHttpInfo(tenantId, userId, urlId, fromCommentId, viewed, type); + public GetNotificationCountResponse execute() throws ApiException { + ApiResponse localVarResp = getNotificationCountWithHttpInfo(tenantId, userId, urlId, fromCommentId, viewed, type); return localVarResp.getData(); } /** * Execute getNotificationCount request with HTTP info returned - * @return ApiResponse<GetNotificationCount200Response> + * @return ApiResponse<GetNotificationCountResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getNotificationCountWithHttpInfo(tenantId, userId, urlId, fromCommentId, viewed, type); } @@ -11005,9 +11269,10 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getNotificationCountAsync(tenantId, userId, urlId, fromCommentId, viewed, type, _callback); } } @@ -11022,6 +11287,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetNotificationCountRequest getNotificationCount(@javax.annotation.Nonnull String tenantId) { @@ -11111,16 +11377,16 @@ private okhttp3.Call getNotificationsValidateBeforeCall(@javax.annotation.Nonnul } - private ApiResponse getNotificationsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String fromCommentId, @javax.annotation.Nullable Boolean viewed, @javax.annotation.Nullable String type, @javax.annotation.Nullable Double skip) throws ApiException { + private ApiResponse getNotificationsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String fromCommentId, @javax.annotation.Nullable Boolean viewed, @javax.annotation.Nullable String type, @javax.annotation.Nullable Double skip) throws ApiException { okhttp3.Call localVarCall = getNotificationsValidateBeforeCall(tenantId, userId, urlId, fromCommentId, viewed, type, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getNotificationsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String fromCommentId, @javax.annotation.Nullable Boolean viewed, @javax.annotation.Nullable String type, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getNotificationsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String fromCommentId, @javax.annotation.Nullable Boolean viewed, @javax.annotation.Nullable String type, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getNotificationsValidateBeforeCall(tenantId, userId, urlId, fromCommentId, viewed, type, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -11215,6 +11481,7 @@ public APIgetNotificationsRequest skip(@javax.annotation.Nullable Double skip) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -11223,32 +11490,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getNotifications request - * @return GetNotifications200Response + * @return GetNotificationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetNotifications200Response execute() throws ApiException { - ApiResponse localVarResp = getNotificationsWithHttpInfo(tenantId, userId, urlId, fromCommentId, viewed, type, skip); + public GetNotificationsResponse execute() throws ApiException { + ApiResponse localVarResp = getNotificationsWithHttpInfo(tenantId, userId, urlId, fromCommentId, viewed, type, skip); return localVarResp.getData(); } /** * Execute getNotifications request with HTTP info returned - * @return ApiResponse<GetNotifications200Response> + * @return ApiResponse<GetNotificationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getNotificationsWithHttpInfo(tenantId, userId, urlId, fromCommentId, viewed, type, skip); } @@ -11262,9 +11531,10 @@ public ApiResponse executeWithHttpInfo() throws Api Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getNotificationsAsync(tenantId, userId, urlId, fromCommentId, viewed, type, skip, _callback); } } @@ -11279,6 +11549,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetNotificationsRequest getNotifications(@javax.annotation.Nonnull String tenantId) { @@ -11703,16 +11974,16 @@ private okhttp3.Call getPendingWebhookEventCountValidateBeforeCall(@javax.annota } - private ApiResponse getPendingWebhookEventCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String externalId, @javax.annotation.Nullable String eventType, @javax.annotation.Nullable String type, @javax.annotation.Nullable String domain, @javax.annotation.Nullable Double attemptCountGT) throws ApiException { + private ApiResponse getPendingWebhookEventCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String externalId, @javax.annotation.Nullable String eventType, @javax.annotation.Nullable String type, @javax.annotation.Nullable String domain, @javax.annotation.Nullable Double attemptCountGT) throws ApiException { okhttp3.Call localVarCall = getPendingWebhookEventCountValidateBeforeCall(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getPendingWebhookEventCountAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String externalId, @javax.annotation.Nullable String eventType, @javax.annotation.Nullable String type, @javax.annotation.Nullable String domain, @javax.annotation.Nullable Double attemptCountGT, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPendingWebhookEventCountAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String externalId, @javax.annotation.Nullable String eventType, @javax.annotation.Nullable String type, @javax.annotation.Nullable String domain, @javax.annotation.Nullable Double attemptCountGT, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPendingWebhookEventCountValidateBeforeCall(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -11807,6 +12078,7 @@ public APIgetPendingWebhookEventCountRequest attemptCountGT(@javax.annotation.Nu Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -11815,32 +12087,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getPendingWebhookEventCount request - * @return GetPendingWebhookEventCount200Response + * @return GetPendingWebhookEventCountResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetPendingWebhookEventCount200Response execute() throws ApiException { - ApiResponse localVarResp = getPendingWebhookEventCountWithHttpInfo(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT); + public GetPendingWebhookEventCountResponse execute() throws ApiException { + ApiResponse localVarResp = getPendingWebhookEventCountWithHttpInfo(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT); return localVarResp.getData(); } /** * Execute getPendingWebhookEventCount request with HTTP info returned - * @return ApiResponse<GetPendingWebhookEventCount200Response> + * @return ApiResponse<GetPendingWebhookEventCountResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getPendingWebhookEventCountWithHttpInfo(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT); } @@ -11854,9 +12128,10 @@ public ApiResponse executeWithHttpInfo() Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getPendingWebhookEventCountAsync(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, _callback); } } @@ -11871,6 +12146,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetPendingWebhookEventCountRequest getPendingWebhookEventCount(@javax.annotation.Nonnull String tenantId) { @@ -11964,16 +12240,16 @@ private okhttp3.Call getPendingWebhookEventsValidateBeforeCall(@javax.annotation } - private ApiResponse getPendingWebhookEventsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String externalId, @javax.annotation.Nullable String eventType, @javax.annotation.Nullable String type, @javax.annotation.Nullable String domain, @javax.annotation.Nullable Double attemptCountGT, @javax.annotation.Nullable Double skip) throws ApiException { + private ApiResponse getPendingWebhookEventsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String externalId, @javax.annotation.Nullable String eventType, @javax.annotation.Nullable String type, @javax.annotation.Nullable String domain, @javax.annotation.Nullable Double attemptCountGT, @javax.annotation.Nullable Double skip) throws ApiException { okhttp3.Call localVarCall = getPendingWebhookEventsValidateBeforeCall(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getPendingWebhookEventsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String externalId, @javax.annotation.Nullable String eventType, @javax.annotation.Nullable String type, @javax.annotation.Nullable String domain, @javax.annotation.Nullable Double attemptCountGT, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPendingWebhookEventsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String externalId, @javax.annotation.Nullable String eventType, @javax.annotation.Nullable String type, @javax.annotation.Nullable String domain, @javax.annotation.Nullable Double attemptCountGT, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPendingWebhookEventsValidateBeforeCall(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -12080,6 +12356,7 @@ public APIgetPendingWebhookEventsRequest skip(@javax.annotation.Nullable Double Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -12088,32 +12365,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getPendingWebhookEvents request - * @return GetPendingWebhookEvents200Response + * @return GetPendingWebhookEventsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetPendingWebhookEvents200Response execute() throws ApiException { - ApiResponse localVarResp = getPendingWebhookEventsWithHttpInfo(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip); + public GetPendingWebhookEventsResponse execute() throws ApiException { + ApiResponse localVarResp = getPendingWebhookEventsWithHttpInfo(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip); return localVarResp.getData(); } /** * Execute getPendingWebhookEvents request with HTTP info returned - * @return ApiResponse<GetPendingWebhookEvents200Response> + * @return ApiResponse<GetPendingWebhookEventsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getPendingWebhookEventsWithHttpInfo(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip); } @@ -12127,9 +12406,10 @@ public ApiResponse executeWithHttpInfo() thr Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getPendingWebhookEventsAsync(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip, _callback); } } @@ -12144,6 +12424,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetPendingWebhookEventsRequest getPendingWebhookEvents(@javax.annotation.Nonnull String tenantId) { @@ -12215,16 +12496,16 @@ private okhttp3.Call getQuestionConfigValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse getQuestionConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse getQuestionConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = getQuestionConfigValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getQuestionConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getQuestionConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getQuestionConfigValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -12250,6 +12531,7 @@ private APIgetQuestionConfigRequest(@javax.annotation.Nonnull String tenantId, @ Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -12258,32 +12540,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getQuestionConfig request - * @return GetQuestionConfig200Response + * @return GetQuestionConfigResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetQuestionConfig200Response execute() throws ApiException { - ApiResponse localVarResp = getQuestionConfigWithHttpInfo(tenantId, id); + public GetQuestionConfigResponse execute() throws ApiException { + ApiResponse localVarResp = getQuestionConfigWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getQuestionConfig request with HTTP info returned - * @return ApiResponse<GetQuestionConfig200Response> + * @return ApiResponse<GetQuestionConfigResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getQuestionConfigWithHttpInfo(tenantId, id); } @@ -12297,9 +12581,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getQuestionConfigAsync(tenantId, id, _callback); } } @@ -12315,6 +12600,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetQuestionConfigRequest getQuestionConfig(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -12384,16 +12670,16 @@ private okhttp3.Call getQuestionConfigsValidateBeforeCall(@javax.annotation.Nonn } - private ApiResponse getQuestionConfigsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip) throws ApiException { + private ApiResponse getQuestionConfigsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip) throws ApiException { okhttp3.Call localVarCall = getQuestionConfigsValidateBeforeCall(tenantId, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getQuestionConfigsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getQuestionConfigsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getQuestionConfigsValidateBeforeCall(tenantId, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -12428,6 +12714,7 @@ public APIgetQuestionConfigsRequest skip(@javax.annotation.Nullable Double skip) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -12436,32 +12723,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getQuestionConfigs request - * @return GetQuestionConfigs200Response + * @return GetQuestionConfigsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetQuestionConfigs200Response execute() throws ApiException { - ApiResponse localVarResp = getQuestionConfigsWithHttpInfo(tenantId, skip); + public GetQuestionConfigsResponse execute() throws ApiException { + ApiResponse localVarResp = getQuestionConfigsWithHttpInfo(tenantId, skip); return localVarResp.getData(); } /** * Execute getQuestionConfigs request with HTTP info returned - * @return ApiResponse<GetQuestionConfigs200Response> + * @return ApiResponse<GetQuestionConfigsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getQuestionConfigsWithHttpInfo(tenantId, skip); } @@ -12475,9 +12764,10 @@ public ApiResponse executeWithHttpInfo() throws A Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getQuestionConfigsAsync(tenantId, skip, _callback); } } @@ -12492,6 +12782,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetQuestionConfigsRequest getQuestionConfigs(@javax.annotation.Nonnull String tenantId) { @@ -12563,16 +12854,16 @@ private okhttp3.Call getQuestionResultValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse getQuestionResultWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse getQuestionResultWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = getQuestionResultValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getQuestionResultAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getQuestionResultAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getQuestionResultValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -12598,6 +12889,7 @@ private APIgetQuestionResultRequest(@javax.annotation.Nonnull String tenantId, @ Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -12606,32 +12898,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getQuestionResult request - * @return GetQuestionResult200Response + * @return GetQuestionResultResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetQuestionResult200Response execute() throws ApiException { - ApiResponse localVarResp = getQuestionResultWithHttpInfo(tenantId, id); + public GetQuestionResultResponse execute() throws ApiException { + ApiResponse localVarResp = getQuestionResultWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getQuestionResult request with HTTP info returned - * @return ApiResponse<GetQuestionResult200Response> + * @return ApiResponse<GetQuestionResultResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getQuestionResultWithHttpInfo(tenantId, id); } @@ -12645,9 +12939,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getQuestionResultAsync(tenantId, id, _callback); } } @@ -12663,6 +12958,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetQuestionResultRequest getQuestionResult(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -12752,16 +13048,16 @@ private okhttp3.Call getQuestionResultsValidateBeforeCall(@javax.annotation.Nonn } - private ApiResponse getQuestionResultsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String startDate, @javax.annotation.Nullable String questionId, @javax.annotation.Nullable String questionIds, @javax.annotation.Nullable Double skip) throws ApiException { + private ApiResponse getQuestionResultsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String startDate, @javax.annotation.Nullable String questionId, @javax.annotation.Nullable String questionIds, @javax.annotation.Nullable Double skip) throws ApiException { okhttp3.Call localVarCall = getQuestionResultsValidateBeforeCall(tenantId, urlId, userId, startDate, questionId, questionIds, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getQuestionResultsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String startDate, @javax.annotation.Nullable String questionId, @javax.annotation.Nullable String questionIds, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getQuestionResultsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String startDate, @javax.annotation.Nullable String questionId, @javax.annotation.Nullable String questionIds, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getQuestionResultsValidateBeforeCall(tenantId, urlId, userId, startDate, questionId, questionIds, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -12856,6 +13152,7 @@ public APIgetQuestionResultsRequest skip(@javax.annotation.Nullable Double skip) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -12864,32 +13161,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getQuestionResults request - * @return GetQuestionResults200Response + * @return GetQuestionResultsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetQuestionResults200Response execute() throws ApiException { - ApiResponse localVarResp = getQuestionResultsWithHttpInfo(tenantId, urlId, userId, startDate, questionId, questionIds, skip); + public GetQuestionResultsResponse execute() throws ApiException { + ApiResponse localVarResp = getQuestionResultsWithHttpInfo(tenantId, urlId, userId, startDate, questionId, questionIds, skip); return localVarResp.getData(); } /** * Execute getQuestionResults request with HTTP info returned - * @return ApiResponse<GetQuestionResults200Response> + * @return ApiResponse<GetQuestionResultsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getQuestionResultsWithHttpInfo(tenantId, urlId, userId, startDate, questionId, questionIds, skip); } @@ -12903,9 +13202,10 @@ public ApiResponse executeWithHttpInfo() throws A Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getQuestionResultsAsync(tenantId, urlId, userId, startDate, questionId, questionIds, skip, _callback); } } @@ -12920,6 +13220,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetQuestionResultsRequest getQuestionResults(@javax.annotation.Nonnull String tenantId) { @@ -13331,16 +13632,16 @@ private okhttp3.Call getSSOUsersValidateBeforeCall(@javax.annotation.Nonnull Str } - private ApiResponse getSSOUsersWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer skip) throws ApiException { + private ApiResponse getSSOUsersWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer skip) throws ApiException { okhttp3.Call localVarCall = getSSOUsersValidateBeforeCall(tenantId, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getSSOUsersAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSSOUsersAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSSOUsersValidateBeforeCall(tenantId, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -13383,7 +13684,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getSSOUsers request - * @return GetSSOUsers200Response + * @return GetSSOUsersResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13392,14 +13693,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
200 Ok -
*/ - public GetSSOUsers200Response execute() throws ApiException { - ApiResponse localVarResp = getSSOUsersWithHttpInfo(tenantId, skip); + public GetSSOUsersResponse execute() throws ApiException { + ApiResponse localVarResp = getSSOUsersWithHttpInfo(tenantId, skip); return localVarResp.getData(); } /** * Execute getSSOUsers request with HTTP info returned - * @return ApiResponse<GetSSOUsers200Response> + * @return ApiResponse<GetSSOUsersResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -13408,7 +13709,7 @@ public GetSSOUsers200Response execute() throws ApiException {
200 Ok -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getSSOUsersWithHttpInfo(tenantId, skip); } @@ -13424,7 +13725,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep 200 Ok - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getSSOUsersAsync(tenantId, skip, _callback); } } @@ -13687,16 +13988,16 @@ private okhttp3.Call getTenantValidateBeforeCall(@javax.annotation.Nonnull Strin } - private ApiResponse getTenantWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse getTenantWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = getTenantValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getTenantAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTenantAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTenantValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -13722,6 +14023,7 @@ private APIgetTenantRequest(@javax.annotation.Nonnull String tenantId, @javax.an Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -13730,32 +14032,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenant request - * @return GetTenant200Response + * @return GetTenantResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTenant200Response execute() throws ApiException { - ApiResponse localVarResp = getTenantWithHttpInfo(tenantId, id); + public GetTenantResponse execute() throws ApiException { + ApiResponse localVarResp = getTenantWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getTenant request with HTTP info returned - * @return ApiResponse<GetTenant200Response> + * @return ApiResponse<GetTenantResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getTenantWithHttpInfo(tenantId, id); } @@ -13769,9 +14073,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getTenantAsync(tenantId, id, _callback); } } @@ -13787,6 +14092,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTenantRequest getTenant(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -13868,16 +14174,16 @@ private okhttp3.Call getTenantDailyUsagesValidateBeforeCall(@javax.annotation.No } - private ApiResponse getTenantDailyUsagesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double yearNumber, @javax.annotation.Nullable Double monthNumber, @javax.annotation.Nullable Double dayNumber, @javax.annotation.Nullable Double skip) throws ApiException { + private ApiResponse getTenantDailyUsagesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double yearNumber, @javax.annotation.Nullable Double monthNumber, @javax.annotation.Nullable Double dayNumber, @javax.annotation.Nullable Double skip) throws ApiException { okhttp3.Call localVarCall = getTenantDailyUsagesValidateBeforeCall(tenantId, yearNumber, monthNumber, dayNumber, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getTenantDailyUsagesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double yearNumber, @javax.annotation.Nullable Double monthNumber, @javax.annotation.Nullable Double dayNumber, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTenantDailyUsagesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double yearNumber, @javax.annotation.Nullable Double monthNumber, @javax.annotation.Nullable Double dayNumber, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTenantDailyUsagesValidateBeforeCall(tenantId, yearNumber, monthNumber, dayNumber, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -13948,6 +14254,7 @@ public APIgetTenantDailyUsagesRequest skip(@javax.annotation.Nullable Double ski Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -13956,32 +14263,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenantDailyUsages request - * @return GetTenantDailyUsages200Response + * @return GetTenantDailyUsagesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTenantDailyUsages200Response execute() throws ApiException { - ApiResponse localVarResp = getTenantDailyUsagesWithHttpInfo(tenantId, yearNumber, monthNumber, dayNumber, skip); + public GetTenantDailyUsagesResponse execute() throws ApiException { + ApiResponse localVarResp = getTenantDailyUsagesWithHttpInfo(tenantId, yearNumber, monthNumber, dayNumber, skip); return localVarResp.getData(); } /** * Execute getTenantDailyUsages request with HTTP info returned - * @return ApiResponse<GetTenantDailyUsages200Response> + * @return ApiResponse<GetTenantDailyUsagesResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getTenantDailyUsagesWithHttpInfo(tenantId, yearNumber, monthNumber, dayNumber, skip); } @@ -13995,9 +14304,10 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getTenantDailyUsagesAsync(tenantId, yearNumber, monthNumber, dayNumber, skip, _callback); } } @@ -14012,6 +14322,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTenantDailyUsagesRequest getTenantDailyUsages(@javax.annotation.Nonnull String tenantId) { @@ -14083,16 +14394,16 @@ private okhttp3.Call getTenantPackageValidateBeforeCall(@javax.annotation.Nonnul } - private ApiResponse getTenantPackageWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse getTenantPackageWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = getTenantPackageValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getTenantPackageAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTenantPackageAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTenantPackageValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -14118,6 +14429,7 @@ private APIgetTenantPackageRequest(@javax.annotation.Nonnull String tenantId, @j Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -14126,32 +14438,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenantPackage request - * @return GetTenantPackage200Response + * @return GetTenantPackageResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTenantPackage200Response execute() throws ApiException { - ApiResponse localVarResp = getTenantPackageWithHttpInfo(tenantId, id); + public GetTenantPackageResponse execute() throws ApiException { + ApiResponse localVarResp = getTenantPackageWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getTenantPackage request with HTTP info returned - * @return ApiResponse<GetTenantPackage200Response> + * @return ApiResponse<GetTenantPackageResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getTenantPackageWithHttpInfo(tenantId, id); } @@ -14165,9 +14479,10 @@ public ApiResponse executeWithHttpInfo() throws Api Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getTenantPackageAsync(tenantId, id, _callback); } } @@ -14183,6 +14498,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTenantPackageRequest getTenantPackage(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -14252,16 +14568,16 @@ private okhttp3.Call getTenantPackagesValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse getTenantPackagesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip) throws ApiException { + private ApiResponse getTenantPackagesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip) throws ApiException { okhttp3.Call localVarCall = getTenantPackagesValidateBeforeCall(tenantId, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getTenantPackagesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTenantPackagesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTenantPackagesValidateBeforeCall(tenantId, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -14296,6 +14612,7 @@ public APIgetTenantPackagesRequest skip(@javax.annotation.Nullable Double skip) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -14304,32 +14621,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenantPackages request - * @return GetTenantPackages200Response + * @return GetTenantPackagesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTenantPackages200Response execute() throws ApiException { - ApiResponse localVarResp = getTenantPackagesWithHttpInfo(tenantId, skip); + public GetTenantPackagesResponse execute() throws ApiException { + ApiResponse localVarResp = getTenantPackagesWithHttpInfo(tenantId, skip); return localVarResp.getData(); } /** * Execute getTenantPackages request with HTTP info returned - * @return ApiResponse<GetTenantPackages200Response> + * @return ApiResponse<GetTenantPackagesResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getTenantPackagesWithHttpInfo(tenantId, skip); } @@ -14343,9 +14662,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getTenantPackagesAsync(tenantId, skip, _callback); } } @@ -14360,6 +14680,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTenantPackagesRequest getTenantPackages(@javax.annotation.Nonnull String tenantId) { @@ -14431,16 +14752,16 @@ private okhttp3.Call getTenantUserValidateBeforeCall(@javax.annotation.Nonnull S } - private ApiResponse getTenantUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse getTenantUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = getTenantUserValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getTenantUserAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTenantUserAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTenantUserValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -14466,6 +14787,7 @@ private APIgetTenantUserRequest(@javax.annotation.Nonnull String tenantId, @java Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -14474,32 +14796,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenantUser request - * @return GetTenantUser200Response + * @return GetTenantUserResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTenantUser200Response execute() throws ApiException { - ApiResponse localVarResp = getTenantUserWithHttpInfo(tenantId, id); + public GetTenantUserResponse execute() throws ApiException { + ApiResponse localVarResp = getTenantUserWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getTenantUser request with HTTP info returned - * @return ApiResponse<GetTenantUser200Response> + * @return ApiResponse<GetTenantUserResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getTenantUserWithHttpInfo(tenantId, id); } @@ -14513,9 +14837,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExc Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getTenantUserAsync(tenantId, id, _callback); } } @@ -14531,6 +14856,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTenantUserRequest getTenantUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -14600,16 +14926,16 @@ private okhttp3.Call getTenantUsersValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse getTenantUsersWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip) throws ApiException { + private ApiResponse getTenantUsersWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip) throws ApiException { okhttp3.Call localVarCall = getTenantUsersValidateBeforeCall(tenantId, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getTenantUsersAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTenantUsersAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTenantUsersValidateBeforeCall(tenantId, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -14644,6 +14970,7 @@ public APIgetTenantUsersRequest skip(@javax.annotation.Nullable Double skip) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -14652,32 +14979,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenantUsers request - * @return GetTenantUsers200Response + * @return GetTenantUsersResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTenantUsers200Response execute() throws ApiException { - ApiResponse localVarResp = getTenantUsersWithHttpInfo(tenantId, skip); + public GetTenantUsersResponse execute() throws ApiException { + ApiResponse localVarResp = getTenantUsersWithHttpInfo(tenantId, skip); return localVarResp.getData(); } /** * Execute getTenantUsers request with HTTP info returned - * @return ApiResponse<GetTenantUsers200Response> + * @return ApiResponse<GetTenantUsersResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getTenantUsersWithHttpInfo(tenantId, skip); } @@ -14691,9 +15020,10 @@ public ApiResponse executeWithHttpInfo() throws ApiEx Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getTenantUsersAsync(tenantId, skip, _callback); } } @@ -14708,6 +15038,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTenantUsersRequest getTenantUsers(@javax.annotation.Nonnull String tenantId) { @@ -14781,16 +15112,16 @@ private okhttp3.Call getTenantsValidateBeforeCall(@javax.annotation.Nonnull Stri } - private ApiResponse getTenantsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String meta, @javax.annotation.Nullable Double skip) throws ApiException { + private ApiResponse getTenantsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String meta, @javax.annotation.Nullable Double skip) throws ApiException { okhttp3.Call localVarCall = getTenantsValidateBeforeCall(tenantId, meta, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getTenantsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String meta, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTenantsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String meta, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTenantsValidateBeforeCall(tenantId, meta, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -14837,6 +15168,7 @@ public APIgetTenantsRequest skip(@javax.annotation.Nullable Double skip) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -14845,32 +15177,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenants request - * @return GetTenants200Response + * @return GetTenantsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTenants200Response execute() throws ApiException { - ApiResponse localVarResp = getTenantsWithHttpInfo(tenantId, meta, skip); + public GetTenantsResponse execute() throws ApiException { + ApiResponse localVarResp = getTenantsWithHttpInfo(tenantId, meta, skip); return localVarResp.getData(); } /** * Execute getTenants request with HTTP info returned - * @return ApiResponse<GetTenants200Response> + * @return ApiResponse<GetTenantsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getTenantsWithHttpInfo(tenantId, meta, skip); } @@ -14884,9 +15218,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getTenantsAsync(tenantId, meta, skip, _callback); } } @@ -14901,6 +15236,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTenantsRequest getTenants(@javax.annotation.Nonnull String tenantId) { @@ -14976,16 +15312,16 @@ private okhttp3.Call getTicketValidateBeforeCall(@javax.annotation.Nonnull Strin } - private ApiResponse getTicketWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String userId) throws ApiException { + private ApiResponse getTicketWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String userId) throws ApiException { okhttp3.Call localVarCall = getTicketValidateBeforeCall(tenantId, id, userId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getTicketAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTicketAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTicketValidateBeforeCall(tenantId, id, userId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -15023,6 +15359,7 @@ public APIgetTicketRequest userId(@javax.annotation.Nullable String userId) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -15031,32 +15368,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTicket request - * @return GetTicket200Response + * @return GetTicketResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTicket200Response execute() throws ApiException { - ApiResponse localVarResp = getTicketWithHttpInfo(tenantId, id, userId); + public GetTicketResponse execute() throws ApiException { + ApiResponse localVarResp = getTicketWithHttpInfo(tenantId, id, userId); return localVarResp.getData(); } /** * Execute getTicket request with HTTP info returned - * @return ApiResponse<GetTicket200Response> + * @return ApiResponse<GetTicketResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getTicketWithHttpInfo(tenantId, id, userId); } @@ -15070,9 +15409,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getTicketAsync(tenantId, id, userId, _callback); } } @@ -15088,6 +15428,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTicketRequest getTicket(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -15169,16 +15510,16 @@ private okhttp3.Call getTicketsValidateBeforeCall(@javax.annotation.Nonnull Stri } - private ApiResponse getTicketsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable Double state, @javax.annotation.Nullable Double skip, @javax.annotation.Nullable Double limit) throws ApiException { + private ApiResponse getTicketsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable Double state, @javax.annotation.Nullable Double skip, @javax.annotation.Nullable Double limit) throws ApiException { okhttp3.Call localVarCall = getTicketsValidateBeforeCall(tenantId, userId, state, skip, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getTicketsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable Double state, @javax.annotation.Nullable Double skip, @javax.annotation.Nullable Double limit, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTicketsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable Double state, @javax.annotation.Nullable Double skip, @javax.annotation.Nullable Double limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTicketsValidateBeforeCall(tenantId, userId, state, skip, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -15249,6 +15590,7 @@ public APIgetTicketsRequest limit(@javax.annotation.Nullable Double limit) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -15257,32 +15599,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTickets request - * @return GetTickets200Response + * @return GetTicketsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTickets200Response execute() throws ApiException { - ApiResponse localVarResp = getTicketsWithHttpInfo(tenantId, userId, state, skip, limit); + public GetTicketsResponse execute() throws ApiException { + ApiResponse localVarResp = getTicketsWithHttpInfo(tenantId, userId, state, skip, limit); return localVarResp.getData(); } /** * Execute getTickets request with HTTP info returned - * @return ApiResponse<GetTickets200Response> + * @return ApiResponse<GetTicketsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getTicketsWithHttpInfo(tenantId, userId, state, skip, limit); } @@ -15296,9 +15640,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getTicketsAsync(tenantId, userId, state, skip, limit, _callback); } } @@ -15313,6 +15658,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTicketsRequest getTickets(@javax.annotation.Nonnull String tenantId) { @@ -15384,16 +15730,16 @@ private okhttp3.Call getUserValidateBeforeCall(@javax.annotation.Nonnull String } - private ApiResponse getUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse getUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = getUserValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUserAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -15419,6 +15765,7 @@ private APIgetUserRequest(@javax.annotation.Nonnull String tenantId, @javax.anno Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -15427,32 +15774,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUser request - * @return GetUser200Response + * @return GetUserResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetUser200Response execute() throws ApiException { - ApiResponse localVarResp = getUserWithHttpInfo(tenantId, id); + public GetUserResponse execute() throws ApiException { + ApiResponse localVarResp = getUserWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getUser request with HTTP info returned - * @return ApiResponse<GetUser200Response> + * @return ApiResponse<GetUserResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getUserWithHttpInfo(tenantId, id); } @@ -15466,9 +15815,10 @@ public ApiResponse executeWithHttpInfo() throws ApiException Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getUserAsync(tenantId, id, _callback); } } @@ -15484,6 +15834,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetUserRequest getUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -15555,16 +15906,16 @@ private okhttp3.Call getUserBadgeValidateBeforeCall(@javax.annotation.Nonnull St } - private ApiResponse getUserBadgeWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse getUserBadgeWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = getUserBadgeValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUserBadgeAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserBadgeAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserBadgeValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -15590,6 +15941,7 @@ private APIgetUserBadgeRequest(@javax.annotation.Nonnull String tenantId, @javax Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -15598,32 +15950,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBadge request - * @return GetUserBadge200Response + * @return APIGetUserBadgeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetUserBadge200Response execute() throws ApiException { - ApiResponse localVarResp = getUserBadgeWithHttpInfo(tenantId, id); + public APIGetUserBadgeResponse execute() throws ApiException { + ApiResponse localVarResp = getUserBadgeWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getUserBadge request with HTTP info returned - * @return ApiResponse<GetUserBadge200Response> + * @return ApiResponse<APIGetUserBadgeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getUserBadgeWithHttpInfo(tenantId, id); } @@ -15637,9 +15991,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExce Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getUserBadgeAsync(tenantId, id, _callback); } } @@ -15655,6 +16010,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetUserBadgeRequest getUserBadge(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -15726,16 +16082,16 @@ private okhttp3.Call getUserBadgeProgressByIdValidateBeforeCall(@javax.annotatio } - private ApiResponse getUserBadgeProgressByIdWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { + private ApiResponse getUserBadgeProgressByIdWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) throws ApiException { okhttp3.Call localVarCall = getUserBadgeProgressByIdValidateBeforeCall(tenantId, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUserBadgeProgressByIdAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserBadgeProgressByIdAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserBadgeProgressByIdValidateBeforeCall(tenantId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -15761,6 +16117,7 @@ private APIgetUserBadgeProgressByIdRequest(@javax.annotation.Nonnull String tena Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -15769,32 +16126,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBadgeProgressById request - * @return GetUserBadgeProgressById200Response + * @return APIGetUserBadgeProgressResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetUserBadgeProgressById200Response execute() throws ApiException { - ApiResponse localVarResp = getUserBadgeProgressByIdWithHttpInfo(tenantId, id); + public APIGetUserBadgeProgressResponse execute() throws ApiException { + ApiResponse localVarResp = getUserBadgeProgressByIdWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getUserBadgeProgressById request with HTTP info returned - * @return ApiResponse<GetUserBadgeProgressById200Response> + * @return ApiResponse<APIGetUserBadgeProgressResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getUserBadgeProgressByIdWithHttpInfo(tenantId, id); } @@ -15808,9 +16167,10 @@ public ApiResponse executeWithHttpInfo() th Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getUserBadgeProgressByIdAsync(tenantId, id, _callback); } } @@ -15826,6 +16186,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetUserBadgeProgressByIdRequest getUserBadgeProgressById(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -15897,16 +16258,16 @@ private okhttp3.Call getUserBadgeProgressByUserIdValidateBeforeCall(@javax.annot } - private ApiResponse getUserBadgeProgressByUserIdWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String userId) throws ApiException { + private ApiResponse getUserBadgeProgressByUserIdWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String userId) throws ApiException { okhttp3.Call localVarCall = getUserBadgeProgressByUserIdValidateBeforeCall(tenantId, userId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUserBadgeProgressByUserIdAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String userId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserBadgeProgressByUserIdAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String userId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserBadgeProgressByUserIdValidateBeforeCall(tenantId, userId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -15932,6 +16293,7 @@ private APIgetUserBadgeProgressByUserIdRequest(@javax.annotation.Nonnull String Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -15940,32 +16302,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBadgeProgressByUserId request - * @return GetUserBadgeProgressById200Response + * @return APIGetUserBadgeProgressResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetUserBadgeProgressById200Response execute() throws ApiException { - ApiResponse localVarResp = getUserBadgeProgressByUserIdWithHttpInfo(tenantId, userId); + public APIGetUserBadgeProgressResponse execute() throws ApiException { + ApiResponse localVarResp = getUserBadgeProgressByUserIdWithHttpInfo(tenantId, userId); return localVarResp.getData(); } /** * Execute getUserBadgeProgressByUserId request with HTTP info returned - * @return ApiResponse<GetUserBadgeProgressById200Response> + * @return ApiResponse<APIGetUserBadgeProgressResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getUserBadgeProgressByUserIdWithHttpInfo(tenantId, userId); } @@ -15979,9 +16343,10 @@ public ApiResponse executeWithHttpInfo() th Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getUserBadgeProgressByUserIdAsync(tenantId, userId, _callback); } } @@ -15997,6 +16362,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetUserBadgeProgressByUserIdRequest getUserBadgeProgressByUserId(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String userId) { @@ -16074,16 +16440,16 @@ private okhttp3.Call getUserBadgeProgressListValidateBeforeCall(@javax.annotatio } - private ApiResponse getUserBadgeProgressListWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable Double limit, @javax.annotation.Nullable Double skip) throws ApiException { + private ApiResponse getUserBadgeProgressListWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable Double limit, @javax.annotation.Nullable Double skip) throws ApiException { okhttp3.Call localVarCall = getUserBadgeProgressListValidateBeforeCall(tenantId, userId, limit, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUserBadgeProgressListAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable Double limit, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserBadgeProgressListAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable Double limit, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserBadgeProgressListValidateBeforeCall(tenantId, userId, limit, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -16142,6 +16508,7 @@ public APIgetUserBadgeProgressListRequest skip(@javax.annotation.Nullable Double Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -16150,32 +16517,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBadgeProgressList request - * @return GetUserBadgeProgressList200Response + * @return APIGetUserBadgeProgressListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetUserBadgeProgressList200Response execute() throws ApiException { - ApiResponse localVarResp = getUserBadgeProgressListWithHttpInfo(tenantId, userId, limit, skip); + public APIGetUserBadgeProgressListResponse execute() throws ApiException { + ApiResponse localVarResp = getUserBadgeProgressListWithHttpInfo(tenantId, userId, limit, skip); return localVarResp.getData(); } /** * Execute getUserBadgeProgressList request with HTTP info returned - * @return ApiResponse<GetUserBadgeProgressList200Response> + * @return ApiResponse<APIGetUserBadgeProgressListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getUserBadgeProgressListWithHttpInfo(tenantId, userId, limit, skip); } @@ -16189,9 +16558,10 @@ public ApiResponse executeWithHttpInfo() th Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getUserBadgeProgressListAsync(tenantId, userId, limit, skip, _callback); } } @@ -16206,6 +16576,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetUserBadgeProgressListRequest getUserBadgeProgressList(@javax.annotation.Nonnull String tenantId) { @@ -16295,16 +16666,16 @@ private okhttp3.Call getUserBadgesValidateBeforeCall(@javax.annotation.Nonnull S } - private ApiResponse getUserBadgesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String badgeId, @javax.annotation.Nullable Double type, @javax.annotation.Nullable Boolean displayedOnComments, @javax.annotation.Nullable Double limit, @javax.annotation.Nullable Double skip) throws ApiException { + private ApiResponse getUserBadgesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String badgeId, @javax.annotation.Nullable Double type, @javax.annotation.Nullable Boolean displayedOnComments, @javax.annotation.Nullable Double limit, @javax.annotation.Nullable Double skip) throws ApiException { okhttp3.Call localVarCall = getUserBadgesValidateBeforeCall(tenantId, userId, badgeId, type, displayedOnComments, limit, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUserBadgesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String badgeId, @javax.annotation.Nullable Double type, @javax.annotation.Nullable Boolean displayedOnComments, @javax.annotation.Nullable Double limit, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserBadgesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String badgeId, @javax.annotation.Nullable Double type, @javax.annotation.Nullable Boolean displayedOnComments, @javax.annotation.Nullable Double limit, @javax.annotation.Nullable Double skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserBadgesValidateBeforeCall(tenantId, userId, badgeId, type, displayedOnComments, limit, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -16399,6 +16770,7 @@ public APIgetUserBadgesRequest skip(@javax.annotation.Nullable Double skip) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -16407,32 +16779,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBadges request - * @return GetUserBadges200Response + * @return APIGetUserBadgesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetUserBadges200Response execute() throws ApiException { - ApiResponse localVarResp = getUserBadgesWithHttpInfo(tenantId, userId, badgeId, type, displayedOnComments, limit, skip); + public APIGetUserBadgesResponse execute() throws ApiException { + ApiResponse localVarResp = getUserBadgesWithHttpInfo(tenantId, userId, badgeId, type, displayedOnComments, limit, skip); return localVarResp.getData(); } /** * Execute getUserBadges request with HTTP info returned - * @return ApiResponse<GetUserBadges200Response> + * @return ApiResponse<APIGetUserBadgesResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getUserBadgesWithHttpInfo(tenantId, userId, badgeId, type, displayedOnComments, limit, skip); } @@ -16446,9 +16820,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExc Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getUserBadgesAsync(tenantId, userId, badgeId, type, displayedOnComments, limit, skip, _callback); } } @@ -16463,6 +16838,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetUserBadgesRequest getUserBadges(@javax.annotation.Nonnull String tenantId) { @@ -16537,16 +16913,16 @@ private okhttp3.Call getVotesValidateBeforeCall(@javax.annotation.Nonnull String } - private ApiResponse getVotesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) throws ApiException { + private ApiResponse getVotesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) throws ApiException { okhttp3.Call localVarCall = getVotesValidateBeforeCall(tenantId, urlId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getVotesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getVotesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getVotesValidateBeforeCall(tenantId, urlId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -16572,6 +16948,7 @@ private APIgetVotesRequest(@javax.annotation.Nonnull String tenantId, @javax.ann Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -16580,32 +16957,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getVotes request - * @return GetVotes200Response + * @return GetVotesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetVotes200Response execute() throws ApiException { - ApiResponse localVarResp = getVotesWithHttpInfo(tenantId, urlId); + public GetVotesResponse execute() throws ApiException { + ApiResponse localVarResp = getVotesWithHttpInfo(tenantId, urlId); return localVarResp.getData(); } /** * Execute getVotes request with HTTP info returned - * @return ApiResponse<GetVotes200Response> + * @return ApiResponse<GetVotesResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getVotesWithHttpInfo(tenantId, urlId); } @@ -16619,9 +16998,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getVotesAsync(tenantId, urlId, _callback); } } @@ -16637,6 +17017,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetVotesRequest getVotes(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -16719,16 +17100,16 @@ private okhttp3.Call getVotesForUserValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse getVotesForUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId) throws ApiException { + private ApiResponse getVotesForUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId) throws ApiException { okhttp3.Call localVarCall = getVotesForUserValidateBeforeCall(tenantId, urlId, userId, anonUserId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getVotesForUserAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getVotesForUserAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getVotesForUserValidateBeforeCall(tenantId, urlId, userId, anonUserId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -16778,6 +17159,7 @@ public APIgetVotesForUserRequest anonUserId(@javax.annotation.Nullable String an Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -16786,32 +17168,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getVotesForUser request - * @return GetVotesForUser200Response + * @return GetVotesForUserResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetVotesForUser200Response execute() throws ApiException { - ApiResponse localVarResp = getVotesForUserWithHttpInfo(tenantId, urlId, userId, anonUserId); + public GetVotesForUserResponse execute() throws ApiException { + ApiResponse localVarResp = getVotesForUserWithHttpInfo(tenantId, urlId, userId, anonUserId); return localVarResp.getData(); } /** * Execute getVotesForUser request with HTTP info returned - * @return ApiResponse<GetVotesForUser200Response> + * @return ApiResponse<GetVotesForUserResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getVotesForUserWithHttpInfo(tenantId, urlId, userId, anonUserId); } @@ -16825,9 +17209,10 @@ public ApiResponse executeWithHttpInfo() throws ApiE Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getVotesForUserAsync(tenantId, urlId, userId, anonUserId, _callback); } } @@ -16843,6 +17228,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetVotesForUserRequest getVotesForUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -16920,16 +17306,16 @@ private okhttp3.Call patchDomainConfigValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse patchDomainConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domainToUpdate, @javax.annotation.Nonnull PatchDomainConfigParams patchDomainConfigParams) throws ApiException { + private ApiResponse patchDomainConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domainToUpdate, @javax.annotation.Nonnull PatchDomainConfigParams patchDomainConfigParams) throws ApiException { okhttp3.Call localVarCall = patchDomainConfigValidateBeforeCall(tenantId, domainToUpdate, patchDomainConfigParams, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchDomainConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domainToUpdate, @javax.annotation.Nonnull PatchDomainConfigParams patchDomainConfigParams, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchDomainConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domainToUpdate, @javax.annotation.Nonnull PatchDomainConfigParams patchDomainConfigParams, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchDomainConfigValidateBeforeCall(tenantId, domainToUpdate, patchDomainConfigParams, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -16966,7 +17352,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute patchDomainConfig request - * @return GetDomainConfig200Response + * @return PatchDomainConfigResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -16975,14 +17361,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
200 Ok -
*/ - public GetDomainConfig200Response execute() throws ApiException { - ApiResponse localVarResp = patchDomainConfigWithHttpInfo(tenantId, domainToUpdate, patchDomainConfigParams); + public PatchDomainConfigResponse execute() throws ApiException { + ApiResponse localVarResp = patchDomainConfigWithHttpInfo(tenantId, domainToUpdate, patchDomainConfigParams); return localVarResp.getData(); } /** * Execute patchDomainConfig request with HTTP info returned - * @return ApiResponse<GetDomainConfig200Response> + * @return ApiResponse<PatchDomainConfigResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -16991,7 +17377,7 @@ public GetDomainConfig200Response execute() throws ApiException {
200 Ok -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return patchDomainConfigWithHttpInfo(tenantId, domainToUpdate, patchDomainConfigParams); } @@ -17007,7 +17393,7 @@ public ApiResponse executeWithHttpInfo() throws ApiE 200 Ok - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchDomainConfigAsync(tenantId, domainToUpdate, patchDomainConfigParams, _callback); } } @@ -17091,16 +17477,16 @@ private okhttp3.Call patchHashTagValidateBeforeCall(@javax.annotation.Nonnull St } - private ApiResponse patchHashTagWithHttpInfo(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody) throws ApiException { + private ApiResponse patchHashTagWithHttpInfo(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody) throws ApiException { okhttp3.Call localVarCall = patchHashTagValidateBeforeCall(tag, tenantId, updateHashTagBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchHashTagAsync(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchHashTagAsync(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchHashTagValidateBeforeCall(tag, tenantId, updateHashTagBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -17147,6 +17533,7 @@ public APIpatchHashTagRequest updateHashTagBody(@javax.annotation.Nullable Updat Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -17155,32 +17542,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute patchHashTag request - * @return PatchHashTag200Response + * @return UpdateHashTagResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public PatchHashTag200Response execute() throws ApiException { - ApiResponse localVarResp = patchHashTagWithHttpInfo(tag, tenantId, updateHashTagBody); + public UpdateHashTagResponse execute() throws ApiException { + ApiResponse localVarResp = patchHashTagWithHttpInfo(tag, tenantId, updateHashTagBody); return localVarResp.getData(); } /** * Execute patchHashTag request with HTTP info returned - * @return ApiResponse<PatchHashTag200Response> + * @return ApiResponse<UpdateHashTagResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return patchHashTagWithHttpInfo(tag, tenantId, updateHashTagBody); } @@ -17194,9 +17583,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExce Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchHashTagAsync(tag, tenantId, updateHashTagBody, _callback); } } @@ -17211,6 +17601,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpatchHashTagRequest patchHashTag(@javax.annotation.Nonnull String tag) { @@ -17666,16 +18057,16 @@ private okhttp3.Call putDomainConfigValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse putDomainConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domainToUpdate, @javax.annotation.Nonnull UpdateDomainConfigParams updateDomainConfigParams) throws ApiException { + private ApiResponse putDomainConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domainToUpdate, @javax.annotation.Nonnull UpdateDomainConfigParams updateDomainConfigParams) throws ApiException { okhttp3.Call localVarCall = putDomainConfigValidateBeforeCall(tenantId, domainToUpdate, updateDomainConfigParams, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call putDomainConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domainToUpdate, @javax.annotation.Nonnull UpdateDomainConfigParams updateDomainConfigParams, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putDomainConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domainToUpdate, @javax.annotation.Nonnull UpdateDomainConfigParams updateDomainConfigParams, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = putDomainConfigValidateBeforeCall(tenantId, domainToUpdate, updateDomainConfigParams, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -17712,7 +18103,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute putDomainConfig request - * @return GetDomainConfig200Response + * @return PutDomainConfigResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -17721,14 +18112,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
200 Ok -
*/ - public GetDomainConfig200Response execute() throws ApiException { - ApiResponse localVarResp = putDomainConfigWithHttpInfo(tenantId, domainToUpdate, updateDomainConfigParams); + public PutDomainConfigResponse execute() throws ApiException { + ApiResponse localVarResp = putDomainConfigWithHttpInfo(tenantId, domainToUpdate, updateDomainConfigParams); return localVarResp.getData(); } /** * Execute putDomainConfig request with HTTP info returned - * @return ApiResponse<GetDomainConfig200Response> + * @return ApiResponse<PutDomainConfigResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -17737,7 +18128,7 @@ public GetDomainConfig200Response execute() throws ApiException {
200 Ok -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return putDomainConfigWithHttpInfo(tenantId, domainToUpdate, updateDomainConfigParams); } @@ -17753,7 +18144,7 @@ public ApiResponse executeWithHttpInfo() throws ApiE 200 Ok - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return putDomainConfigAsync(tenantId, domainToUpdate, updateDomainConfigParams, _callback); } } @@ -18042,16 +18433,16 @@ private okhttp3.Call renderEmailTemplateValidateBeforeCall(@javax.annotation.Non } - private ApiResponse renderEmailTemplateWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull RenderEmailTemplateBody renderEmailTemplateBody, @javax.annotation.Nullable String locale) throws ApiException { + private ApiResponse renderEmailTemplateWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull RenderEmailTemplateBody renderEmailTemplateBody, @javax.annotation.Nullable String locale) throws ApiException { okhttp3.Call localVarCall = renderEmailTemplateValidateBeforeCall(tenantId, renderEmailTemplateBody, locale, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call renderEmailTemplateAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull RenderEmailTemplateBody renderEmailTemplateBody, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + private okhttp3.Call renderEmailTemplateAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull RenderEmailTemplateBody renderEmailTemplateBody, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = renderEmailTemplateValidateBeforeCall(tenantId, renderEmailTemplateBody, locale, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -18089,6 +18480,7 @@ public APIrenderEmailTemplateRequest locale(@javax.annotation.Nullable String lo Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -18097,32 +18489,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute renderEmailTemplate request - * @return RenderEmailTemplate200Response + * @return RenderEmailTemplateResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public RenderEmailTemplate200Response execute() throws ApiException { - ApiResponse localVarResp = renderEmailTemplateWithHttpInfo(tenantId, renderEmailTemplateBody, locale); + public RenderEmailTemplateResponse execute() throws ApiException { + ApiResponse localVarResp = renderEmailTemplateWithHttpInfo(tenantId, renderEmailTemplateBody, locale); return localVarResp.getData(); } /** * Execute renderEmailTemplate request with HTTP info returned - * @return ApiResponse<RenderEmailTemplate200Response> + * @return ApiResponse<RenderEmailTemplateResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return renderEmailTemplateWithHttpInfo(tenantId, renderEmailTemplateBody, locale); } @@ -18136,9 +18530,10 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return renderEmailTemplateAsync(tenantId, renderEmailTemplateBody, locale, _callback); } } @@ -18154,6 +18549,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIrenderEmailTemplateRequest renderEmailTemplate(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull RenderEmailTemplateBody renderEmailTemplateBody) { @@ -18231,16 +18627,16 @@ private okhttp3.Call replaceTenantPackageValidateBeforeCall(@javax.annotation.No } - private ApiResponse replaceTenantPackageWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull ReplaceTenantPackageBody replaceTenantPackageBody) throws ApiException { + private ApiResponse replaceTenantPackageWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull ReplaceTenantPackageBody replaceTenantPackageBody) throws ApiException { okhttp3.Call localVarCall = replaceTenantPackageValidateBeforeCall(tenantId, id, replaceTenantPackageBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceTenantPackageAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull ReplaceTenantPackageBody replaceTenantPackageBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceTenantPackageAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull ReplaceTenantPackageBody replaceTenantPackageBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceTenantPackageValidateBeforeCall(tenantId, id, replaceTenantPackageBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -18269,6 +18665,7 @@ private APIreplaceTenantPackageRequest(@javax.annotation.Nonnull String tenantId Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -18277,32 +18674,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute replaceTenantPackage request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = replaceTenantPackageWithHttpInfo(tenantId, id, replaceTenantPackageBody); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = replaceTenantPackageWithHttpInfo(tenantId, id, replaceTenantPackageBody); return localVarResp.getData(); } /** * Execute replaceTenantPackage request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return replaceTenantPackageWithHttpInfo(tenantId, id, replaceTenantPackageBody); } @@ -18316,9 +18715,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceTenantPackageAsync(tenantId, id, replaceTenantPackageBody, _callback); } } @@ -18335,6 +18735,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIreplaceTenantPackageRequest replaceTenantPackage(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull ReplaceTenantPackageBody replaceTenantPackageBody) { @@ -18416,16 +18817,16 @@ private okhttp3.Call replaceTenantUserValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse replaceTenantUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull ReplaceTenantUserBody replaceTenantUserBody, @javax.annotation.Nullable String updateComments) throws ApiException { + private ApiResponse replaceTenantUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull ReplaceTenantUserBody replaceTenantUserBody, @javax.annotation.Nullable String updateComments) throws ApiException { okhttp3.Call localVarCall = replaceTenantUserValidateBeforeCall(tenantId, id, replaceTenantUserBody, updateComments, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceTenantUserAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull ReplaceTenantUserBody replaceTenantUserBody, @javax.annotation.Nullable String updateComments, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceTenantUserAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull ReplaceTenantUserBody replaceTenantUserBody, @javax.annotation.Nullable String updateComments, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceTenantUserValidateBeforeCall(tenantId, id, replaceTenantUserBody, updateComments, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -18466,6 +18867,7 @@ public APIreplaceTenantUserRequest updateComments(@javax.annotation.Nullable Str Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -18474,32 +18876,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute replaceTenantUser request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = replaceTenantUserWithHttpInfo(tenantId, id, replaceTenantUserBody, updateComments); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = replaceTenantUserWithHttpInfo(tenantId, id, replaceTenantUserBody, updateComments); return localVarResp.getData(); } /** * Execute replaceTenantUser request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return replaceTenantUserWithHttpInfo(tenantId, id, replaceTenantUserBody, updateComments); } @@ -18513,9 +18917,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceTenantUserAsync(tenantId, id, replaceTenantUserBody, updateComments, _callback); } } @@ -18532,6 +18937,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIreplaceTenantUserRequest replaceTenantUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull ReplaceTenantUserBody replaceTenantUserBody) { @@ -18619,16 +19025,16 @@ private okhttp3.Call saveCommentValidateBeforeCall(@javax.annotation.Nonnull Str } - private ApiResponse saveCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateCommentParams createCommentParams, @javax.annotation.Nullable Boolean isLive, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean sendEmails, @javax.annotation.Nullable Boolean populateNotifications) throws ApiException { + private ApiResponse saveCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateCommentParams createCommentParams, @javax.annotation.Nullable Boolean isLive, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean sendEmails, @javax.annotation.Nullable Boolean populateNotifications) throws ApiException { okhttp3.Call localVarCall = saveCommentValidateBeforeCall(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call saveCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateCommentParams createCommentParams, @javax.annotation.Nullable Boolean isLive, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean sendEmails, @javax.annotation.Nullable Boolean populateNotifications, final ApiCallback _callback) throws ApiException { + private okhttp3.Call saveCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateCommentParams createCommentParams, @javax.annotation.Nullable Boolean isLive, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean sendEmails, @javax.annotation.Nullable Boolean populateNotifications, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = saveCommentValidateBeforeCall(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -18702,6 +19108,7 @@ public APIsaveCommentRequest populateNotifications(@javax.annotation.Nullable Bo Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -18710,32 +19117,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute saveComment request - * @return SaveComment200Response + * @return APISaveCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public SaveComment200Response execute() throws ApiException { - ApiResponse localVarResp = saveCommentWithHttpInfo(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications); + public APISaveCommentResponse execute() throws ApiException { + ApiResponse localVarResp = saveCommentWithHttpInfo(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications); return localVarResp.getData(); } /** * Execute saveComment request with HTTP info returned - * @return ApiResponse<SaveComment200Response> + * @return ApiResponse<APISaveCommentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return saveCommentWithHttpInfo(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications); } @@ -18749,9 +19158,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return saveCommentAsync(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications, _callback); } } @@ -18767,6 +19177,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIsaveCommentRequest saveComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateCommentParams createCommentParams) { @@ -18854,16 +19265,16 @@ private okhttp3.Call saveCommentsBulkValidateBeforeCall(@javax.annotation.Nonnul } - private ApiResponse> saveCommentsBulkWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List createCommentParams, @javax.annotation.Nullable Boolean isLive, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean sendEmails, @javax.annotation.Nullable Boolean populateNotifications) throws ApiException { + private ApiResponse> saveCommentsBulkWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List createCommentParams, @javax.annotation.Nullable Boolean isLive, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean sendEmails, @javax.annotation.Nullable Boolean populateNotifications) throws ApiException { okhttp3.Call localVarCall = saveCommentsBulkValidateBeforeCall(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications, null); - Type localVarReturnType = new TypeToken>(){}.getType(); + Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call saveCommentsBulkAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List createCommentParams, @javax.annotation.Nullable Boolean isLive, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean sendEmails, @javax.annotation.Nullable Boolean populateNotifications, final ApiCallback> _callback) throws ApiException { + private okhttp3.Call saveCommentsBulkAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List createCommentParams, @javax.annotation.Nullable Boolean isLive, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean sendEmails, @javax.annotation.Nullable Boolean populateNotifications, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = saveCommentsBulkValidateBeforeCall(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications, _callback); - Type localVarReturnType = new TypeToken>(){}.getType(); + Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -18945,7 +19356,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute saveCommentsBulk request - * @return List<SaveComment200Response> + * @return List<SaveCommentsBulkResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -18954,14 +19365,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
200 Ok -
*/ - public List execute() throws ApiException { - ApiResponse> localVarResp = saveCommentsBulkWithHttpInfo(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications); + public List execute() throws ApiException { + ApiResponse> localVarResp = saveCommentsBulkWithHttpInfo(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications); return localVarResp.getData(); } /** * Execute saveCommentsBulk request with HTTP info returned - * @return ApiResponse<List<SaveComment200Response>> + * @return ApiResponse<List<SaveCommentsBulkResponse>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -18970,7 +19381,7 @@ public List execute() throws ApiException {
200 Ok -
*/ - public ApiResponse> executeWithHttpInfo() throws ApiException { + public ApiResponse> executeWithHttpInfo() throws ApiException { return saveCommentsBulkWithHttpInfo(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications); } @@ -18986,7 +19397,7 @@ public ApiResponse> executeWithHttpInfo() throws Ap 200 Ok - */ - public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { return saveCommentsBulkAsync(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications, _callback); } } @@ -19082,16 +19493,16 @@ private okhttp3.Call sendInviteValidateBeforeCall(@javax.annotation.Nonnull Stri } - private ApiResponse sendInviteWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull String fromName) throws ApiException { + private ApiResponse sendInviteWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull String fromName) throws ApiException { okhttp3.Call localVarCall = sendInviteValidateBeforeCall(tenantId, id, fromName, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call sendInviteAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull String fromName, final ApiCallback _callback) throws ApiException { + private okhttp3.Call sendInviteAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull String fromName, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = sendInviteValidateBeforeCall(tenantId, id, fromName, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -19120,6 +19531,7 @@ private APIsendInviteRequest(@javax.annotation.Nonnull String tenantId, @javax.a Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -19128,32 +19540,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute sendInvite request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = sendInviteWithHttpInfo(tenantId, id, fromName); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = sendInviteWithHttpInfo(tenantId, id, fromName); return localVarResp.getData(); } /** * Execute sendInvite request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return sendInviteWithHttpInfo(tenantId, id, fromName); } @@ -19167,9 +19581,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return sendInviteAsync(tenantId, id, fromName, _callback); } } @@ -19186,6 +19601,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIsendInviteRequest sendInvite(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull String fromName) { @@ -19261,16 +19677,16 @@ private okhttp3.Call sendLoginLinkValidateBeforeCall(@javax.annotation.Nonnull S } - private ApiResponse sendLoginLinkWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String redirectURL) throws ApiException { + private ApiResponse sendLoginLinkWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String redirectURL) throws ApiException { okhttp3.Call localVarCall = sendLoginLinkValidateBeforeCall(tenantId, id, redirectURL, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call sendLoginLinkAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String redirectURL, final ApiCallback _callback) throws ApiException { + private okhttp3.Call sendLoginLinkAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String redirectURL, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = sendLoginLinkValidateBeforeCall(tenantId, id, redirectURL, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -19308,6 +19724,7 @@ public APIsendLoginLinkRequest redirectURL(@javax.annotation.Nullable String red Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -19316,32 +19733,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute sendLoginLink request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = sendLoginLinkWithHttpInfo(tenantId, id, redirectURL); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = sendLoginLinkWithHttpInfo(tenantId, id, redirectURL); return localVarResp.getData(); } /** * Execute sendLoginLink request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return sendLoginLinkWithHttpInfo(tenantId, id, redirectURL); } @@ -19355,9 +19774,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return sendLoginLinkAsync(tenantId, id, redirectURL, _callback); } } @@ -19373,6 +19793,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIsendLoginLinkRequest sendLoginLink(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -19458,16 +19879,16 @@ private okhttp3.Call unBlockUserFromCommentValidateBeforeCall(@javax.annotation. } - private ApiResponse unBlockUserFromCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UnBlockFromCommentParams unBlockFromCommentParams, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId) throws ApiException { + private ApiResponse unBlockUserFromCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UnBlockFromCommentParams unBlockFromCommentParams, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId) throws ApiException { okhttp3.Call localVarCall = unBlockUserFromCommentValidateBeforeCall(tenantId, id, unBlockFromCommentParams, userId, anonUserId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call unBlockUserFromCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UnBlockFromCommentParams unBlockFromCommentParams, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call unBlockUserFromCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UnBlockFromCommentParams unBlockFromCommentParams, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = unBlockUserFromCommentValidateBeforeCall(tenantId, id, unBlockFromCommentParams, userId, anonUserId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -19520,6 +19941,7 @@ public APIunBlockUserFromCommentRequest anonUserId(@javax.annotation.Nullable St Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -19528,32 +19950,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute unBlockUserFromComment request - * @return UnBlockCommentPublic200Response + * @return UnblockSuccess * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public UnBlockCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = unBlockUserFromCommentWithHttpInfo(tenantId, id, unBlockFromCommentParams, userId, anonUserId); + public UnblockSuccess execute() throws ApiException { + ApiResponse localVarResp = unBlockUserFromCommentWithHttpInfo(tenantId, id, unBlockFromCommentParams, userId, anonUserId); return localVarResp.getData(); } /** * Execute unBlockUserFromComment request with HTTP info returned - * @return ApiResponse<UnBlockCommentPublic200Response> + * @return ApiResponse<UnblockSuccess> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return unBlockUserFromCommentWithHttpInfo(tenantId, id, unBlockFromCommentParams, userId, anonUserId); } @@ -19567,9 +19991,10 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return unBlockUserFromCommentAsync(tenantId, id, unBlockFromCommentParams, userId, anonUserId, _callback); } } @@ -19586,6 +20011,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIunBlockUserFromCommentRequest unBlockUserFromComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UnBlockFromCommentParams unBlockFromCommentParams) { @@ -19665,16 +20091,16 @@ private okhttp3.Call unFlagCommentValidateBeforeCall(@javax.annotation.Nonnull S } - private ApiResponse unFlagCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId) throws ApiException { + private ApiResponse unFlagCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId) throws ApiException { okhttp3.Call localVarCall = unFlagCommentValidateBeforeCall(tenantId, id, userId, anonUserId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call unFlagCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call unFlagCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String anonUserId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = unFlagCommentValidateBeforeCall(tenantId, id, userId, anonUserId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -19724,6 +20150,7 @@ public APIunFlagCommentRequest anonUserId(@javax.annotation.Nullable String anon Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -19732,32 +20159,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute unFlagComment request - * @return FlagComment200Response + * @return FlagCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagComment200Response execute() throws ApiException { - ApiResponse localVarResp = unFlagCommentWithHttpInfo(tenantId, id, userId, anonUserId); + public FlagCommentResponse execute() throws ApiException { + ApiResponse localVarResp = unFlagCommentWithHttpInfo(tenantId, id, userId, anonUserId); return localVarResp.getData(); } /** * Execute unFlagComment request with HTTP info returned - * @return ApiResponse<FlagComment200Response> + * @return ApiResponse<FlagCommentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return unFlagCommentWithHttpInfo(tenantId, id, userId, anonUserId); } @@ -19771,9 +20200,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return unFlagCommentAsync(tenantId, id, userId, anonUserId, _callback); } } @@ -19789,6 +20219,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIunFlagCommentRequest unFlagComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -19878,16 +20309,16 @@ private okhttp3.Call updateCommentValidateBeforeCall(@javax.annotation.Nonnull S } - private ApiResponse updateCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdatableCommentParams updatableCommentParams, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean isLive) throws ApiException { + private ApiResponse updateCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdatableCommentParams updatableCommentParams, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean isLive) throws ApiException { okhttp3.Call localVarCall = updateCommentValidateBeforeCall(tenantId, id, updatableCommentParams, contextUserId, doSpamCheck, isLive, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updateCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdatableCommentParams updatableCommentParams, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean isLive, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdatableCommentParams updatableCommentParams, @javax.annotation.Nullable String contextUserId, @javax.annotation.Nullable Boolean doSpamCheck, @javax.annotation.Nullable Boolean isLive, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateCommentValidateBeforeCall(tenantId, id, updatableCommentParams, contextUserId, doSpamCheck, isLive, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -19952,6 +20383,7 @@ public APIupdateCommentRequest isLive(@javax.annotation.Nullable Boolean isLive) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -19960,32 +20392,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateComment request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = updateCommentWithHttpInfo(tenantId, id, updatableCommentParams, contextUserId, doSpamCheck, isLive); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = updateCommentWithHttpInfo(tenantId, id, updatableCommentParams, contextUserId, doSpamCheck, isLive); return localVarResp.getData(); } /** * Execute updateComment request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return updateCommentWithHttpInfo(tenantId, id, updatableCommentParams, contextUserId, doSpamCheck, isLive); } @@ -19999,9 +20433,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateCommentAsync(tenantId, id, updatableCommentParams, contextUserId, doSpamCheck, isLive, _callback); } } @@ -20018,6 +20453,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIupdateCommentRequest updateComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdatableCommentParams updatableCommentParams) { @@ -20095,16 +20531,16 @@ private okhttp3.Call updateEmailTemplateValidateBeforeCall(@javax.annotation.Non } - private ApiResponse updateEmailTemplateWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateEmailTemplateBody updateEmailTemplateBody) throws ApiException { + private ApiResponse updateEmailTemplateWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateEmailTemplateBody updateEmailTemplateBody) throws ApiException { okhttp3.Call localVarCall = updateEmailTemplateValidateBeforeCall(tenantId, id, updateEmailTemplateBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updateEmailTemplateAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateEmailTemplateBody updateEmailTemplateBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateEmailTemplateAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateEmailTemplateBody updateEmailTemplateBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateEmailTemplateValidateBeforeCall(tenantId, id, updateEmailTemplateBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -20133,6 +20569,7 @@ private APIupdateEmailTemplateRequest(@javax.annotation.Nonnull String tenantId, Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -20141,32 +20578,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateEmailTemplate request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = updateEmailTemplateWithHttpInfo(tenantId, id, updateEmailTemplateBody); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = updateEmailTemplateWithHttpInfo(tenantId, id, updateEmailTemplateBody); return localVarResp.getData(); } /** * Execute updateEmailTemplate request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return updateEmailTemplateWithHttpInfo(tenantId, id, updateEmailTemplateBody); } @@ -20180,9 +20619,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateEmailTemplateAsync(tenantId, id, updateEmailTemplateBody, _callback); } } @@ -20199,6 +20639,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIupdateEmailTemplateRequest updateEmailTemplate(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateEmailTemplateBody updateEmailTemplateBody) { @@ -20276,16 +20717,16 @@ private okhttp3.Call updateFeedPostValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse updateFeedPostWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull FeedPost feedPost) throws ApiException { + private ApiResponse updateFeedPostWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull FeedPost feedPost) throws ApiException { okhttp3.Call localVarCall = updateFeedPostValidateBeforeCall(tenantId, id, feedPost, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updateFeedPostAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull FeedPost feedPost, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateFeedPostAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull FeedPost feedPost, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateFeedPostValidateBeforeCall(tenantId, id, feedPost, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -20314,6 +20755,7 @@ private APIupdateFeedPostRequest(@javax.annotation.Nonnull String tenantId, @jav Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -20322,32 +20764,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateFeedPost request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = updateFeedPostWithHttpInfo(tenantId, id, feedPost); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = updateFeedPostWithHttpInfo(tenantId, id, feedPost); return localVarResp.getData(); } /** * Execute updateFeedPost request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return updateFeedPostWithHttpInfo(tenantId, id, feedPost); } @@ -20361,9 +20805,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateFeedPostAsync(tenantId, id, feedPost, _callback); } } @@ -20380,6 +20825,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIupdateFeedPostRequest updateFeedPost(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull FeedPost feedPost) { @@ -20457,16 +20903,16 @@ private okhttp3.Call updateModeratorValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse updateModeratorWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateModeratorBody updateModeratorBody) throws ApiException { + private ApiResponse updateModeratorWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateModeratorBody updateModeratorBody) throws ApiException { okhttp3.Call localVarCall = updateModeratorValidateBeforeCall(tenantId, id, updateModeratorBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updateModeratorAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateModeratorBody updateModeratorBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateModeratorAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateModeratorBody updateModeratorBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateModeratorValidateBeforeCall(tenantId, id, updateModeratorBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -20495,6 +20941,7 @@ private APIupdateModeratorRequest(@javax.annotation.Nonnull String tenantId, @ja Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -20503,32 +20950,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateModerator request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = updateModeratorWithHttpInfo(tenantId, id, updateModeratorBody); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = updateModeratorWithHttpInfo(tenantId, id, updateModeratorBody); return localVarResp.getData(); } /** * Execute updateModerator request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return updateModeratorWithHttpInfo(tenantId, id, updateModeratorBody); } @@ -20542,9 +20991,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateModeratorAsync(tenantId, id, updateModeratorBody, _callback); } } @@ -20561,6 +21011,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIupdateModeratorRequest updateModerator(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateModeratorBody updateModeratorBody) { @@ -20642,16 +21093,16 @@ private okhttp3.Call updateNotificationValidateBeforeCall(@javax.annotation.Nonn } - private ApiResponse updateNotificationWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateNotificationBody updateNotificationBody, @javax.annotation.Nullable String userId) throws ApiException { + private ApiResponse updateNotificationWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateNotificationBody updateNotificationBody, @javax.annotation.Nullable String userId) throws ApiException { okhttp3.Call localVarCall = updateNotificationValidateBeforeCall(tenantId, id, updateNotificationBody, userId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updateNotificationAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateNotificationBody updateNotificationBody, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateNotificationAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateNotificationBody updateNotificationBody, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateNotificationValidateBeforeCall(tenantId, id, updateNotificationBody, userId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -20692,6 +21143,7 @@ public APIupdateNotificationRequest userId(@javax.annotation.Nullable String use Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -20700,32 +21152,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateNotification request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = updateNotificationWithHttpInfo(tenantId, id, updateNotificationBody, userId); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = updateNotificationWithHttpInfo(tenantId, id, updateNotificationBody, userId); return localVarResp.getData(); } /** * Execute updateNotification request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return updateNotificationWithHttpInfo(tenantId, id, updateNotificationBody, userId); } @@ -20739,9 +21193,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateNotificationAsync(tenantId, id, updateNotificationBody, userId, _callback); } } @@ -20758,6 +21213,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIupdateNotificationRequest updateNotification(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateNotificationBody updateNotificationBody) { @@ -20835,16 +21291,16 @@ private okhttp3.Call updateQuestionConfigValidateBeforeCall(@javax.annotation.No } - private ApiResponse updateQuestionConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateQuestionConfigBody updateQuestionConfigBody) throws ApiException { + private ApiResponse updateQuestionConfigWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateQuestionConfigBody updateQuestionConfigBody) throws ApiException { okhttp3.Call localVarCall = updateQuestionConfigValidateBeforeCall(tenantId, id, updateQuestionConfigBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updateQuestionConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateQuestionConfigBody updateQuestionConfigBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateQuestionConfigAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateQuestionConfigBody updateQuestionConfigBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateQuestionConfigValidateBeforeCall(tenantId, id, updateQuestionConfigBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -20873,6 +21329,7 @@ private APIupdateQuestionConfigRequest(@javax.annotation.Nonnull String tenantId Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -20881,32 +21338,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateQuestionConfig request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = updateQuestionConfigWithHttpInfo(tenantId, id, updateQuestionConfigBody); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = updateQuestionConfigWithHttpInfo(tenantId, id, updateQuestionConfigBody); return localVarResp.getData(); } /** * Execute updateQuestionConfig request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return updateQuestionConfigWithHttpInfo(tenantId, id, updateQuestionConfigBody); } @@ -20920,9 +21379,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateQuestionConfigAsync(tenantId, id, updateQuestionConfigBody, _callback); } } @@ -20939,6 +21399,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIupdateQuestionConfigRequest updateQuestionConfig(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateQuestionConfigBody updateQuestionConfigBody) { @@ -21016,16 +21477,16 @@ private okhttp3.Call updateQuestionResultValidateBeforeCall(@javax.annotation.No } - private ApiResponse updateQuestionResultWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateQuestionResultBody updateQuestionResultBody) throws ApiException { + private ApiResponse updateQuestionResultWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateQuestionResultBody updateQuestionResultBody) throws ApiException { okhttp3.Call localVarCall = updateQuestionResultValidateBeforeCall(tenantId, id, updateQuestionResultBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updateQuestionResultAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateQuestionResultBody updateQuestionResultBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateQuestionResultAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateQuestionResultBody updateQuestionResultBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateQuestionResultValidateBeforeCall(tenantId, id, updateQuestionResultBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -21054,6 +21515,7 @@ private APIupdateQuestionResultRequest(@javax.annotation.Nonnull String tenantId Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -21062,32 +21524,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateQuestionResult request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = updateQuestionResultWithHttpInfo(tenantId, id, updateQuestionResultBody); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = updateQuestionResultWithHttpInfo(tenantId, id, updateQuestionResultBody); return localVarResp.getData(); } /** * Execute updateQuestionResult request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return updateQuestionResultWithHttpInfo(tenantId, id, updateQuestionResultBody); } @@ -21101,9 +21565,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateQuestionResultAsync(tenantId, id, updateQuestionResultBody, _callback); } } @@ -21120,6 +21585,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIupdateQuestionResultRequest updateQuestionResult(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateQuestionResultBody updateQuestionResultBody) { @@ -21394,16 +21860,16 @@ private okhttp3.Call updateTenantValidateBeforeCall(@javax.annotation.Nonnull St } - private ApiResponse updateTenantWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateTenantBody updateTenantBody) throws ApiException { + private ApiResponse updateTenantWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateTenantBody updateTenantBody) throws ApiException { okhttp3.Call localVarCall = updateTenantValidateBeforeCall(tenantId, id, updateTenantBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updateTenantAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateTenantBody updateTenantBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateTenantAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateTenantBody updateTenantBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateTenantValidateBeforeCall(tenantId, id, updateTenantBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -21432,6 +21898,7 @@ private APIupdateTenantRequest(@javax.annotation.Nonnull String tenantId, @javax Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -21440,32 +21907,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateTenant request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = updateTenantWithHttpInfo(tenantId, id, updateTenantBody); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = updateTenantWithHttpInfo(tenantId, id, updateTenantBody); return localVarResp.getData(); } /** * Execute updateTenant request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return updateTenantWithHttpInfo(tenantId, id, updateTenantBody); } @@ -21479,9 +21948,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateTenantAsync(tenantId, id, updateTenantBody, _callback); } } @@ -21498,6 +21968,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIupdateTenantRequest updateTenant(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateTenantBody updateTenantBody) { @@ -21575,16 +22046,16 @@ private okhttp3.Call updateTenantPackageValidateBeforeCall(@javax.annotation.Non } - private ApiResponse updateTenantPackageWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateTenantPackageBody updateTenantPackageBody) throws ApiException { + private ApiResponse updateTenantPackageWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateTenantPackageBody updateTenantPackageBody) throws ApiException { okhttp3.Call localVarCall = updateTenantPackageValidateBeforeCall(tenantId, id, updateTenantPackageBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updateTenantPackageAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateTenantPackageBody updateTenantPackageBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateTenantPackageAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateTenantPackageBody updateTenantPackageBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateTenantPackageValidateBeforeCall(tenantId, id, updateTenantPackageBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -21613,6 +22084,7 @@ private APIupdateTenantPackageRequest(@javax.annotation.Nonnull String tenantId, Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -21621,32 +22093,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateTenantPackage request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = updateTenantPackageWithHttpInfo(tenantId, id, updateTenantPackageBody); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = updateTenantPackageWithHttpInfo(tenantId, id, updateTenantPackageBody); return localVarResp.getData(); } /** * Execute updateTenantPackage request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return updateTenantPackageWithHttpInfo(tenantId, id, updateTenantPackageBody); } @@ -21660,9 +22134,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateTenantPackageAsync(tenantId, id, updateTenantPackageBody, _callback); } } @@ -21679,6 +22154,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIupdateTenantPackageRequest updateTenantPackage(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateTenantPackageBody updateTenantPackageBody) { @@ -21760,16 +22236,16 @@ private okhttp3.Call updateTenantUserValidateBeforeCall(@javax.annotation.Nonnul } - private ApiResponse updateTenantUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateTenantUserBody updateTenantUserBody, @javax.annotation.Nullable String updateComments) throws ApiException { + private ApiResponse updateTenantUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateTenantUserBody updateTenantUserBody, @javax.annotation.Nullable String updateComments) throws ApiException { okhttp3.Call localVarCall = updateTenantUserValidateBeforeCall(tenantId, id, updateTenantUserBody, updateComments, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updateTenantUserAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateTenantUserBody updateTenantUserBody, @javax.annotation.Nullable String updateComments, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateTenantUserAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateTenantUserBody updateTenantUserBody, @javax.annotation.Nullable String updateComments, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateTenantUserValidateBeforeCall(tenantId, id, updateTenantUserBody, updateComments, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -21810,6 +22286,7 @@ public APIupdateTenantUserRequest updateComments(@javax.annotation.Nullable Stri Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -21818,32 +22295,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateTenantUser request - * @return FlagCommentPublic200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = updateTenantUserWithHttpInfo(tenantId, id, updateTenantUserBody, updateComments); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = updateTenantUserWithHttpInfo(tenantId, id, updateTenantUserBody, updateComments); return localVarResp.getData(); } /** * Execute updateTenantUser request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return updateTenantUserWithHttpInfo(tenantId, id, updateTenantUserBody, updateComments); } @@ -21857,9 +22336,10 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateTenantUserAsync(tenantId, id, updateTenantUserBody, updateComments, _callback); } } @@ -21876,6 +22356,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIupdateTenantUserRequest updateTenantUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateTenantUserBody updateTenantUserBody) { @@ -21953,16 +22434,16 @@ private okhttp3.Call updateUserBadgeValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse updateUserBadgeWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateUserBadgeParams updateUserBadgeParams) throws ApiException { + private ApiResponse updateUserBadgeWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateUserBadgeParams updateUserBadgeParams) throws ApiException { okhttp3.Call localVarCall = updateUserBadgeValidateBeforeCall(tenantId, id, updateUserBadgeParams, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updateUserBadgeAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateUserBadgeParams updateUserBadgeParams, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateUserBadgeAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateUserBadgeParams updateUserBadgeParams, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateUserBadgeValidateBeforeCall(tenantId, id, updateUserBadgeParams, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -21991,6 +22472,7 @@ private APIupdateUserBadgeRequest(@javax.annotation.Nonnull String tenantId, @ja Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -21999,32 +22481,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateUserBadge request - * @return UpdateUserBadge200Response + * @return APIEmptySuccessResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public UpdateUserBadge200Response execute() throws ApiException { - ApiResponse localVarResp = updateUserBadgeWithHttpInfo(tenantId, id, updateUserBadgeParams); + public APIEmptySuccessResponse execute() throws ApiException { + ApiResponse localVarResp = updateUserBadgeWithHttpInfo(tenantId, id, updateUserBadgeParams); return localVarResp.getData(); } /** * Execute updateUserBadge request with HTTP info returned - * @return ApiResponse<UpdateUserBadge200Response> + * @return ApiResponse<APIEmptySuccessResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return updateUserBadgeWithHttpInfo(tenantId, id, updateUserBadgeParams); } @@ -22038,9 +22522,10 @@ public ApiResponse executeWithHttpInfo() throws ApiE Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateUserBadgeAsync(tenantId, id, updateUserBadgeParams, _callback); } } @@ -22057,6 +22542,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIupdateUserBadgeRequest updateUserBadge(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateUserBadgeParams updateUserBadgeParams) { diff --git a/client/src/main/java/com/fastcomments/api/ModerationApi.java b/client/src/main/java/com/fastcomments/api/ModerationApi.java new file mode 100644 index 00000000..c6475fb1 --- /dev/null +++ b/client/src/main/java/com/fastcomments/api/ModerationApi.java @@ -0,0 +1,8724 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.api; + +import com.fastcomments.invoker.ApiCallback; +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.invoker.ApiResponse; +import com.fastcomments.invoker.Configuration; +import com.fastcomments.invoker.Pair; +import com.fastcomments.invoker.ProgressRequestBody; +import com.fastcomments.invoker.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.fastcomments.model.APIEmptyResponse; +import com.fastcomments.model.APIError; +import com.fastcomments.model.APIModerateGetUserBanPreferencesResponse; +import com.fastcomments.model.AdjustCommentVotesParams; +import com.fastcomments.model.AdjustVotesResponse; +import com.fastcomments.model.AwardUserBadgeResponse; +import com.fastcomments.model.BanUserFromCommentResult; +import com.fastcomments.model.BanUserUndoParams; +import com.fastcomments.model.BulkPreBanParams; +import com.fastcomments.model.BulkPreBanSummary; +import com.fastcomments.model.CommentsByIdsParams; +import com.fastcomments.model.GetBannedUsersCountResponse; +import com.fastcomments.model.GetBannedUsersFromCommentResponse; +import com.fastcomments.model.GetCommentBanStatusResponse; +import com.fastcomments.model.GetCommentTextResponse; +import com.fastcomments.model.GetTenantManualBadgesResponse; +import com.fastcomments.model.GetUserInternalProfileResponse; +import com.fastcomments.model.GetUserManualBadgesResponse; +import com.fastcomments.model.GetUserTrustFactorResponse; +import com.fastcomments.model.ModerationAPIChildCommentsResponse; +import com.fastcomments.model.ModerationAPICommentResponse; +import com.fastcomments.model.ModerationAPICountCommentsResponse; +import com.fastcomments.model.ModerationAPIGetCommentIdsResponse; +import com.fastcomments.model.ModerationAPIGetCommentsResponse; +import com.fastcomments.model.ModerationAPIGetLogsResponse; +import com.fastcomments.model.ModerationCommentSearchResponse; +import com.fastcomments.model.ModerationExportResponse; +import com.fastcomments.model.ModerationExportStatusResponse; +import com.fastcomments.model.ModerationPageSearchResponse; +import com.fastcomments.model.ModerationSiteSearchResponse; +import com.fastcomments.model.ModerationSuggestResponse; +import com.fastcomments.model.ModerationUserSearchResponse; +import com.fastcomments.model.PostRemoveCommentResponse; +import com.fastcomments.model.PreBanSummary; +import com.fastcomments.model.RemoveUserBadgeResponse; +import com.fastcomments.model.SetCommentApprovedResponse; +import com.fastcomments.model.SetCommentTextParams; +import com.fastcomments.model.SetCommentTextResponse; +import com.fastcomments.model.SetUserTrustFactorResponse; +import com.fastcomments.model.VoteDeleteResponse; +import com.fastcomments.model.VoteResponse; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ModerationApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public ModerationApi() { + this(Configuration.getDefaultApiClient()); + } + + public ModerationApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + private okhttp3.Call deleteModerationVoteCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())) + .replace("{" + "voteId" + "}", localVarApiClient.escapeString(voteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteModerationVoteValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling deleteModerationVote(Async)"); + } + + // verify the required parameter 'voteId' is set + if (voteId == null) { + throw new ApiException("Missing the required parameter 'voteId' when calling deleteModerationVote(Async)"); + } + + return deleteModerationVoteCall(commentId, voteId, sso, _callback); + + } + + + private ApiResponse deleteModerationVoteWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = deleteModerationVoteValidateBeforeCall(commentId, voteId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteModerationVoteAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteModerationVoteValidateBeforeCall(commentId, voteId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteModerationVoteRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nonnull + private final String voteId; + @javax.annotation.Nullable + private String sso; + + private APIdeleteModerationVoteRequest(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId) { + this.commentId = commentId; + this.voteId = voteId; + } + + /** + * Set sso + * @param sso (optional) + * @return APIdeleteModerationVoteRequest + */ + public APIdeleteModerationVoteRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for deleteModerationVote + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteModerationVoteCall(commentId, voteId, sso, _callback); + } + + /** + * Execute deleteModerationVote request + * @return VoteDeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public VoteDeleteResponse execute() throws ApiException { + ApiResponse localVarResp = deleteModerationVoteWithHttpInfo(commentId, voteId, sso); + return localVarResp.getData(); + } + + /** + * Execute deleteModerationVote request with HTTP info returned + * @return ApiResponse<VoteDeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteModerationVoteWithHttpInfo(commentId, voteId, sso); + } + + /** + * Execute deleteModerationVote request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteModerationVoteAsync(commentId, voteId, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @param voteId (required) + * @return APIdeleteModerationVoteRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIdeleteModerationVoteRequest deleteModerationVote(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId) { + return new APIdeleteModerationVoteRequest(commentId, voteId); + } + private okhttp3.Call getApiCommentsCall(@javax.annotation.Nullable Double page, @javax.annotation.Nullable Double count, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/api/comments"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (count != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("count", count)); + } + + if (textSearch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("text-search", textSearch)); + } + + if (byIPFromComment != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("byIPFromComment", byIPFromComment)); + } + + if (filters != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("filters", filters)); + } + + if (searchFilters != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("searchFilters", searchFilters)); + } + + if (sorts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sorts", sorts)); + } + + if (demo != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("demo", demo)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getApiCommentsValidateBeforeCall(@javax.annotation.Nullable Double page, @javax.annotation.Nullable Double count, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getApiCommentsCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, _callback); + + } + + + private ApiResponse getApiCommentsWithHttpInfo(@javax.annotation.Nullable Double page, @javax.annotation.Nullable Double count, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getApiCommentsValidateBeforeCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getApiCommentsAsync(@javax.annotation.Nullable Double page, @javax.annotation.Nullable Double count, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getApiCommentsValidateBeforeCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetApiCommentsRequest { + @javax.annotation.Nullable + private Double page; + @javax.annotation.Nullable + private Double count; + @javax.annotation.Nullable + private String textSearch; + @javax.annotation.Nullable + private String byIPFromComment; + @javax.annotation.Nullable + private String filters; + @javax.annotation.Nullable + private String searchFilters; + @javax.annotation.Nullable + private String sorts; + @javax.annotation.Nullable + private Boolean demo; + @javax.annotation.Nullable + private String sso; + + private APIgetApiCommentsRequest() { + } + + /** + * Set page + * @param page (optional) + * @return APIgetApiCommentsRequest + */ + public APIgetApiCommentsRequest page(@javax.annotation.Nullable Double page) { + this.page = page; + return this; + } + + /** + * Set count + * @param count (optional) + * @return APIgetApiCommentsRequest + */ + public APIgetApiCommentsRequest count(@javax.annotation.Nullable Double count) { + this.count = count; + return this; + } + + /** + * Set textSearch + * @param textSearch (optional) + * @return APIgetApiCommentsRequest + */ + public APIgetApiCommentsRequest textSearch(@javax.annotation.Nullable String textSearch) { + this.textSearch = textSearch; + return this; + } + + /** + * Set byIPFromComment + * @param byIPFromComment (optional) + * @return APIgetApiCommentsRequest + */ + public APIgetApiCommentsRequest byIPFromComment(@javax.annotation.Nullable String byIPFromComment) { + this.byIPFromComment = byIPFromComment; + return this; + } + + /** + * Set filters + * @param filters (optional) + * @return APIgetApiCommentsRequest + */ + public APIgetApiCommentsRequest filters(@javax.annotation.Nullable String filters) { + this.filters = filters; + return this; + } + + /** + * Set searchFilters + * @param searchFilters (optional) + * @return APIgetApiCommentsRequest + */ + public APIgetApiCommentsRequest searchFilters(@javax.annotation.Nullable String searchFilters) { + this.searchFilters = searchFilters; + return this; + } + + /** + * Set sorts + * @param sorts (optional) + * @return APIgetApiCommentsRequest + */ + public APIgetApiCommentsRequest sorts(@javax.annotation.Nullable String sorts) { + this.sorts = sorts; + return this; + } + + /** + * Set demo + * @param demo (optional) + * @return APIgetApiCommentsRequest + */ + public APIgetApiCommentsRequest demo(@javax.annotation.Nullable Boolean demo) { + this.demo = demo; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetApiCommentsRequest + */ + public APIgetApiCommentsRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getApiComments + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getApiCommentsCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, _callback); + } + + /** + * Execute getApiComments request + * @return ModerationAPIGetCommentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ModerationAPIGetCommentsResponse execute() throws ApiException { + ApiResponse localVarResp = getApiCommentsWithHttpInfo(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso); + return localVarResp.getData(); + } + + /** + * Execute getApiComments request with HTTP info returned + * @return ApiResponse<ModerationAPIGetCommentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getApiCommentsWithHttpInfo(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso); + } + + /** + * Execute getApiComments request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getApiCommentsAsync(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, _callback); + } + } + + /** + * + * + * @return APIgetApiCommentsRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetApiCommentsRequest getApiComments() { + return new APIgetApiCommentsRequest(); + } + private okhttp3.Call getApiExportStatusCall(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/api/export/status"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (batchJobId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("batchJobId", batchJobId)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getApiExportStatusValidateBeforeCall(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getApiExportStatusCall(batchJobId, sso, _callback); + + } + + + private ApiResponse getApiExportStatusWithHttpInfo(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getApiExportStatusValidateBeforeCall(batchJobId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getApiExportStatusAsync(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getApiExportStatusValidateBeforeCall(batchJobId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetApiExportStatusRequest { + @javax.annotation.Nullable + private String batchJobId; + @javax.annotation.Nullable + private String sso; + + private APIgetApiExportStatusRequest() { + } + + /** + * Set batchJobId + * @param batchJobId (optional) + * @return APIgetApiExportStatusRequest + */ + public APIgetApiExportStatusRequest batchJobId(@javax.annotation.Nullable String batchJobId) { + this.batchJobId = batchJobId; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetApiExportStatusRequest + */ + public APIgetApiExportStatusRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getApiExportStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getApiExportStatusCall(batchJobId, sso, _callback); + } + + /** + * Execute getApiExportStatus request + * @return ModerationExportStatusResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ModerationExportStatusResponse execute() throws ApiException { + ApiResponse localVarResp = getApiExportStatusWithHttpInfo(batchJobId, sso); + return localVarResp.getData(); + } + + /** + * Execute getApiExportStatus request with HTTP info returned + * @return ApiResponse<ModerationExportStatusResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getApiExportStatusWithHttpInfo(batchJobId, sso); + } + + /** + * Execute getApiExportStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getApiExportStatusAsync(batchJobId, sso, _callback); + } + } + + /** + * + * + * @return APIgetApiExportStatusRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetApiExportStatusRequest getApiExportStatus() { + return new APIgetApiExportStatusRequest(); + } + private okhttp3.Call getApiIdsCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/api/ids"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (textSearch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("text-search", textSearch)); + } + + if (byIPFromComment != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("byIPFromComment", byIPFromComment)); + } + + if (filters != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("filters", filters)); + } + + if (searchFilters != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("searchFilters", searchFilters)); + } + + if (afterId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("afterId", afterId)); + } + + if (demo != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("demo", demo)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getApiIdsValidateBeforeCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getApiIdsCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); + + } + + + private ApiResponse getApiIdsWithHttpInfo(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getApiIdsValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getApiIdsAsync(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getApiIdsValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetApiIdsRequest { + @javax.annotation.Nullable + private String textSearch; + @javax.annotation.Nullable + private String byIPFromComment; + @javax.annotation.Nullable + private String filters; + @javax.annotation.Nullable + private String searchFilters; + @javax.annotation.Nullable + private String afterId; + @javax.annotation.Nullable + private Boolean demo; + @javax.annotation.Nullable + private String sso; + + private APIgetApiIdsRequest() { + } + + /** + * Set textSearch + * @param textSearch (optional) + * @return APIgetApiIdsRequest + */ + public APIgetApiIdsRequest textSearch(@javax.annotation.Nullable String textSearch) { + this.textSearch = textSearch; + return this; + } + + /** + * Set byIPFromComment + * @param byIPFromComment (optional) + * @return APIgetApiIdsRequest + */ + public APIgetApiIdsRequest byIPFromComment(@javax.annotation.Nullable String byIPFromComment) { + this.byIPFromComment = byIPFromComment; + return this; + } + + /** + * Set filters + * @param filters (optional) + * @return APIgetApiIdsRequest + */ + public APIgetApiIdsRequest filters(@javax.annotation.Nullable String filters) { + this.filters = filters; + return this; + } + + /** + * Set searchFilters + * @param searchFilters (optional) + * @return APIgetApiIdsRequest + */ + public APIgetApiIdsRequest searchFilters(@javax.annotation.Nullable String searchFilters) { + this.searchFilters = searchFilters; + return this; + } + + /** + * Set afterId + * @param afterId (optional) + * @return APIgetApiIdsRequest + */ + public APIgetApiIdsRequest afterId(@javax.annotation.Nullable String afterId) { + this.afterId = afterId; + return this; + } + + /** + * Set demo + * @param demo (optional) + * @return APIgetApiIdsRequest + */ + public APIgetApiIdsRequest demo(@javax.annotation.Nullable Boolean demo) { + this.demo = demo; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetApiIdsRequest + */ + public APIgetApiIdsRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getApiIds + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getApiIdsCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); + } + + /** + * Execute getApiIds request + * @return ModerationAPIGetCommentIdsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ModerationAPIGetCommentIdsResponse execute() throws ApiException { + ApiResponse localVarResp = getApiIdsWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso); + return localVarResp.getData(); + } + + /** + * Execute getApiIds request with HTTP info returned + * @return ApiResponse<ModerationAPIGetCommentIdsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getApiIdsWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso); + } + + /** + * Execute getApiIds request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getApiIdsAsync(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); + } + } + + /** + * + * + * @return APIgetApiIdsRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetApiIdsRequest getApiIds() { + return new APIgetApiIdsRequest(); + } + private okhttp3.Call getBanUsersFromCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getBanUsersFromCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling getBanUsersFromComment(Async)"); + } + + return getBanUsersFromCommentCall(commentId, sso, _callback); + + } + + + private ApiResponse getBanUsersFromCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getBanUsersFromCommentValidateBeforeCall(commentId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getBanUsersFromCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getBanUsersFromCommentValidateBeforeCall(commentId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetBanUsersFromCommentRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private String sso; + + private APIgetBanUsersFromCommentRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetBanUsersFromCommentRequest + */ + public APIgetBanUsersFromCommentRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getBanUsersFromComment + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getBanUsersFromCommentCall(commentId, sso, _callback); + } + + /** + * Execute getBanUsersFromComment request + * @return GetBannedUsersFromCommentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public GetBannedUsersFromCommentResponse execute() throws ApiException { + ApiResponse localVarResp = getBanUsersFromCommentWithHttpInfo(commentId, sso); + return localVarResp.getData(); + } + + /** + * Execute getBanUsersFromComment request with HTTP info returned + * @return ApiResponse<GetBannedUsersFromCommentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getBanUsersFromCommentWithHttpInfo(commentId, sso); + } + + /** + * Execute getBanUsersFromComment request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getBanUsersFromCommentAsync(commentId, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIgetBanUsersFromCommentRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetBanUsersFromCommentRequest getBanUsersFromComment(@javax.annotation.Nonnull String commentId) { + return new APIgetBanUsersFromCommentRequest(commentId); + } + private okhttp3.Call getCommentBanStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCommentBanStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling getCommentBanStatus(Async)"); + } + + return getCommentBanStatusCall(commentId, sso, _callback); + + } + + + private ApiResponse getCommentBanStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCommentBanStatusValidateBeforeCall(commentId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getCommentBanStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCommentBanStatusValidateBeforeCall(commentId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetCommentBanStatusRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private String sso; + + private APIgetCommentBanStatusRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetCommentBanStatusRequest + */ + public APIgetCommentBanStatusRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getCommentBanStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getCommentBanStatusCall(commentId, sso, _callback); + } + + /** + * Execute getCommentBanStatus request + * @return GetCommentBanStatusResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public GetCommentBanStatusResponse execute() throws ApiException { + ApiResponse localVarResp = getCommentBanStatusWithHttpInfo(commentId, sso); + return localVarResp.getData(); + } + + /** + * Execute getCommentBanStatus request with HTTP info returned + * @return ApiResponse<GetCommentBanStatusResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getCommentBanStatusWithHttpInfo(commentId, sso); + } + + /** + * Execute getCommentBanStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getCommentBanStatusAsync(commentId, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIgetCommentBanStatusRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetCommentBanStatusRequest getCommentBanStatus(@javax.annotation.Nonnull String commentId) { + return new APIgetCommentBanStatusRequest(commentId); + } + private okhttp3.Call getCommentChildrenCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/comment-children/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCommentChildrenValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling getCommentChildren(Async)"); + } + + return getCommentChildrenCall(commentId, sso, _callback); + + } + + + private ApiResponse getCommentChildrenWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCommentChildrenValidateBeforeCall(commentId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getCommentChildrenAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCommentChildrenValidateBeforeCall(commentId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetCommentChildrenRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private String sso; + + private APIgetCommentChildrenRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetCommentChildrenRequest + */ + public APIgetCommentChildrenRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getCommentChildren + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getCommentChildrenCall(commentId, sso, _callback); + } + + /** + * Execute getCommentChildren request + * @return ModerationAPIChildCommentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ModerationAPIChildCommentsResponse execute() throws ApiException { + ApiResponse localVarResp = getCommentChildrenWithHttpInfo(commentId, sso); + return localVarResp.getData(); + } + + /** + * Execute getCommentChildren request with HTTP info returned + * @return ApiResponse<ModerationAPIChildCommentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getCommentChildrenWithHttpInfo(commentId, sso); + } + + /** + * Execute getCommentChildren request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getCommentChildrenAsync(commentId, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIgetCommentChildrenRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetCommentChildrenRequest getCommentChildren(@javax.annotation.Nonnull String commentId) { + return new APIgetCommentChildrenRequest(commentId); + } + private okhttp3.Call getCountCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filter, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/count"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (textSearch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("text-search", textSearch)); + } + + if (byIPFromComment != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("byIPFromComment", byIPFromComment)); + } + + if (filter != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("filter", filter)); + } + + if (searchFilters != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("searchFilters", searchFilters)); + } + + if (demo != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("demo", demo)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCountValidateBeforeCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filter, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getCountCall(textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); + + } + + + private ApiResponse getCountWithHttpInfo(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filter, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCountValidateBeforeCall(textSearch, byIPFromComment, filter, searchFilters, demo, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getCountAsync(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filter, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCountValidateBeforeCall(textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetCountRequest { + @javax.annotation.Nullable + private String textSearch; + @javax.annotation.Nullable + private String byIPFromComment; + @javax.annotation.Nullable + private String filter; + @javax.annotation.Nullable + private String searchFilters; + @javax.annotation.Nullable + private Boolean demo; + @javax.annotation.Nullable + private String sso; + + private APIgetCountRequest() { + } + + /** + * Set textSearch + * @param textSearch (optional) + * @return APIgetCountRequest + */ + public APIgetCountRequest textSearch(@javax.annotation.Nullable String textSearch) { + this.textSearch = textSearch; + return this; + } + + /** + * Set byIPFromComment + * @param byIPFromComment (optional) + * @return APIgetCountRequest + */ + public APIgetCountRequest byIPFromComment(@javax.annotation.Nullable String byIPFromComment) { + this.byIPFromComment = byIPFromComment; + return this; + } + + /** + * Set filter + * @param filter (optional) + * @return APIgetCountRequest + */ + public APIgetCountRequest filter(@javax.annotation.Nullable String filter) { + this.filter = filter; + return this; + } + + /** + * Set searchFilters + * @param searchFilters (optional) + * @return APIgetCountRequest + */ + public APIgetCountRequest searchFilters(@javax.annotation.Nullable String searchFilters) { + this.searchFilters = searchFilters; + return this; + } + + /** + * Set demo + * @param demo (optional) + * @return APIgetCountRequest + */ + public APIgetCountRequest demo(@javax.annotation.Nullable Boolean demo) { + this.demo = demo; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetCountRequest + */ + public APIgetCountRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getCount + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getCountCall(textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); + } + + /** + * Execute getCount request + * @return ModerationAPICountCommentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ModerationAPICountCommentsResponse execute() throws ApiException { + ApiResponse localVarResp = getCountWithHttpInfo(textSearch, byIPFromComment, filter, searchFilters, demo, sso); + return localVarResp.getData(); + } + + /** + * Execute getCount request with HTTP info returned + * @return ApiResponse<ModerationAPICountCommentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getCountWithHttpInfo(textSearch, byIPFromComment, filter, searchFilters, demo, sso); + } + + /** + * Execute getCount request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getCountAsync(textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); + } + } + + /** + * + * + * @return APIgetCountRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetCountRequest getCount() { + return new APIgetCountRequest(); + } + private okhttp3.Call getCountsCall(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/banned-users/counts"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCountsValidateBeforeCall(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getCountsCall(sso, _callback); + + } + + + private ApiResponse getCountsWithHttpInfo(@javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCountsValidateBeforeCall(sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getCountsAsync(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCountsValidateBeforeCall(sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetCountsRequest { + @javax.annotation.Nullable + private String sso; + + private APIgetCountsRequest() { + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetCountsRequest + */ + public APIgetCountsRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getCounts + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getCountsCall(sso, _callback); + } + + /** + * Execute getCounts request + * @return GetBannedUsersCountResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public GetBannedUsersCountResponse execute() throws ApiException { + ApiResponse localVarResp = getCountsWithHttpInfo(sso); + return localVarResp.getData(); + } + + /** + * Execute getCounts request with HTTP info returned + * @return ApiResponse<GetBannedUsersCountResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getCountsWithHttpInfo(sso); + } + + /** + * Execute getCounts request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getCountsAsync(sso, _callback); + } + } + + /** + * + * + * @return APIgetCountsRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetCountsRequest getCounts() { + return new APIgetCountsRequest(); + } + private okhttp3.Call getLogsCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/logs/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getLogsValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling getLogs(Async)"); + } + + return getLogsCall(commentId, sso, _callback); + + } + + + private ApiResponse getLogsWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getLogsValidateBeforeCall(commentId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getLogsAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getLogsValidateBeforeCall(commentId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetLogsRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private String sso; + + private APIgetLogsRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetLogsRequest + */ + public APIgetLogsRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getLogs + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getLogsCall(commentId, sso, _callback); + } + + /** + * Execute getLogs request + * @return ModerationAPIGetLogsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ModerationAPIGetLogsResponse execute() throws ApiException { + ApiResponse localVarResp = getLogsWithHttpInfo(commentId, sso); + return localVarResp.getData(); + } + + /** + * Execute getLogs request with HTTP info returned + * @return ApiResponse<ModerationAPIGetLogsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getLogsWithHttpInfo(commentId, sso); + } + + /** + * Execute getLogs request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getLogsAsync(commentId, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIgetLogsRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetLogsRequest getLogs(@javax.annotation.Nonnull String commentId) { + return new APIgetLogsRequest(commentId); + } + private okhttp3.Call getManualBadgesCall(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/get-manual-badges"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getManualBadgesValidateBeforeCall(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getManualBadgesCall(sso, _callback); + + } + + + private ApiResponse getManualBadgesWithHttpInfo(@javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getManualBadgesValidateBeforeCall(sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getManualBadgesAsync(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getManualBadgesValidateBeforeCall(sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetManualBadgesRequest { + @javax.annotation.Nullable + private String sso; + + private APIgetManualBadgesRequest() { + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetManualBadgesRequest + */ + public APIgetManualBadgesRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getManualBadges + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getManualBadgesCall(sso, _callback); + } + + /** + * Execute getManualBadges request + * @return GetTenantManualBadgesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public GetTenantManualBadgesResponse execute() throws ApiException { + ApiResponse localVarResp = getManualBadgesWithHttpInfo(sso); + return localVarResp.getData(); + } + + /** + * Execute getManualBadges request with HTTP info returned + * @return ApiResponse<GetTenantManualBadgesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getManualBadgesWithHttpInfo(sso); + } + + /** + * Execute getManualBadges request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getManualBadgesAsync(sso, _callback); + } + } + + /** + * + * + * @return APIgetManualBadgesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetManualBadgesRequest getManualBadges() { + return new APIgetManualBadgesRequest(); + } + private okhttp3.Call getManualBadgesForUserCall(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/get-manual-badges-for-user"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (badgesUserId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("badgesUserId", badgesUserId)); + } + + if (commentId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("commentId", commentId)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getManualBadgesForUserValidateBeforeCall(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getManualBadgesForUserCall(badgesUserId, commentId, sso, _callback); + + } + + + private ApiResponse getManualBadgesForUserWithHttpInfo(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getManualBadgesForUserValidateBeforeCall(badgesUserId, commentId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getManualBadgesForUserAsync(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getManualBadgesForUserValidateBeforeCall(badgesUserId, commentId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetManualBadgesForUserRequest { + @javax.annotation.Nullable + private String badgesUserId; + @javax.annotation.Nullable + private String commentId; + @javax.annotation.Nullable + private String sso; + + private APIgetManualBadgesForUserRequest() { + } + + /** + * Set badgesUserId + * @param badgesUserId (optional) + * @return APIgetManualBadgesForUserRequest + */ + public APIgetManualBadgesForUserRequest badgesUserId(@javax.annotation.Nullable String badgesUserId) { + this.badgesUserId = badgesUserId; + return this; + } + + /** + * Set commentId + * @param commentId (optional) + * @return APIgetManualBadgesForUserRequest + */ + public APIgetManualBadgesForUserRequest commentId(@javax.annotation.Nullable String commentId) { + this.commentId = commentId; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetManualBadgesForUserRequest + */ + public APIgetManualBadgesForUserRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getManualBadgesForUser + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getManualBadgesForUserCall(badgesUserId, commentId, sso, _callback); + } + + /** + * Execute getManualBadgesForUser request + * @return GetUserManualBadgesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public GetUserManualBadgesResponse execute() throws ApiException { + ApiResponse localVarResp = getManualBadgesForUserWithHttpInfo(badgesUserId, commentId, sso); + return localVarResp.getData(); + } + + /** + * Execute getManualBadgesForUser request with HTTP info returned + * @return ApiResponse<GetUserManualBadgesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getManualBadgesForUserWithHttpInfo(badgesUserId, commentId, sso); + } + + /** + * Execute getManualBadgesForUser request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getManualBadgesForUserAsync(badgesUserId, commentId, sso, _callback); + } + } + + /** + * + * + * @return APIgetManualBadgesForUserRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetManualBadgesForUserRequest getManualBadgesForUser() { + return new APIgetManualBadgesForUserRequest(); + } + private okhttp3.Call getModerationCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/comment/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (includeEmail != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeEmail", includeEmail)); + } + + if (includeIP != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeIP", includeIP)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getModerationCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling getModerationComment(Async)"); + } + + return getModerationCommentCall(commentId, includeEmail, includeIP, sso, _callback); + + } + + + private ApiResponse getModerationCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getModerationCommentValidateBeforeCall(commentId, includeEmail, includeIP, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getModerationCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getModerationCommentValidateBeforeCall(commentId, includeEmail, includeIP, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetModerationCommentRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private Boolean includeEmail; + @javax.annotation.Nullable + private Boolean includeIP; + @javax.annotation.Nullable + private String sso; + + private APIgetModerationCommentRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set includeEmail + * @param includeEmail (optional) + * @return APIgetModerationCommentRequest + */ + public APIgetModerationCommentRequest includeEmail(@javax.annotation.Nullable Boolean includeEmail) { + this.includeEmail = includeEmail; + return this; + } + + /** + * Set includeIP + * @param includeIP (optional) + * @return APIgetModerationCommentRequest + */ + public APIgetModerationCommentRequest includeIP(@javax.annotation.Nullable Boolean includeIP) { + this.includeIP = includeIP; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetModerationCommentRequest + */ + public APIgetModerationCommentRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getModerationComment + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getModerationCommentCall(commentId, includeEmail, includeIP, sso, _callback); + } + + /** + * Execute getModerationComment request + * @return ModerationAPICommentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ModerationAPICommentResponse execute() throws ApiException { + ApiResponse localVarResp = getModerationCommentWithHttpInfo(commentId, includeEmail, includeIP, sso); + return localVarResp.getData(); + } + + /** + * Execute getModerationComment request with HTTP info returned + * @return ApiResponse<ModerationAPICommentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getModerationCommentWithHttpInfo(commentId, includeEmail, includeIP, sso); + } + + /** + * Execute getModerationComment request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getModerationCommentAsync(commentId, includeEmail, includeIP, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIgetModerationCommentRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetModerationCommentRequest getModerationComment(@javax.annotation.Nonnull String commentId) { + return new APIgetModerationCommentRequest(commentId); + } + private okhttp3.Call getModerationCommentTextCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/get-comment-text/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getModerationCommentTextValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling getModerationCommentText(Async)"); + } + + return getModerationCommentTextCall(commentId, sso, _callback); + + } + + + private ApiResponse getModerationCommentTextWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getModerationCommentTextValidateBeforeCall(commentId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getModerationCommentTextAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getModerationCommentTextValidateBeforeCall(commentId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetModerationCommentTextRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private String sso; + + private APIgetModerationCommentTextRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetModerationCommentTextRequest + */ + public APIgetModerationCommentTextRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getModerationCommentText + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getModerationCommentTextCall(commentId, sso, _callback); + } + + /** + * Execute getModerationCommentText request + * @return GetCommentTextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public GetCommentTextResponse execute() throws ApiException { + ApiResponse localVarResp = getModerationCommentTextWithHttpInfo(commentId, sso); + return localVarResp.getData(); + } + + /** + * Execute getModerationCommentText request with HTTP info returned + * @return ApiResponse<GetCommentTextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getModerationCommentTextWithHttpInfo(commentId, sso); + } + + /** + * Execute getModerationCommentText request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getModerationCommentTextAsync(commentId, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIgetModerationCommentTextRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetModerationCommentTextRequest getModerationCommentText(@javax.annotation.Nonnull String commentId) { + return new APIgetModerationCommentTextRequest(commentId); + } + private okhttp3.Call getPreBanSummaryCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (includeByUserIdAndEmail != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeByUserIdAndEmail", includeByUserIdAndEmail)); + } + + if (includeByIP != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeByIP", includeByIP)); + } + + if (includeByEmailDomain != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeByEmailDomain", includeByEmailDomain)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getPreBanSummaryValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling getPreBanSummary(Async)"); + } + + return getPreBanSummaryCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + + } + + + private ApiResponse getPreBanSummaryWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getPreBanSummaryValidateBeforeCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getPreBanSummaryAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getPreBanSummaryValidateBeforeCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetPreBanSummaryRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private Boolean includeByUserIdAndEmail; + @javax.annotation.Nullable + private Boolean includeByIP; + @javax.annotation.Nullable + private Boolean includeByEmailDomain; + @javax.annotation.Nullable + private String sso; + + private APIgetPreBanSummaryRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set includeByUserIdAndEmail + * @param includeByUserIdAndEmail (optional) + * @return APIgetPreBanSummaryRequest + */ + public APIgetPreBanSummaryRequest includeByUserIdAndEmail(@javax.annotation.Nullable Boolean includeByUserIdAndEmail) { + this.includeByUserIdAndEmail = includeByUserIdAndEmail; + return this; + } + + /** + * Set includeByIP + * @param includeByIP (optional) + * @return APIgetPreBanSummaryRequest + */ + public APIgetPreBanSummaryRequest includeByIP(@javax.annotation.Nullable Boolean includeByIP) { + this.includeByIP = includeByIP; + return this; + } + + /** + * Set includeByEmailDomain + * @param includeByEmailDomain (optional) + * @return APIgetPreBanSummaryRequest + */ + public APIgetPreBanSummaryRequest includeByEmailDomain(@javax.annotation.Nullable Boolean includeByEmailDomain) { + this.includeByEmailDomain = includeByEmailDomain; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetPreBanSummaryRequest + */ + public APIgetPreBanSummaryRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getPreBanSummary + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getPreBanSummaryCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + } + + /** + * Execute getPreBanSummary request + * @return PreBanSummary + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public PreBanSummary execute() throws ApiException { + ApiResponse localVarResp = getPreBanSummaryWithHttpInfo(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); + return localVarResp.getData(); + } + + /** + * Execute getPreBanSummary request with HTTP info returned + * @return ApiResponse<PreBanSummary> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getPreBanSummaryWithHttpInfo(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); + } + + /** + * Execute getPreBanSummary request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getPreBanSummaryAsync(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIgetPreBanSummaryRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetPreBanSummaryRequest getPreBanSummary(@javax.annotation.Nonnull String commentId) { + return new APIgetPreBanSummaryRequest(commentId); + } + private okhttp3.Call getSearchCommentsSummaryCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/search/comments/summary"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (value != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); + } + + if (filters != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("filters", filters)); + } + + if (searchFilters != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("searchFilters", searchFilters)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSearchCommentsSummaryValidateBeforeCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getSearchCommentsSummaryCall(value, filters, searchFilters, sso, _callback); + + } + + + private ApiResponse getSearchCommentsSummaryWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchCommentsSummaryValidateBeforeCall(value, filters, searchFilters, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getSearchCommentsSummaryAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSearchCommentsSummaryValidateBeforeCall(value, filters, searchFilters, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetSearchCommentsSummaryRequest { + @javax.annotation.Nullable + private String value; + @javax.annotation.Nullable + private String filters; + @javax.annotation.Nullable + private String searchFilters; + @javax.annotation.Nullable + private String sso; + + private APIgetSearchCommentsSummaryRequest() { + } + + /** + * Set value + * @param value (optional) + * @return APIgetSearchCommentsSummaryRequest + */ + public APIgetSearchCommentsSummaryRequest value(@javax.annotation.Nullable String value) { + this.value = value; + return this; + } + + /** + * Set filters + * @param filters (optional) + * @return APIgetSearchCommentsSummaryRequest + */ + public APIgetSearchCommentsSummaryRequest filters(@javax.annotation.Nullable String filters) { + this.filters = filters; + return this; + } + + /** + * Set searchFilters + * @param searchFilters (optional) + * @return APIgetSearchCommentsSummaryRequest + */ + public APIgetSearchCommentsSummaryRequest searchFilters(@javax.annotation.Nullable String searchFilters) { + this.searchFilters = searchFilters; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetSearchCommentsSummaryRequest + */ + public APIgetSearchCommentsSummaryRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getSearchCommentsSummary + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getSearchCommentsSummaryCall(value, filters, searchFilters, sso, _callback); + } + + /** + * Execute getSearchCommentsSummary request + * @return ModerationCommentSearchResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ModerationCommentSearchResponse execute() throws ApiException { + ApiResponse localVarResp = getSearchCommentsSummaryWithHttpInfo(value, filters, searchFilters, sso); + return localVarResp.getData(); + } + + /** + * Execute getSearchCommentsSummary request with HTTP info returned + * @return ApiResponse<ModerationCommentSearchResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getSearchCommentsSummaryWithHttpInfo(value, filters, searchFilters, sso); + } + + /** + * Execute getSearchCommentsSummary request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getSearchCommentsSummaryAsync(value, filters, searchFilters, sso, _callback); + } + } + + /** + * + * + * @return APIgetSearchCommentsSummaryRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetSearchCommentsSummaryRequest getSearchCommentsSummary() { + return new APIgetSearchCommentsSummaryRequest(); + } + private okhttp3.Call getSearchPagesCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/search/pages"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (value != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSearchPagesValidateBeforeCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getSearchPagesCall(value, sso, _callback); + + } + + + private ApiResponse getSearchPagesWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchPagesValidateBeforeCall(value, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getSearchPagesAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSearchPagesValidateBeforeCall(value, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetSearchPagesRequest { + @javax.annotation.Nullable + private String value; + @javax.annotation.Nullable + private String sso; + + private APIgetSearchPagesRequest() { + } + + /** + * Set value + * @param value (optional) + * @return APIgetSearchPagesRequest + */ + public APIgetSearchPagesRequest value(@javax.annotation.Nullable String value) { + this.value = value; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetSearchPagesRequest + */ + public APIgetSearchPagesRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getSearchPages + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getSearchPagesCall(value, sso, _callback); + } + + /** + * Execute getSearchPages request + * @return ModerationPageSearchResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ModerationPageSearchResponse execute() throws ApiException { + ApiResponse localVarResp = getSearchPagesWithHttpInfo(value, sso); + return localVarResp.getData(); + } + + /** + * Execute getSearchPages request with HTTP info returned + * @return ApiResponse<ModerationPageSearchResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getSearchPagesWithHttpInfo(value, sso); + } + + /** + * Execute getSearchPages request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getSearchPagesAsync(value, sso, _callback); + } + } + + /** + * + * + * @return APIgetSearchPagesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetSearchPagesRequest getSearchPages() { + return new APIgetSearchPagesRequest(); + } + private okhttp3.Call getSearchSitesCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/search/sites"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (value != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSearchSitesValidateBeforeCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getSearchSitesCall(value, sso, _callback); + + } + + + private ApiResponse getSearchSitesWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchSitesValidateBeforeCall(value, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getSearchSitesAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSearchSitesValidateBeforeCall(value, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetSearchSitesRequest { + @javax.annotation.Nullable + private String value; + @javax.annotation.Nullable + private String sso; + + private APIgetSearchSitesRequest() { + } + + /** + * Set value + * @param value (optional) + * @return APIgetSearchSitesRequest + */ + public APIgetSearchSitesRequest value(@javax.annotation.Nullable String value) { + this.value = value; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetSearchSitesRequest + */ + public APIgetSearchSitesRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getSearchSites + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getSearchSitesCall(value, sso, _callback); + } + + /** + * Execute getSearchSites request + * @return ModerationSiteSearchResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ModerationSiteSearchResponse execute() throws ApiException { + ApiResponse localVarResp = getSearchSitesWithHttpInfo(value, sso); + return localVarResp.getData(); + } + + /** + * Execute getSearchSites request with HTTP info returned + * @return ApiResponse<ModerationSiteSearchResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getSearchSitesWithHttpInfo(value, sso); + } + + /** + * Execute getSearchSites request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getSearchSitesAsync(value, sso, _callback); + } + } + + /** + * + * + * @return APIgetSearchSitesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetSearchSitesRequest getSearchSites() { + return new APIgetSearchSitesRequest(); + } + private okhttp3.Call getSearchSuggestCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/search/suggest"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (textSearch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("text-search", textSearch)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSearchSuggestValidateBeforeCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getSearchSuggestCall(textSearch, sso, _callback); + + } + + + private ApiResponse getSearchSuggestWithHttpInfo(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchSuggestValidateBeforeCall(textSearch, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getSearchSuggestAsync(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSearchSuggestValidateBeforeCall(textSearch, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetSearchSuggestRequest { + @javax.annotation.Nullable + private String textSearch; + @javax.annotation.Nullable + private String sso; + + private APIgetSearchSuggestRequest() { + } + + /** + * Set textSearch + * @param textSearch (optional) + * @return APIgetSearchSuggestRequest + */ + public APIgetSearchSuggestRequest textSearch(@javax.annotation.Nullable String textSearch) { + this.textSearch = textSearch; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetSearchSuggestRequest + */ + public APIgetSearchSuggestRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getSearchSuggest + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getSearchSuggestCall(textSearch, sso, _callback); + } + + /** + * Execute getSearchSuggest request + * @return ModerationSuggestResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ModerationSuggestResponse execute() throws ApiException { + ApiResponse localVarResp = getSearchSuggestWithHttpInfo(textSearch, sso); + return localVarResp.getData(); + } + + /** + * Execute getSearchSuggest request with HTTP info returned + * @return ApiResponse<ModerationSuggestResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getSearchSuggestWithHttpInfo(textSearch, sso); + } + + /** + * Execute getSearchSuggest request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getSearchSuggestAsync(textSearch, sso, _callback); + } + } + + /** + * + * + * @return APIgetSearchSuggestRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetSearchSuggestRequest getSearchSuggest() { + return new APIgetSearchSuggestRequest(); + } + private okhttp3.Call getSearchUsersCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/search/users"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (value != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSearchUsersValidateBeforeCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getSearchUsersCall(value, sso, _callback); + + } + + + private ApiResponse getSearchUsersWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchUsersValidateBeforeCall(value, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getSearchUsersAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSearchUsersValidateBeforeCall(value, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetSearchUsersRequest { + @javax.annotation.Nullable + private String value; + @javax.annotation.Nullable + private String sso; + + private APIgetSearchUsersRequest() { + } + + /** + * Set value + * @param value (optional) + * @return APIgetSearchUsersRequest + */ + public APIgetSearchUsersRequest value(@javax.annotation.Nullable String value) { + this.value = value; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetSearchUsersRequest + */ + public APIgetSearchUsersRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getSearchUsers + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getSearchUsersCall(value, sso, _callback); + } + + /** + * Execute getSearchUsers request + * @return ModerationUserSearchResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ModerationUserSearchResponse execute() throws ApiException { + ApiResponse localVarResp = getSearchUsersWithHttpInfo(value, sso); + return localVarResp.getData(); + } + + /** + * Execute getSearchUsers request with HTTP info returned + * @return ApiResponse<ModerationUserSearchResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getSearchUsersWithHttpInfo(value, sso); + } + + /** + * Execute getSearchUsers request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getSearchUsersAsync(value, sso, _callback); + } + } + + /** + * + * + * @return APIgetSearchUsersRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetSearchUsersRequest getSearchUsers() { + return new APIgetSearchUsersRequest(); + } + private okhttp3.Call getTrustFactorCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/get-trust-factor"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (userId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getTrustFactorValidateBeforeCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getTrustFactorCall(userId, sso, _callback); + + } + + + private ApiResponse getTrustFactorWithHttpInfo(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getTrustFactorValidateBeforeCall(userId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getTrustFactorAsync(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getTrustFactorValidateBeforeCall(userId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetTrustFactorRequest { + @javax.annotation.Nullable + private String userId; + @javax.annotation.Nullable + private String sso; + + private APIgetTrustFactorRequest() { + } + + /** + * Set userId + * @param userId (optional) + * @return APIgetTrustFactorRequest + */ + public APIgetTrustFactorRequest userId(@javax.annotation.Nullable String userId) { + this.userId = userId; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetTrustFactorRequest + */ + public APIgetTrustFactorRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getTrustFactor + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getTrustFactorCall(userId, sso, _callback); + } + + /** + * Execute getTrustFactor request + * @return GetUserTrustFactorResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public GetUserTrustFactorResponse execute() throws ApiException { + ApiResponse localVarResp = getTrustFactorWithHttpInfo(userId, sso); + return localVarResp.getData(); + } + + /** + * Execute getTrustFactor request with HTTP info returned + * @return ApiResponse<GetUserTrustFactorResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getTrustFactorWithHttpInfo(userId, sso); + } + + /** + * Execute getTrustFactor request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getTrustFactorAsync(userId, sso, _callback); + } + } + + /** + * + * + * @return APIgetTrustFactorRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetTrustFactorRequest getTrustFactor() { + return new APIgetTrustFactorRequest(); + } + private okhttp3.Call getUserBanPreferenceCall(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/user-ban-preference"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUserBanPreferenceValidateBeforeCall(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getUserBanPreferenceCall(sso, _callback); + + } + + + private ApiResponse getUserBanPreferenceWithHttpInfo(@javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getUserBanPreferenceValidateBeforeCall(sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getUserBanPreferenceAsync(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUserBanPreferenceValidateBeforeCall(sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetUserBanPreferenceRequest { + @javax.annotation.Nullable + private String sso; + + private APIgetUserBanPreferenceRequest() { + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetUserBanPreferenceRequest + */ + public APIgetUserBanPreferenceRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getUserBanPreference + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getUserBanPreferenceCall(sso, _callback); + } + + /** + * Execute getUserBanPreference request + * @return APIModerateGetUserBanPreferencesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIModerateGetUserBanPreferencesResponse execute() throws ApiException { + ApiResponse localVarResp = getUserBanPreferenceWithHttpInfo(sso); + return localVarResp.getData(); + } + + /** + * Execute getUserBanPreference request with HTTP info returned + * @return ApiResponse<APIModerateGetUserBanPreferencesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getUserBanPreferenceWithHttpInfo(sso); + } + + /** + * Execute getUserBanPreference request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getUserBanPreferenceAsync(sso, _callback); + } + } + + /** + * + * + * @return APIgetUserBanPreferenceRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetUserBanPreferenceRequest getUserBanPreference() { + return new APIgetUserBanPreferenceRequest(); + } + private okhttp3.Call getUserInternalProfileCall(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/get-user-internal-profile"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (commentId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("commentId", commentId)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUserInternalProfileValidateBeforeCall(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getUserInternalProfileCall(commentId, sso, _callback); + + } + + + private ApiResponse getUserInternalProfileWithHttpInfo(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getUserInternalProfileValidateBeforeCall(commentId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getUserInternalProfileAsync(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUserInternalProfileValidateBeforeCall(commentId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetUserInternalProfileRequest { + @javax.annotation.Nullable + private String commentId; + @javax.annotation.Nullable + private String sso; + + private APIgetUserInternalProfileRequest() { + } + + /** + * Set commentId + * @param commentId (optional) + * @return APIgetUserInternalProfileRequest + */ + public APIgetUserInternalProfileRequest commentId(@javax.annotation.Nullable String commentId) { + this.commentId = commentId; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetUserInternalProfileRequest + */ + public APIgetUserInternalProfileRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getUserInternalProfile + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getUserInternalProfileCall(commentId, sso, _callback); + } + + /** + * Execute getUserInternalProfile request + * @return GetUserInternalProfileResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public GetUserInternalProfileResponse execute() throws ApiException { + ApiResponse localVarResp = getUserInternalProfileWithHttpInfo(commentId, sso); + return localVarResp.getData(); + } + + /** + * Execute getUserInternalProfile request with HTTP info returned + * @return ApiResponse<GetUserInternalProfileResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getUserInternalProfileWithHttpInfo(commentId, sso); + } + + /** + * Execute getUserInternalProfile request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getUserInternalProfileAsync(commentId, sso, _callback); + } + } + + /** + * + * + * @return APIgetUserInternalProfileRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetUserInternalProfileRequest getUserInternalProfile() { + return new APIgetUserInternalProfileRequest(); + } + private okhttp3.Call postAdjustCommentVotesCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = adjustCommentVotesParams; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postAdjustCommentVotesValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling postAdjustCommentVotes(Async)"); + } + + // verify the required parameter 'adjustCommentVotesParams' is set + if (adjustCommentVotesParams == null) { + throw new ApiException("Missing the required parameter 'adjustCommentVotesParams' when calling postAdjustCommentVotes(Async)"); + } + + return postAdjustCommentVotesCall(commentId, adjustCommentVotesParams, sso, _callback); + + } + + + private ApiResponse postAdjustCommentVotesWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postAdjustCommentVotesValidateBeforeCall(commentId, adjustCommentVotesParams, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call postAdjustCommentVotesAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postAdjustCommentVotesValidateBeforeCall(commentId, adjustCommentVotesParams, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpostAdjustCommentVotesRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nonnull + private final AdjustCommentVotesParams adjustCommentVotesParams; + @javax.annotation.Nullable + private String sso; + + private APIpostAdjustCommentVotesRequest(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams) { + this.commentId = commentId; + this.adjustCommentVotesParams = adjustCommentVotesParams; + } + + /** + * Set sso + * @param sso (optional) + * @return APIpostAdjustCommentVotesRequest + */ + public APIpostAdjustCommentVotesRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for postAdjustCommentVotes + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return postAdjustCommentVotesCall(commentId, adjustCommentVotesParams, sso, _callback); + } + + /** + * Execute postAdjustCommentVotes request + * @return AdjustVotesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public AdjustVotesResponse execute() throws ApiException { + ApiResponse localVarResp = postAdjustCommentVotesWithHttpInfo(commentId, adjustCommentVotesParams, sso); + return localVarResp.getData(); + } + + /** + * Execute postAdjustCommentVotes request with HTTP info returned + * @return ApiResponse<AdjustVotesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return postAdjustCommentVotesWithHttpInfo(commentId, adjustCommentVotesParams, sso); + } + + /** + * Execute postAdjustCommentVotes request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postAdjustCommentVotesAsync(commentId, adjustCommentVotesParams, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @param adjustCommentVotesParams (required) + * @return APIpostAdjustCommentVotesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIpostAdjustCommentVotesRequest postAdjustCommentVotes(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams) { + return new APIpostAdjustCommentVotesRequest(commentId, adjustCommentVotesParams); + } + private okhttp3.Call postApiExportCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/api/export"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (textSearch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("text-search", textSearch)); + } + + if (byIPFromComment != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("byIPFromComment", byIPFromComment)); + } + + if (filters != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("filters", filters)); + } + + if (searchFilters != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("searchFilters", searchFilters)); + } + + if (sorts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sorts", sorts)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postApiExportValidateBeforeCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return postApiExportCall(textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); + + } + + + private ApiResponse postApiExportWithHttpInfo(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postApiExportValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, sorts, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call postApiExportAsync(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postApiExportValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpostApiExportRequest { + @javax.annotation.Nullable + private String textSearch; + @javax.annotation.Nullable + private String byIPFromComment; + @javax.annotation.Nullable + private String filters; + @javax.annotation.Nullable + private String searchFilters; + @javax.annotation.Nullable + private String sorts; + @javax.annotation.Nullable + private String sso; + + private APIpostApiExportRequest() { + } + + /** + * Set textSearch + * @param textSearch (optional) + * @return APIpostApiExportRequest + */ + public APIpostApiExportRequest textSearch(@javax.annotation.Nullable String textSearch) { + this.textSearch = textSearch; + return this; + } + + /** + * Set byIPFromComment + * @param byIPFromComment (optional) + * @return APIpostApiExportRequest + */ + public APIpostApiExportRequest byIPFromComment(@javax.annotation.Nullable String byIPFromComment) { + this.byIPFromComment = byIPFromComment; + return this; + } + + /** + * Set filters + * @param filters (optional) + * @return APIpostApiExportRequest + */ + public APIpostApiExportRequest filters(@javax.annotation.Nullable String filters) { + this.filters = filters; + return this; + } + + /** + * Set searchFilters + * @param searchFilters (optional) + * @return APIpostApiExportRequest + */ + public APIpostApiExportRequest searchFilters(@javax.annotation.Nullable String searchFilters) { + this.searchFilters = searchFilters; + return this; + } + + /** + * Set sorts + * @param sorts (optional) + * @return APIpostApiExportRequest + */ + public APIpostApiExportRequest sorts(@javax.annotation.Nullable String sorts) { + this.sorts = sorts; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIpostApiExportRequest + */ + public APIpostApiExportRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for postApiExport + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return postApiExportCall(textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); + } + + /** + * Execute postApiExport request + * @return ModerationExportResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ModerationExportResponse execute() throws ApiException { + ApiResponse localVarResp = postApiExportWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, sorts, sso); + return localVarResp.getData(); + } + + /** + * Execute postApiExport request with HTTP info returned + * @return ApiResponse<ModerationExportResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return postApiExportWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, sorts, sso); + } + + /** + * Execute postApiExport request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postApiExportAsync(textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); + } + } + + /** + * + * + * @return APIpostApiExportRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIpostApiExportRequest postApiExport() { + return new APIpostApiExportRequest(); + } + private okhttp3.Call postBanUserFromCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean banEmail, @javax.annotation.Nullable Boolean banEmailDomain, @javax.annotation.Nullable Boolean banIP, @javax.annotation.Nullable Boolean deleteAllUsersComments, @javax.annotation.Nullable String bannedUntil, @javax.annotation.Nullable Boolean isShadowBan, @javax.annotation.Nullable String updateId, @javax.annotation.Nullable String banReason, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (banEmail != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("banEmail", banEmail)); + } + + if (banEmailDomain != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("banEmailDomain", banEmailDomain)); + } + + if (banIP != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("banIP", banIP)); + } + + if (deleteAllUsersComments != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("deleteAllUsersComments", deleteAllUsersComments)); + } + + if (bannedUntil != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("bannedUntil", bannedUntil)); + } + + if (isShadowBan != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("isShadowBan", isShadowBan)); + } + + if (updateId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("updateId", updateId)); + } + + if (banReason != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("banReason", banReason)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postBanUserFromCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean banEmail, @javax.annotation.Nullable Boolean banEmailDomain, @javax.annotation.Nullable Boolean banIP, @javax.annotation.Nullable Boolean deleteAllUsersComments, @javax.annotation.Nullable String bannedUntil, @javax.annotation.Nullable Boolean isShadowBan, @javax.annotation.Nullable String updateId, @javax.annotation.Nullable String banReason, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling postBanUserFromComment(Async)"); + } + + return postBanUserFromCommentCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); + + } + + + private ApiResponse postBanUserFromCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean banEmail, @javax.annotation.Nullable Boolean banEmailDomain, @javax.annotation.Nullable Boolean banIP, @javax.annotation.Nullable Boolean deleteAllUsersComments, @javax.annotation.Nullable String bannedUntil, @javax.annotation.Nullable Boolean isShadowBan, @javax.annotation.Nullable String updateId, @javax.annotation.Nullable String banReason, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postBanUserFromCommentValidateBeforeCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call postBanUserFromCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean banEmail, @javax.annotation.Nullable Boolean banEmailDomain, @javax.annotation.Nullable Boolean banIP, @javax.annotation.Nullable Boolean deleteAllUsersComments, @javax.annotation.Nullable String bannedUntil, @javax.annotation.Nullable Boolean isShadowBan, @javax.annotation.Nullable String updateId, @javax.annotation.Nullable String banReason, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postBanUserFromCommentValidateBeforeCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpostBanUserFromCommentRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private Boolean banEmail; + @javax.annotation.Nullable + private Boolean banEmailDomain; + @javax.annotation.Nullable + private Boolean banIP; + @javax.annotation.Nullable + private Boolean deleteAllUsersComments; + @javax.annotation.Nullable + private String bannedUntil; + @javax.annotation.Nullable + private Boolean isShadowBan; + @javax.annotation.Nullable + private String updateId; + @javax.annotation.Nullable + private String banReason; + @javax.annotation.Nullable + private String sso; + + private APIpostBanUserFromCommentRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set banEmail + * @param banEmail (optional) + * @return APIpostBanUserFromCommentRequest + */ + public APIpostBanUserFromCommentRequest banEmail(@javax.annotation.Nullable Boolean banEmail) { + this.banEmail = banEmail; + return this; + } + + /** + * Set banEmailDomain + * @param banEmailDomain (optional) + * @return APIpostBanUserFromCommentRequest + */ + public APIpostBanUserFromCommentRequest banEmailDomain(@javax.annotation.Nullable Boolean banEmailDomain) { + this.banEmailDomain = banEmailDomain; + return this; + } + + /** + * Set banIP + * @param banIP (optional) + * @return APIpostBanUserFromCommentRequest + */ + public APIpostBanUserFromCommentRequest banIP(@javax.annotation.Nullable Boolean banIP) { + this.banIP = banIP; + return this; + } + + /** + * Set deleteAllUsersComments + * @param deleteAllUsersComments (optional) + * @return APIpostBanUserFromCommentRequest + */ + public APIpostBanUserFromCommentRequest deleteAllUsersComments(@javax.annotation.Nullable Boolean deleteAllUsersComments) { + this.deleteAllUsersComments = deleteAllUsersComments; + return this; + } + + /** + * Set bannedUntil + * @param bannedUntil (optional) + * @return APIpostBanUserFromCommentRequest + */ + public APIpostBanUserFromCommentRequest bannedUntil(@javax.annotation.Nullable String bannedUntil) { + this.bannedUntil = bannedUntil; + return this; + } + + /** + * Set isShadowBan + * @param isShadowBan (optional) + * @return APIpostBanUserFromCommentRequest + */ + public APIpostBanUserFromCommentRequest isShadowBan(@javax.annotation.Nullable Boolean isShadowBan) { + this.isShadowBan = isShadowBan; + return this; + } + + /** + * Set updateId + * @param updateId (optional) + * @return APIpostBanUserFromCommentRequest + */ + public APIpostBanUserFromCommentRequest updateId(@javax.annotation.Nullable String updateId) { + this.updateId = updateId; + return this; + } + + /** + * Set banReason + * @param banReason (optional) + * @return APIpostBanUserFromCommentRequest + */ + public APIpostBanUserFromCommentRequest banReason(@javax.annotation.Nullable String banReason) { + this.banReason = banReason; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIpostBanUserFromCommentRequest + */ + public APIpostBanUserFromCommentRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for postBanUserFromComment + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return postBanUserFromCommentCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); + } + + /** + * Execute postBanUserFromComment request + * @return BanUserFromCommentResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public BanUserFromCommentResult execute() throws ApiException { + ApiResponse localVarResp = postBanUserFromCommentWithHttpInfo(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso); + return localVarResp.getData(); + } + + /** + * Execute postBanUserFromComment request with HTTP info returned + * @return ApiResponse<BanUserFromCommentResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return postBanUserFromCommentWithHttpInfo(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso); + } + + /** + * Execute postBanUserFromComment request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postBanUserFromCommentAsync(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIpostBanUserFromCommentRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIpostBanUserFromCommentRequest postBanUserFromComment(@javax.annotation.Nonnull String commentId) { + return new APIpostBanUserFromCommentRequest(commentId); + } + private okhttp3.Call postBanUserUndoCall(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = banUserUndoParams; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/ban-user/undo"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postBanUserUndoValidateBeforeCall(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'banUserUndoParams' is set + if (banUserUndoParams == null) { + throw new ApiException("Missing the required parameter 'banUserUndoParams' when calling postBanUserUndo(Async)"); + } + + return postBanUserUndoCall(banUserUndoParams, sso, _callback); + + } + + + private ApiResponse postBanUserUndoWithHttpInfo(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postBanUserUndoValidateBeforeCall(banUserUndoParams, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call postBanUserUndoAsync(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postBanUserUndoValidateBeforeCall(banUserUndoParams, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpostBanUserUndoRequest { + @javax.annotation.Nonnull + private final BanUserUndoParams banUserUndoParams; + @javax.annotation.Nullable + private String sso; + + private APIpostBanUserUndoRequest(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams) { + this.banUserUndoParams = banUserUndoParams; + } + + /** + * Set sso + * @param sso (optional) + * @return APIpostBanUserUndoRequest + */ + public APIpostBanUserUndoRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for postBanUserUndo + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return postBanUserUndoCall(banUserUndoParams, sso, _callback); + } + + /** + * Execute postBanUserUndo request + * @return APIEmptyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = postBanUserUndoWithHttpInfo(banUserUndoParams, sso); + return localVarResp.getData(); + } + + /** + * Execute postBanUserUndo request with HTTP info returned + * @return ApiResponse<APIEmptyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return postBanUserUndoWithHttpInfo(banUserUndoParams, sso); + } + + /** + * Execute postBanUserUndo request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postBanUserUndoAsync(banUserUndoParams, sso, _callback); + } + } + + /** + * + * + * @param banUserUndoParams (required) + * @return APIpostBanUserUndoRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIpostBanUserUndoRequest postBanUserUndo(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams) { + return new APIpostBanUserUndoRequest(banUserUndoParams); + } + private okhttp3.Call postBulkPreBanSummaryCall(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = bulkPreBanParams; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/bulk-pre-ban-summary"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (includeByUserIdAndEmail != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeByUserIdAndEmail", includeByUserIdAndEmail)); + } + + if (includeByIP != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeByIP", includeByIP)); + } + + if (includeByEmailDomain != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeByEmailDomain", includeByEmailDomain)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postBulkPreBanSummaryValidateBeforeCall(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'bulkPreBanParams' is set + if (bulkPreBanParams == null) { + throw new ApiException("Missing the required parameter 'bulkPreBanParams' when calling postBulkPreBanSummary(Async)"); + } + + return postBulkPreBanSummaryCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + + } + + + private ApiResponse postBulkPreBanSummaryWithHttpInfo(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postBulkPreBanSummaryValidateBeforeCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call postBulkPreBanSummaryAsync(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postBulkPreBanSummaryValidateBeforeCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpostBulkPreBanSummaryRequest { + @javax.annotation.Nonnull + private final BulkPreBanParams bulkPreBanParams; + @javax.annotation.Nullable + private Boolean includeByUserIdAndEmail; + @javax.annotation.Nullable + private Boolean includeByIP; + @javax.annotation.Nullable + private Boolean includeByEmailDomain; + @javax.annotation.Nullable + private String sso; + + private APIpostBulkPreBanSummaryRequest(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams) { + this.bulkPreBanParams = bulkPreBanParams; + } + + /** + * Set includeByUserIdAndEmail + * @param includeByUserIdAndEmail (optional) + * @return APIpostBulkPreBanSummaryRequest + */ + public APIpostBulkPreBanSummaryRequest includeByUserIdAndEmail(@javax.annotation.Nullable Boolean includeByUserIdAndEmail) { + this.includeByUserIdAndEmail = includeByUserIdAndEmail; + return this; + } + + /** + * Set includeByIP + * @param includeByIP (optional) + * @return APIpostBulkPreBanSummaryRequest + */ + public APIpostBulkPreBanSummaryRequest includeByIP(@javax.annotation.Nullable Boolean includeByIP) { + this.includeByIP = includeByIP; + return this; + } + + /** + * Set includeByEmailDomain + * @param includeByEmailDomain (optional) + * @return APIpostBulkPreBanSummaryRequest + */ + public APIpostBulkPreBanSummaryRequest includeByEmailDomain(@javax.annotation.Nullable Boolean includeByEmailDomain) { + this.includeByEmailDomain = includeByEmailDomain; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIpostBulkPreBanSummaryRequest + */ + public APIpostBulkPreBanSummaryRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for postBulkPreBanSummary + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return postBulkPreBanSummaryCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + } + + /** + * Execute postBulkPreBanSummary request + * @return BulkPreBanSummary + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public BulkPreBanSummary execute() throws ApiException { + ApiResponse localVarResp = postBulkPreBanSummaryWithHttpInfo(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); + return localVarResp.getData(); + } + + /** + * Execute postBulkPreBanSummary request with HTTP info returned + * @return ApiResponse<BulkPreBanSummary> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return postBulkPreBanSummaryWithHttpInfo(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); + } + + /** + * Execute postBulkPreBanSummary request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postBulkPreBanSummaryAsync(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + } + } + + /** + * + * + * @param bulkPreBanParams (required) + * @return APIpostBulkPreBanSummaryRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIpostBulkPreBanSummaryRequest postBulkPreBanSummary(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams) { + return new APIpostBulkPreBanSummaryRequest(bulkPreBanParams); + } + private okhttp3.Call postCommentsByIdsCall(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = commentsByIdsParams; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/comments-by-ids"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postCommentsByIdsValidateBeforeCall(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentsByIdsParams' is set + if (commentsByIdsParams == null) { + throw new ApiException("Missing the required parameter 'commentsByIdsParams' when calling postCommentsByIds(Async)"); + } + + return postCommentsByIdsCall(commentsByIdsParams, sso, _callback); + + } + + + private ApiResponse postCommentsByIdsWithHttpInfo(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postCommentsByIdsValidateBeforeCall(commentsByIdsParams, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call postCommentsByIdsAsync(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postCommentsByIdsValidateBeforeCall(commentsByIdsParams, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpostCommentsByIdsRequest { + @javax.annotation.Nonnull + private final CommentsByIdsParams commentsByIdsParams; + @javax.annotation.Nullable + private String sso; + + private APIpostCommentsByIdsRequest(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams) { + this.commentsByIdsParams = commentsByIdsParams; + } + + /** + * Set sso + * @param sso (optional) + * @return APIpostCommentsByIdsRequest + */ + public APIpostCommentsByIdsRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for postCommentsByIds + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return postCommentsByIdsCall(commentsByIdsParams, sso, _callback); + } + + /** + * Execute postCommentsByIds request + * @return ModerationAPIChildCommentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ModerationAPIChildCommentsResponse execute() throws ApiException { + ApiResponse localVarResp = postCommentsByIdsWithHttpInfo(commentsByIdsParams, sso); + return localVarResp.getData(); + } + + /** + * Execute postCommentsByIds request with HTTP info returned + * @return ApiResponse<ModerationAPIChildCommentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return postCommentsByIdsWithHttpInfo(commentsByIdsParams, sso); + } + + /** + * Execute postCommentsByIds request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postCommentsByIdsAsync(commentsByIdsParams, sso, _callback); + } + } + + /** + * + * + * @param commentsByIdsParams (required) + * @return APIpostCommentsByIdsRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIpostCommentsByIdsRequest postCommentsByIds(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams) { + return new APIpostCommentsByIdsRequest(commentsByIdsParams); + } + private okhttp3.Call postFlagCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/flag-comment/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postFlagCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling postFlagComment(Async)"); + } + + return postFlagCommentCall(commentId, sso, _callback); + + } + + + private ApiResponse postFlagCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postFlagCommentValidateBeforeCall(commentId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call postFlagCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postFlagCommentValidateBeforeCall(commentId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpostFlagCommentRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private String sso; + + private APIpostFlagCommentRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set sso + * @param sso (optional) + * @return APIpostFlagCommentRequest + */ + public APIpostFlagCommentRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for postFlagComment + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return postFlagCommentCall(commentId, sso, _callback); + } + + /** + * Execute postFlagComment request + * @return APIEmptyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = postFlagCommentWithHttpInfo(commentId, sso); + return localVarResp.getData(); + } + + /** + * Execute postFlagComment request with HTTP info returned + * @return ApiResponse<APIEmptyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return postFlagCommentWithHttpInfo(commentId, sso); + } + + /** + * Execute postFlagComment request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postFlagCommentAsync(commentId, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIpostFlagCommentRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIpostFlagCommentRequest postFlagComment(@javax.annotation.Nonnull String commentId) { + return new APIpostFlagCommentRequest(commentId); + } + private okhttp3.Call postRemoveCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/remove-comment/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postRemoveCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling postRemoveComment(Async)"); + } + + return postRemoveCommentCall(commentId, sso, _callback); + + } + + + private ApiResponse postRemoveCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postRemoveCommentValidateBeforeCall(commentId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call postRemoveCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postRemoveCommentValidateBeforeCall(commentId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpostRemoveCommentRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private String sso; + + private APIpostRemoveCommentRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set sso + * @param sso (optional) + * @return APIpostRemoveCommentRequest + */ + public APIpostRemoveCommentRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for postRemoveComment + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return postRemoveCommentCall(commentId, sso, _callback); + } + + /** + * Execute postRemoveComment request + * @return PostRemoveCommentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public PostRemoveCommentResponse execute() throws ApiException { + ApiResponse localVarResp = postRemoveCommentWithHttpInfo(commentId, sso); + return localVarResp.getData(); + } + + /** + * Execute postRemoveComment request with HTTP info returned + * @return ApiResponse<PostRemoveCommentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return postRemoveCommentWithHttpInfo(commentId, sso); + } + + /** + * Execute postRemoveComment request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postRemoveCommentAsync(commentId, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIpostRemoveCommentRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIpostRemoveCommentRequest postRemoveComment(@javax.annotation.Nonnull String commentId) { + return new APIpostRemoveCommentRequest(commentId); + } + private okhttp3.Call postRestoreDeletedCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postRestoreDeletedCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling postRestoreDeletedComment(Async)"); + } + + return postRestoreDeletedCommentCall(commentId, sso, _callback); + + } + + + private ApiResponse postRestoreDeletedCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postRestoreDeletedCommentValidateBeforeCall(commentId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call postRestoreDeletedCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postRestoreDeletedCommentValidateBeforeCall(commentId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpostRestoreDeletedCommentRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private String sso; + + private APIpostRestoreDeletedCommentRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set sso + * @param sso (optional) + * @return APIpostRestoreDeletedCommentRequest + */ + public APIpostRestoreDeletedCommentRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for postRestoreDeletedComment + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return postRestoreDeletedCommentCall(commentId, sso, _callback); + } + + /** + * Execute postRestoreDeletedComment request + * @return APIEmptyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = postRestoreDeletedCommentWithHttpInfo(commentId, sso); + return localVarResp.getData(); + } + + /** + * Execute postRestoreDeletedComment request with HTTP info returned + * @return ApiResponse<APIEmptyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return postRestoreDeletedCommentWithHttpInfo(commentId, sso); + } + + /** + * Execute postRestoreDeletedComment request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postRestoreDeletedCommentAsync(commentId, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIpostRestoreDeletedCommentRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIpostRestoreDeletedCommentRequest postRestoreDeletedComment(@javax.annotation.Nonnull String commentId) { + return new APIpostRestoreDeletedCommentRequest(commentId); + } + private okhttp3.Call postSetCommentApprovalStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (approved != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("approved", approved)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postSetCommentApprovalStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling postSetCommentApprovalStatus(Async)"); + } + + return postSetCommentApprovalStatusCall(commentId, approved, sso, _callback); + + } + + + private ApiResponse postSetCommentApprovalStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentApprovalStatusValidateBeforeCall(commentId, approved, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call postSetCommentApprovalStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postSetCommentApprovalStatusValidateBeforeCall(commentId, approved, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpostSetCommentApprovalStatusRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private Boolean approved; + @javax.annotation.Nullable + private String sso; + + private APIpostSetCommentApprovalStatusRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set approved + * @param approved (optional) + * @return APIpostSetCommentApprovalStatusRequest + */ + public APIpostSetCommentApprovalStatusRequest approved(@javax.annotation.Nullable Boolean approved) { + this.approved = approved; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIpostSetCommentApprovalStatusRequest + */ + public APIpostSetCommentApprovalStatusRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for postSetCommentApprovalStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return postSetCommentApprovalStatusCall(commentId, approved, sso, _callback); + } + + /** + * Execute postSetCommentApprovalStatus request + * @return SetCommentApprovedResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public SetCommentApprovedResponse execute() throws ApiException { + ApiResponse localVarResp = postSetCommentApprovalStatusWithHttpInfo(commentId, approved, sso); + return localVarResp.getData(); + } + + /** + * Execute postSetCommentApprovalStatus request with HTTP info returned + * @return ApiResponse<SetCommentApprovedResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return postSetCommentApprovalStatusWithHttpInfo(commentId, approved, sso); + } + + /** + * Execute postSetCommentApprovalStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postSetCommentApprovalStatusAsync(commentId, approved, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIpostSetCommentApprovalStatusRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIpostSetCommentApprovalStatusRequest postSetCommentApprovalStatus(@javax.annotation.Nonnull String commentId) { + return new APIpostSetCommentApprovalStatusRequest(commentId); + } + private okhttp3.Call postSetCommentReviewStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (reviewed != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("reviewed", reviewed)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postSetCommentReviewStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling postSetCommentReviewStatus(Async)"); + } + + return postSetCommentReviewStatusCall(commentId, reviewed, sso, _callback); + + } + + + private ApiResponse postSetCommentReviewStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentReviewStatusValidateBeforeCall(commentId, reviewed, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call postSetCommentReviewStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postSetCommentReviewStatusValidateBeforeCall(commentId, reviewed, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpostSetCommentReviewStatusRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private Boolean reviewed; + @javax.annotation.Nullable + private String sso; + + private APIpostSetCommentReviewStatusRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set reviewed + * @param reviewed (optional) + * @return APIpostSetCommentReviewStatusRequest + */ + public APIpostSetCommentReviewStatusRequest reviewed(@javax.annotation.Nullable Boolean reviewed) { + this.reviewed = reviewed; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIpostSetCommentReviewStatusRequest + */ + public APIpostSetCommentReviewStatusRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for postSetCommentReviewStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return postSetCommentReviewStatusCall(commentId, reviewed, sso, _callback); + } + + /** + * Execute postSetCommentReviewStatus request + * @return APIEmptyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = postSetCommentReviewStatusWithHttpInfo(commentId, reviewed, sso); + return localVarResp.getData(); + } + + /** + * Execute postSetCommentReviewStatus request with HTTP info returned + * @return ApiResponse<APIEmptyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return postSetCommentReviewStatusWithHttpInfo(commentId, reviewed, sso); + } + + /** + * Execute postSetCommentReviewStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postSetCommentReviewStatusAsync(commentId, reviewed, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIpostSetCommentReviewStatusRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIpostSetCommentReviewStatusRequest postSetCommentReviewStatus(@javax.annotation.Nonnull String commentId) { + return new APIpostSetCommentReviewStatusRequest(commentId); + } + private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (spam != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("spam", spam)); + } + + if (permNotSpam != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("permNotSpam", permNotSpam)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postSetCommentSpamStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling postSetCommentSpamStatus(Async)"); + } + + return postSetCommentSpamStatusCall(commentId, spam, permNotSpam, sso, _callback); + + } + + + private ApiResponse postSetCommentSpamStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentSpamStatusValidateBeforeCall(commentId, spam, permNotSpam, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call postSetCommentSpamStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postSetCommentSpamStatusValidateBeforeCall(commentId, spam, permNotSpam, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpostSetCommentSpamStatusRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private Boolean spam; + @javax.annotation.Nullable + private Boolean permNotSpam; + @javax.annotation.Nullable + private String sso; + + private APIpostSetCommentSpamStatusRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set spam + * @param spam (optional) + * @return APIpostSetCommentSpamStatusRequest + */ + public APIpostSetCommentSpamStatusRequest spam(@javax.annotation.Nullable Boolean spam) { + this.spam = spam; + return this; + } + + /** + * Set permNotSpam + * @param permNotSpam (optional) + * @return APIpostSetCommentSpamStatusRequest + */ + public APIpostSetCommentSpamStatusRequest permNotSpam(@javax.annotation.Nullable Boolean permNotSpam) { + this.permNotSpam = permNotSpam; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIpostSetCommentSpamStatusRequest + */ + public APIpostSetCommentSpamStatusRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for postSetCommentSpamStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return postSetCommentSpamStatusCall(commentId, spam, permNotSpam, sso, _callback); + } + + /** + * Execute postSetCommentSpamStatus request + * @return APIEmptyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = postSetCommentSpamStatusWithHttpInfo(commentId, spam, permNotSpam, sso); + return localVarResp.getData(); + } + + /** + * Execute postSetCommentSpamStatus request with HTTP info returned + * @return ApiResponse<APIEmptyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return postSetCommentSpamStatusWithHttpInfo(commentId, spam, permNotSpam, sso); + } + + /** + * Execute postSetCommentSpamStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postSetCommentSpamStatusAsync(commentId, spam, permNotSpam, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIpostSetCommentSpamStatusRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIpostSetCommentSpamStatusRequest postSetCommentSpamStatus(@javax.annotation.Nonnull String commentId) { + return new APIpostSetCommentSpamStatusRequest(commentId); + } + private okhttp3.Call postSetCommentTextCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setCommentTextParams; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/set-comment-text/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postSetCommentTextValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling postSetCommentText(Async)"); + } + + // verify the required parameter 'setCommentTextParams' is set + if (setCommentTextParams == null) { + throw new ApiException("Missing the required parameter 'setCommentTextParams' when calling postSetCommentText(Async)"); + } + + return postSetCommentTextCall(commentId, setCommentTextParams, sso, _callback); + + } + + + private ApiResponse postSetCommentTextWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentTextValidateBeforeCall(commentId, setCommentTextParams, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call postSetCommentTextAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postSetCommentTextValidateBeforeCall(commentId, setCommentTextParams, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpostSetCommentTextRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nonnull + private final SetCommentTextParams setCommentTextParams; + @javax.annotation.Nullable + private String sso; + + private APIpostSetCommentTextRequest(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams) { + this.commentId = commentId; + this.setCommentTextParams = setCommentTextParams; + } + + /** + * Set sso + * @param sso (optional) + * @return APIpostSetCommentTextRequest + */ + public APIpostSetCommentTextRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for postSetCommentText + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return postSetCommentTextCall(commentId, setCommentTextParams, sso, _callback); + } + + /** + * Execute postSetCommentText request + * @return SetCommentTextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public SetCommentTextResponse execute() throws ApiException { + ApiResponse localVarResp = postSetCommentTextWithHttpInfo(commentId, setCommentTextParams, sso); + return localVarResp.getData(); + } + + /** + * Execute postSetCommentText request with HTTP info returned + * @return ApiResponse<SetCommentTextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return postSetCommentTextWithHttpInfo(commentId, setCommentTextParams, sso); + } + + /** + * Execute postSetCommentText request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postSetCommentTextAsync(commentId, setCommentTextParams, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @param setCommentTextParams (required) + * @return APIpostSetCommentTextRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIpostSetCommentTextRequest postSetCommentText(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams) { + return new APIpostSetCommentTextRequest(commentId, setCommentTextParams); + } + private okhttp3.Call postUnFlagCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/un-flag-comment/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postUnFlagCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling postUnFlagComment(Async)"); + } + + return postUnFlagCommentCall(commentId, sso, _callback); + + } + + + private ApiResponse postUnFlagCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postUnFlagCommentValidateBeforeCall(commentId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call postUnFlagCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postUnFlagCommentValidateBeforeCall(commentId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpostUnFlagCommentRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private String sso; + + private APIpostUnFlagCommentRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set sso + * @param sso (optional) + * @return APIpostUnFlagCommentRequest + */ + public APIpostUnFlagCommentRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for postUnFlagComment + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return postUnFlagCommentCall(commentId, sso, _callback); + } + + /** + * Execute postUnFlagComment request + * @return APIEmptyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = postUnFlagCommentWithHttpInfo(commentId, sso); + return localVarResp.getData(); + } + + /** + * Execute postUnFlagComment request with HTTP info returned + * @return ApiResponse<APIEmptyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return postUnFlagCommentWithHttpInfo(commentId, sso); + } + + /** + * Execute postUnFlagComment request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postUnFlagCommentAsync(commentId, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIpostUnFlagCommentRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIpostUnFlagCommentRequest postUnFlagComment(@javax.annotation.Nonnull String commentId) { + return new APIpostUnFlagCommentRequest(commentId); + } + private okhttp3.Call postVoteCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/vote/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (direction != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("direction", direction)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postVoteValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling postVote(Async)"); + } + + return postVoteCall(commentId, direction, sso, _callback); + + } + + + private ApiResponse postVoteWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postVoteValidateBeforeCall(commentId, direction, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call postVoteAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postVoteValidateBeforeCall(commentId, direction, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpostVoteRequest { + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private String direction; + @javax.annotation.Nullable + private String sso; + + private APIpostVoteRequest(@javax.annotation.Nonnull String commentId) { + this.commentId = commentId; + } + + /** + * Set direction + * @param direction (optional) + * @return APIpostVoteRequest + */ + public APIpostVoteRequest direction(@javax.annotation.Nullable String direction) { + this.direction = direction; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIpostVoteRequest + */ + public APIpostVoteRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for postVote + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return postVoteCall(commentId, direction, sso, _callback); + } + + /** + * Execute postVote request + * @return VoteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public VoteResponse execute() throws ApiException { + ApiResponse localVarResp = postVoteWithHttpInfo(commentId, direction, sso); + return localVarResp.getData(); + } + + /** + * Execute postVote request with HTTP info returned + * @return ApiResponse<VoteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return postVoteWithHttpInfo(commentId, direction, sso); + } + + /** + * Execute postVote request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postVoteAsync(commentId, direction, sso, _callback); + } + } + + /** + * + * + * @param commentId (required) + * @return APIpostVoteRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIpostVoteRequest postVote(@javax.annotation.Nonnull String commentId) { + return new APIpostVoteRequest(commentId); + } + private okhttp3.Call putAwardBadgeCall(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/award-badge"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (badgeId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("badgeId", badgeId)); + } + + if (userId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); + } + + if (commentId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("commentId", commentId)); + } + + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call putAwardBadgeValidateBeforeCall(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'badgeId' is set + if (badgeId == null) { + throw new ApiException("Missing the required parameter 'badgeId' when calling putAwardBadge(Async)"); + } + + return putAwardBadgeCall(badgeId, userId, commentId, broadcastId, sso, _callback); + + } + + + private ApiResponse putAwardBadgeWithHttpInfo(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = putAwardBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call putAwardBadgeAsync(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = putAwardBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIputAwardBadgeRequest { + @javax.annotation.Nonnull + private final String badgeId; + @javax.annotation.Nullable + private String userId; + @javax.annotation.Nullable + private String commentId; + @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable + private String sso; + + private APIputAwardBadgeRequest(@javax.annotation.Nonnull String badgeId) { + this.badgeId = badgeId; + } + + /** + * Set userId + * @param userId (optional) + * @return APIputAwardBadgeRequest + */ + public APIputAwardBadgeRequest userId(@javax.annotation.Nullable String userId) { + this.userId = userId; + return this; + } + + /** + * Set commentId + * @param commentId (optional) + * @return APIputAwardBadgeRequest + */ + public APIputAwardBadgeRequest commentId(@javax.annotation.Nullable String commentId) { + this.commentId = commentId; + return this; + } + + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIputAwardBadgeRequest + */ + public APIputAwardBadgeRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIputAwardBadgeRequest + */ + public APIputAwardBadgeRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for putAwardBadge + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return putAwardBadgeCall(badgeId, userId, commentId, broadcastId, sso, _callback); + } + + /** + * Execute putAwardBadge request + * @return AwardUserBadgeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public AwardUserBadgeResponse execute() throws ApiException { + ApiResponse localVarResp = putAwardBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, sso); + return localVarResp.getData(); + } + + /** + * Execute putAwardBadge request with HTTP info returned + * @return ApiResponse<AwardUserBadgeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return putAwardBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, sso); + } + + /** + * Execute putAwardBadge request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return putAwardBadgeAsync(badgeId, userId, commentId, broadcastId, sso, _callback); + } + } + + /** + * + * + * @param badgeId (required) + * @return APIputAwardBadgeRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIputAwardBadgeRequest putAwardBadge(@javax.annotation.Nonnull String badgeId) { + return new APIputAwardBadgeRequest(badgeId); + } + private okhttp3.Call putCloseThreadCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/close-thread"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call putCloseThreadValidateBeforeCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'urlId' is set + if (urlId == null) { + throw new ApiException("Missing the required parameter 'urlId' when calling putCloseThread(Async)"); + } + + return putCloseThreadCall(urlId, sso, _callback); + + } + + + private ApiResponse putCloseThreadWithHttpInfo(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = putCloseThreadValidateBeforeCall(urlId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call putCloseThreadAsync(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = putCloseThreadValidateBeforeCall(urlId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIputCloseThreadRequest { + @javax.annotation.Nonnull + private final String urlId; + @javax.annotation.Nullable + private String sso; + + private APIputCloseThreadRequest(@javax.annotation.Nonnull String urlId) { + this.urlId = urlId; + } + + /** + * Set sso + * @param sso (optional) + * @return APIputCloseThreadRequest + */ + public APIputCloseThreadRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for putCloseThread + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return putCloseThreadCall(urlId, sso, _callback); + } + + /** + * Execute putCloseThread request + * @return APIEmptyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = putCloseThreadWithHttpInfo(urlId, sso); + return localVarResp.getData(); + } + + /** + * Execute putCloseThread request with HTTP info returned + * @return ApiResponse<APIEmptyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return putCloseThreadWithHttpInfo(urlId, sso); + } + + /** + * Execute putCloseThread request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return putCloseThreadAsync(urlId, sso, _callback); + } + } + + /** + * + * + * @param urlId (required) + * @return APIputCloseThreadRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIputCloseThreadRequest putCloseThread(@javax.annotation.Nonnull String urlId) { + return new APIputCloseThreadRequest(urlId); + } + private okhttp3.Call putRemoveBadgeCall(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/remove-badge"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (badgeId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("badgeId", badgeId)); + } + + if (userId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); + } + + if (commentId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("commentId", commentId)); + } + + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call putRemoveBadgeValidateBeforeCall(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'badgeId' is set + if (badgeId == null) { + throw new ApiException("Missing the required parameter 'badgeId' when calling putRemoveBadge(Async)"); + } + + return putRemoveBadgeCall(badgeId, userId, commentId, broadcastId, sso, _callback); + + } + + + private ApiResponse putRemoveBadgeWithHttpInfo(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = putRemoveBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call putRemoveBadgeAsync(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = putRemoveBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIputRemoveBadgeRequest { + @javax.annotation.Nonnull + private final String badgeId; + @javax.annotation.Nullable + private String userId; + @javax.annotation.Nullable + private String commentId; + @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable + private String sso; + + private APIputRemoveBadgeRequest(@javax.annotation.Nonnull String badgeId) { + this.badgeId = badgeId; + } + + /** + * Set userId + * @param userId (optional) + * @return APIputRemoveBadgeRequest + */ + public APIputRemoveBadgeRequest userId(@javax.annotation.Nullable String userId) { + this.userId = userId; + return this; + } + + /** + * Set commentId + * @param commentId (optional) + * @return APIputRemoveBadgeRequest + */ + public APIputRemoveBadgeRequest commentId(@javax.annotation.Nullable String commentId) { + this.commentId = commentId; + return this; + } + + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIputRemoveBadgeRequest + */ + public APIputRemoveBadgeRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIputRemoveBadgeRequest + */ + public APIputRemoveBadgeRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for putRemoveBadge + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return putRemoveBadgeCall(badgeId, userId, commentId, broadcastId, sso, _callback); + } + + /** + * Execute putRemoveBadge request + * @return RemoveUserBadgeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public RemoveUserBadgeResponse execute() throws ApiException { + ApiResponse localVarResp = putRemoveBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, sso); + return localVarResp.getData(); + } + + /** + * Execute putRemoveBadge request with HTTP info returned + * @return ApiResponse<RemoveUserBadgeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return putRemoveBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, sso); + } + + /** + * Execute putRemoveBadge request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return putRemoveBadgeAsync(badgeId, userId, commentId, broadcastId, sso, _callback); + } + } + + /** + * + * + * @param badgeId (required) + * @return APIputRemoveBadgeRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIputRemoveBadgeRequest putRemoveBadge(@javax.annotation.Nonnull String badgeId) { + return new APIputRemoveBadgeRequest(badgeId); + } + private okhttp3.Call putReopenThreadCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/reopen-thread"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call putReopenThreadValidateBeforeCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'urlId' is set + if (urlId == null) { + throw new ApiException("Missing the required parameter 'urlId' when calling putReopenThread(Async)"); + } + + return putReopenThreadCall(urlId, sso, _callback); + + } + + + private ApiResponse putReopenThreadWithHttpInfo(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = putReopenThreadValidateBeforeCall(urlId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call putReopenThreadAsync(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = putReopenThreadValidateBeforeCall(urlId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIputReopenThreadRequest { + @javax.annotation.Nonnull + private final String urlId; + @javax.annotation.Nullable + private String sso; + + private APIputReopenThreadRequest(@javax.annotation.Nonnull String urlId) { + this.urlId = urlId; + } + + /** + * Set sso + * @param sso (optional) + * @return APIputReopenThreadRequest + */ + public APIputReopenThreadRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for putReopenThread + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return putReopenThreadCall(urlId, sso, _callback); + } + + /** + * Execute putReopenThread request + * @return APIEmptyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = putReopenThreadWithHttpInfo(urlId, sso); + return localVarResp.getData(); + } + + /** + * Execute putReopenThread request with HTTP info returned + * @return ApiResponse<APIEmptyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return putReopenThreadWithHttpInfo(urlId, sso); + } + + /** + * Execute putReopenThread request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return putReopenThreadAsync(urlId, sso, _callback); + } + } + + /** + * + * + * @param urlId (required) + * @return APIputReopenThreadRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIputReopenThreadRequest putReopenThread(@javax.annotation.Nonnull String urlId) { + return new APIputReopenThreadRequest(urlId); + } + private okhttp3.Call setTrustFactorCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/my-account/moderate-comments/set-trust-factor"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (userId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); + } + + if (trustFactor != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("trustFactor", trustFactor)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setTrustFactorValidateBeforeCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return setTrustFactorCall(userId, trustFactor, sso, _callback); + + } + + + private ApiResponse setTrustFactorWithHttpInfo(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = setTrustFactorValidateBeforeCall(userId, trustFactor, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call setTrustFactorAsync(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setTrustFactorValidateBeforeCall(userId, trustFactor, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIsetTrustFactorRequest { + @javax.annotation.Nullable + private String userId; + @javax.annotation.Nullable + private String trustFactor; + @javax.annotation.Nullable + private String sso; + + private APIsetTrustFactorRequest() { + } + + /** + * Set userId + * @param userId (optional) + * @return APIsetTrustFactorRequest + */ + public APIsetTrustFactorRequest userId(@javax.annotation.Nullable String userId) { + this.userId = userId; + return this; + } + + /** + * Set trustFactor + * @param trustFactor (optional) + * @return APIsetTrustFactorRequest + */ + public APIsetTrustFactorRequest trustFactor(@javax.annotation.Nullable String trustFactor) { + this.trustFactor = trustFactor; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIsetTrustFactorRequest + */ + public APIsetTrustFactorRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for setTrustFactor + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return setTrustFactorCall(userId, trustFactor, sso, _callback); + } + + /** + * Execute setTrustFactor request + * @return SetUserTrustFactorResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public SetUserTrustFactorResponse execute() throws ApiException { + ApiResponse localVarResp = setTrustFactorWithHttpInfo(userId, trustFactor, sso); + return localVarResp.getData(); + } + + /** + * Execute setTrustFactor request with HTTP info returned + * @return ApiResponse<SetUserTrustFactorResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return setTrustFactorWithHttpInfo(userId, trustFactor, sso); + } + + /** + * Execute setTrustFactor request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return setTrustFactorAsync(userId, trustFactor, sso, _callback); + } + } + + /** + * + * + * @return APIsetTrustFactorRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIsetTrustFactorRequest setTrustFactor() { + return new APIsetTrustFactorRequest(); + } +} diff --git a/client/src/main/java/com/fastcomments/api/PublicApi.java b/client/src/main/java/com/fastcomments/api/PublicApi.java index 9fd3c023..5490c85d 100644 --- a/client/src/main/java/com/fastcomments/api/PublicApi.java +++ b/client/src/main/java/com/fastcomments/api/PublicApi.java @@ -27,45 +27,60 @@ import java.io.IOException; +import com.fastcomments.model.APIEmptyResponse; import com.fastcomments.model.APIError; -import com.fastcomments.model.BlockFromCommentPublic200Response; -import com.fastcomments.model.CheckedCommentsForBlocked200Response; +import com.fastcomments.model.BlockSuccess; +import com.fastcomments.model.ChangeCommentPinStatusResponse; +import com.fastcomments.model.CheckBlockedCommentsResponse; import com.fastcomments.model.CommentData; import com.fastcomments.model.CommentTextUpdateRequest; -import com.fastcomments.model.CreateCommentPublic200Response; import com.fastcomments.model.CreateFeedPostParams; -import com.fastcomments.model.CreateFeedPostPublic200Response; -import com.fastcomments.model.DeleteCommentPublic200Response; -import com.fastcomments.model.DeleteCommentVote200Response; -import com.fastcomments.model.DeleteFeedPostPublic200Response; +import com.fastcomments.model.CreateFeedPostResponse; +import com.fastcomments.model.CreateV1PageReact; +import com.fastcomments.model.DeleteFeedPostPublicResponse; +import com.fastcomments.model.FeedPostsStatsResponse; import java.io.File; -import com.fastcomments.model.FlagCommentPublic200Response; -import com.fastcomments.model.GetCommentText200Response; -import com.fastcomments.model.GetCommentVoteUserNames200Response; -import com.fastcomments.model.GetCommentsPublic200Response; -import com.fastcomments.model.GetEventLog200Response; -import com.fastcomments.model.GetFeedPostsPublic200Response; -import com.fastcomments.model.GetFeedPostsStats200Response; -import com.fastcomments.model.GetUserNotificationCount200Response; -import com.fastcomments.model.GetUserNotifications200Response; -import com.fastcomments.model.GetUserPresenceStatuses200Response; -import com.fastcomments.model.GetUserReactsPublic200Response; -import com.fastcomments.model.LockComment200Response; -import com.fastcomments.model.PinComment200Response; +import com.fastcomments.model.GetCommentVoteUserNamesSuccessResponse; +import com.fastcomments.model.GetCommentsForUserResponse; +import com.fastcomments.model.GetCommentsResponseWithPresencePublicComment; +import com.fastcomments.model.GetEventLogResponse; +import com.fastcomments.model.GetGifsSearchResponse; +import com.fastcomments.model.GetGifsTrendingResponse; +import com.fastcomments.model.GetMyNotificationsResponse; +import com.fastcomments.model.GetPublicPagesResponse; +import com.fastcomments.model.GetTranslationsResponse; +import com.fastcomments.model.GetUserNotificationCountResponse; +import com.fastcomments.model.GetUserPresenceStatusesResponse; +import com.fastcomments.model.GetV1PageLikes; +import com.fastcomments.model.GetV2PageReactUsersResponse; +import com.fastcomments.model.GetV2PageReacts; +import com.fastcomments.model.GifGetLargeResponse; +import com.fastcomments.model.PageUsersInfoResponse; +import com.fastcomments.model.PageUsersOfflineResponse; +import com.fastcomments.model.PageUsersOnlineResponse; +import com.fastcomments.model.PagesSortBy; +import com.fastcomments.model.PublicAPIDeleteCommentResponse; +import com.fastcomments.model.PublicAPIGetCommentTextResponse; +import com.fastcomments.model.PublicAPISetCommentTextResponse; import com.fastcomments.model.PublicBlockFromCommentParams; +import com.fastcomments.model.PublicFeedPostsResponse; import com.fastcomments.model.ReactBodyParams; -import com.fastcomments.model.ReactFeedPostPublic200Response; -import com.fastcomments.model.ResetUserNotifications200Response; -import com.fastcomments.model.SearchUsers200Response; -import com.fastcomments.model.SetCommentText200Response; +import com.fastcomments.model.ReactFeedPostResponse; +import com.fastcomments.model.ResetUserNotificationsResponse; +import com.fastcomments.model.SaveCommentsResponseWithPresence; +import com.fastcomments.model.SearchUsersResult; import com.fastcomments.model.SizePreset; import com.fastcomments.model.SortDirections; -import com.fastcomments.model.UnBlockCommentPublic200Response; +import com.fastcomments.model.UnblockSuccess; import com.fastcomments.model.UpdateFeedPostParams; -import com.fastcomments.model.UpdateUserNotificationStatus200Response; +import com.fastcomments.model.UpdateUserNotificationCommentSubscriptionStatusResponse; +import com.fastcomments.model.UpdateUserNotificationPageSubscriptionStatusResponse; +import com.fastcomments.model.UpdateUserNotificationStatusResponse; import com.fastcomments.model.UploadImageResponse; +import com.fastcomments.model.UserReactsResponse; import com.fastcomments.model.VoteBodyParams; -import com.fastcomments.model.VoteComment200Response; +import com.fastcomments.model.VoteDeleteResponse; +import com.fastcomments.model.VoteResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -186,16 +201,16 @@ private okhttp3.Call blockFromCommentPublicValidateBeforeCall(@javax.annotation. } - private ApiResponse blockFromCommentPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull PublicBlockFromCommentParams publicBlockFromCommentParams, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse blockFromCommentPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull PublicBlockFromCommentParams publicBlockFromCommentParams, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = blockFromCommentPublicValidateBeforeCall(tenantId, commentId, publicBlockFromCommentParams, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call blockFromCommentPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull PublicBlockFromCommentParams publicBlockFromCommentParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call blockFromCommentPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull PublicBlockFromCommentParams publicBlockFromCommentParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = blockFromCommentPublicValidateBeforeCall(tenantId, commentId, publicBlockFromCommentParams, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -236,6 +251,7 @@ public APIblockFromCommentPublicRequest sso(@javax.annotation.Nullable String ss Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -244,32 +260,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute blockFromCommentPublic request - * @return BlockFromCommentPublic200Response + * @return BlockSuccess * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public BlockFromCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = blockFromCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso); + public BlockSuccess execute() throws ApiException { + ApiResponse localVarResp = blockFromCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso); return localVarResp.getData(); } /** * Execute blockFromCommentPublic request with HTTP info returned - * @return ApiResponse<BlockFromCommentPublic200Response> + * @return ApiResponse<BlockSuccess> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return blockFromCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso); } @@ -283,9 +301,10 @@ public ApiResponse executeWithHttpInfo() thro Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return blockFromCommentPublicAsync(tenantId, commentId, publicBlockFromCommentParams, sso, _callback); } } @@ -302,6 +321,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIblockFromCommentPublicRequest blockFromCommentPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull PublicBlockFromCommentParams publicBlockFromCommentParams) { @@ -380,16 +400,16 @@ private okhttp3.Call checkedCommentsForBlockedValidateBeforeCall(@javax.annotati } - private ApiResponse checkedCommentsForBlockedWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentIds, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse checkedCommentsForBlockedWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentIds, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = checkedCommentsForBlockedValidateBeforeCall(tenantId, commentIds, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call checkedCommentsForBlockedAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call checkedCommentsForBlockedAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = checkedCommentsForBlockedValidateBeforeCall(tenantId, commentIds, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -427,6 +447,7 @@ public APIcheckedCommentsForBlockedRequest sso(@javax.annotation.Nullable String Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -435,32 +456,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute checkedCommentsForBlocked request - * @return CheckedCommentsForBlocked200Response + * @return CheckBlockedCommentsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CheckedCommentsForBlocked200Response execute() throws ApiException { - ApiResponse localVarResp = checkedCommentsForBlockedWithHttpInfo(tenantId, commentIds, sso); + public CheckBlockedCommentsResponse execute() throws ApiException { + ApiResponse localVarResp = checkedCommentsForBlockedWithHttpInfo(tenantId, commentIds, sso); return localVarResp.getData(); } /** * Execute checkedCommentsForBlocked request with HTTP info returned - * @return ApiResponse<CheckedCommentsForBlocked200Response> + * @return ApiResponse<CheckBlockedCommentsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return checkedCommentsForBlockedWithHttpInfo(tenantId, commentIds, sso); } @@ -474,9 +497,10 @@ public ApiResponse executeWithHttpInfo() t Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return checkedCommentsForBlockedAsync(tenantId, commentIds, sso, _callback); } } @@ -492,6 +516,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcheckedCommentsForBlockedRequest checkedCommentsForBlocked(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentIds) { @@ -586,16 +611,16 @@ private okhttp3.Call createCommentPublicValidateBeforeCall(@javax.annotation.Non } - private ApiResponse createCommentPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nonnull CommentData commentData, @javax.annotation.Nullable String sessionId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse createCommentPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nonnull CommentData commentData, @javax.annotation.Nullable String sessionId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = createCommentPublicValidateBeforeCall(tenantId, urlId, broadcastId, commentData, sessionId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createCommentPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nonnull CommentData commentData, @javax.annotation.Nullable String sessionId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCommentPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nonnull CommentData commentData, @javax.annotation.Nullable String sessionId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCommentPublicValidateBeforeCall(tenantId, urlId, broadcastId, commentData, sessionId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -651,6 +676,7 @@ public APIcreateCommentPublicRequest sso(@javax.annotation.Nullable String sso) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -659,32 +685,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createCommentPublic request - * @return CreateCommentPublic200Response + * @return SaveCommentsResponseWithPresence * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = createCommentPublicWithHttpInfo(tenantId, urlId, broadcastId, commentData, sessionId, sso); + public SaveCommentsResponseWithPresence execute() throws ApiException { + ApiResponse localVarResp = createCommentPublicWithHttpInfo(tenantId, urlId, broadcastId, commentData, sessionId, sso); return localVarResp.getData(); } /** * Execute createCommentPublic request with HTTP info returned - * @return ApiResponse<CreateCommentPublic200Response> + * @return ApiResponse<SaveCommentsResponseWithPresence> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createCommentPublicWithHttpInfo(tenantId, urlId, broadcastId, commentData, sessionId, sso); } @@ -698,9 +726,10 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createCommentPublicAsync(tenantId, urlId, broadcastId, commentData, sessionId, sso, _callback); } } @@ -718,6 +747,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateCommentPublicRequest createCommentPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nonnull CommentData commentData) { @@ -794,16 +824,16 @@ private okhttp3.Call createFeedPostPublicValidateBeforeCall(@javax.annotation.No } - private ApiResponse createFeedPostPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateFeedPostParams createFeedPostParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse createFeedPostPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateFeedPostParams createFeedPostParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = createFeedPostPublicValidateBeforeCall(tenantId, createFeedPostParams, broadcastId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createFeedPostPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateFeedPostParams createFeedPostParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createFeedPostPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateFeedPostParams createFeedPostParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createFeedPostPublicValidateBeforeCall(tenantId, createFeedPostParams, broadcastId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -853,6 +883,7 @@ public APIcreateFeedPostPublicRequest sso(@javax.annotation.Nullable String sso) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -861,32 +892,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createFeedPostPublic request - * @return CreateFeedPostPublic200Response + * @return CreateFeedPostResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateFeedPostPublic200Response execute() throws ApiException { - ApiResponse localVarResp = createFeedPostPublicWithHttpInfo(tenantId, createFeedPostParams, broadcastId, sso); + public CreateFeedPostResponse execute() throws ApiException { + ApiResponse localVarResp = createFeedPostPublicWithHttpInfo(tenantId, createFeedPostParams, broadcastId, sso); return localVarResp.getData(); } /** * Execute createFeedPostPublic request with HTTP info returned - * @return ApiResponse<CreateFeedPostPublic200Response> + * @return ApiResponse<CreateFeedPostResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createFeedPostPublicWithHttpInfo(tenantId, createFeedPostParams, broadcastId, sso); } @@ -900,9 +933,10 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createFeedPostPublicAsync(tenantId, createFeedPostParams, broadcastId, sso, _callback); } } @@ -918,12 +952,13 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateFeedPostPublicRequest createFeedPostPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateFeedPostParams createFeedPostParams) { return new APIcreateFeedPostPublicRequest(tenantId, createFeedPostParams); } - private okhttp3.Call deleteCommentPublicCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createV1PageReactCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String title, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -940,9 +975,8 @@ private okhttp3.Call deleteCommentPublicCall(@javax.annotation.Nonnull String te Object localVarPostBody = null; // create path and map variables - String localVarPath = "/comments/{tenantId}/{commentId}" - .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())) - .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + String localVarPath = "/page-reacts/v1/likes/{tenantId}" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -950,16 +984,12 @@ private okhttp3.Call deleteCommentPublicCall(@javax.annotation.Nonnull String te Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (broadcastId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); - } - - if (editKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("editKey", editKey)); + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); } - if (sso != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + if (title != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("title", title)); } final String[] localVarAccepts = { @@ -978,85 +1008,65 @@ private okhttp3.Call deleteCommentPublicCall(@javax.annotation.Nonnull String te } String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCommentPublicValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createV1PageReactValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String title, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { - throw new ApiException("Missing the required parameter 'tenantId' when calling deleteCommentPublic(Async)"); - } - - // verify the required parameter 'commentId' is set - if (commentId == null) { - throw new ApiException("Missing the required parameter 'commentId' when calling deleteCommentPublic(Async)"); + throw new ApiException("Missing the required parameter 'tenantId' when calling createV1PageReact(Async)"); } - // verify the required parameter 'broadcastId' is set - if (broadcastId == null) { - throw new ApiException("Missing the required parameter 'broadcastId' when calling deleteCommentPublic(Async)"); + // verify the required parameter 'urlId' is set + if (urlId == null) { + throw new ApiException("Missing the required parameter 'urlId' when calling createV1PageReact(Async)"); } - return deleteCommentPublicCall(tenantId, commentId, broadcastId, editKey, sso, _callback); + return createV1PageReactCall(tenantId, urlId, title, _callback); } - private ApiResponse deleteCommentPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = deleteCommentPublicValidateBeforeCall(tenantId, commentId, broadcastId, editKey, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse createV1PageReactWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String title) throws ApiException { + okhttp3.Call localVarCall = createV1PageReactValidateBeforeCall(tenantId, urlId, title, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCommentPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createV1PageReactAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String title, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCommentPublicValidateBeforeCall(tenantId, commentId, broadcastId, editKey, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createV1PageReactValidateBeforeCall(tenantId, urlId, title, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCommentPublicRequest { + public class APIcreateV1PageReactRequest { @javax.annotation.Nonnull private final String tenantId; @javax.annotation.Nonnull - private final String commentId; - @javax.annotation.Nonnull - private final String broadcastId; - @javax.annotation.Nullable - private String editKey; + private final String urlId; @javax.annotation.Nullable - private String sso; + private String title; - private APIdeleteCommentPublicRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId) { + private APIcreateV1PageReactRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { this.tenantId = tenantId; - this.commentId = commentId; - this.broadcastId = broadcastId; - } - - /** - * Set editKey - * @param editKey (optional) - * @return APIdeleteCommentPublicRequest - */ - public APIdeleteCommentPublicRequest editKey(@javax.annotation.Nullable String editKey) { - this.editKey = editKey; - return this; + this.urlId = urlId; } /** - * Set sso - * @param sso (optional) - * @return APIdeleteCommentPublicRequest + * Set title + * @param title (optional) + * @return APIcreateV1PageReactRequest */ - public APIdeleteCommentPublicRequest sso(@javax.annotation.Nullable String sso) { - this.sso = sso; + public APIcreateV1PageReactRequest title(@javax.annotation.Nullable String title) { + this.title = title; return this; } /** - * Build call for deleteCommentPublic + * Build call for createV1PageReact * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1065,45 +1075,48 @@ public APIdeleteCommentPublicRequest sso(@javax.annotation.Nullable String sso) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCommentPublicCall(tenantId, commentId, broadcastId, editKey, sso, _callback); + return createV1PageReactCall(tenantId, urlId, title, _callback); } /** - * Execute deleteCommentPublic request - * @return DeleteCommentPublic200Response + * Execute createV1PageReact request + * @return CreateV1PageReact * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public DeleteCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey, sso); + public CreateV1PageReact execute() throws ApiException { + ApiResponse localVarResp = createV1PageReactWithHttpInfo(tenantId, urlId, title); return localVarResp.getData(); } /** - * Execute deleteCommentPublic request with HTTP info returned - * @return ApiResponse<DeleteCommentPublic200Response> + * Execute createV1PageReact request with HTTP info returned + * @return ApiResponse<CreateV1PageReact> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey, sso); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createV1PageReactWithHttpInfo(tenantId, urlId, title); } /** - * Execute deleteCommentPublic request (asynchronously) + * Execute createV1PageReact request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1112,10 +1125,11 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCommentPublicAsync(tenantId, commentId, broadcastId, editKey, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createV1PageReactAsync(tenantId, urlId, title, _callback); } } @@ -1123,20 +1137,20 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public APIdeleteCommentPublicRequest deleteCommentPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId) { - return new APIdeleteCommentPublicRequest(tenantId, commentId, broadcastId); + public APIcreateV1PageReactRequest createV1PageReact(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + return new APIcreateV1PageReactRequest(tenantId, urlId); } - private okhttp3.Call deleteCommentVoteCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createV2PageReactCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String title, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1153,10 +1167,8 @@ private okhttp3.Call deleteCommentVoteCall(@javax.annotation.Nonnull String tena Object localVarPostBody = null; // create path and map variables - String localVarPath = "/comments/{tenantId}/{commentId}/vote/{voteId}" - .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())) - .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())) - .replace("{" + "voteId" + "}", localVarApiClient.escapeString(voteId.toString())); + String localVarPath = "/page-reacts/v2/{tenantId}" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1168,16 +1180,12 @@ private okhttp3.Call deleteCommentVoteCall(@javax.annotation.Nonnull String tena localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); } - if (broadcastId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); - } - - if (editKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("editKey", editKey)); + if (id != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id)); } - if (sso != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + if (title != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("title", title)); } final String[] localVarAccepts = { @@ -1196,101 +1204,73 @@ private okhttp3.Call deleteCommentVoteCall(@javax.annotation.Nonnull String tena } String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCommentVoteValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createV2PageReactValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String title, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { - throw new ApiException("Missing the required parameter 'tenantId' when calling deleteCommentVote(Async)"); - } - - // verify the required parameter 'commentId' is set - if (commentId == null) { - throw new ApiException("Missing the required parameter 'commentId' when calling deleteCommentVote(Async)"); - } - - // verify the required parameter 'voteId' is set - if (voteId == null) { - throw new ApiException("Missing the required parameter 'voteId' when calling deleteCommentVote(Async)"); + throw new ApiException("Missing the required parameter 'tenantId' when calling createV2PageReact(Async)"); } // verify the required parameter 'urlId' is set if (urlId == null) { - throw new ApiException("Missing the required parameter 'urlId' when calling deleteCommentVote(Async)"); + throw new ApiException("Missing the required parameter 'urlId' when calling createV2PageReact(Async)"); } - // verify the required parameter 'broadcastId' is set - if (broadcastId == null) { - throw new ApiException("Missing the required parameter 'broadcastId' when calling deleteCommentVote(Async)"); + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling createV2PageReact(Async)"); } - return deleteCommentVoteCall(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, _callback); + return createV2PageReactCall(tenantId, urlId, id, title, _callback); } - private ApiResponse deleteCommentVoteWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = deleteCommentVoteValidateBeforeCall(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse createV2PageReactWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String title) throws ApiException { + okhttp3.Call localVarCall = createV2PageReactValidateBeforeCall(tenantId, urlId, id, title, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCommentVoteAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createV2PageReactAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String title, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCommentVoteValidateBeforeCall(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createV2PageReactValidateBeforeCall(tenantId, urlId, id, title, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCommentVoteRequest { + public class APIcreateV2PageReactRequest { @javax.annotation.Nonnull private final String tenantId; @javax.annotation.Nonnull - private final String commentId; - @javax.annotation.Nonnull - private final String voteId; - @javax.annotation.Nonnull private final String urlId; @javax.annotation.Nonnull - private final String broadcastId; - @javax.annotation.Nullable - private String editKey; + private final String id; @javax.annotation.Nullable - private String sso; + private String title; - private APIdeleteCommentVoteRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId) { + private APIcreateV2PageReactRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) { this.tenantId = tenantId; - this.commentId = commentId; - this.voteId = voteId; this.urlId = urlId; - this.broadcastId = broadcastId; - } - - /** - * Set editKey - * @param editKey (optional) - * @return APIdeleteCommentVoteRequest - */ - public APIdeleteCommentVoteRequest editKey(@javax.annotation.Nullable String editKey) { - this.editKey = editKey; - return this; + this.id = id; } /** - * Set sso - * @param sso (optional) - * @return APIdeleteCommentVoteRequest + * Set title + * @param title (optional) + * @return APIcreateV2PageReactRequest */ - public APIdeleteCommentVoteRequest sso(@javax.annotation.Nullable String sso) { - this.sso = sso; + public APIcreateV2PageReactRequest title(@javax.annotation.Nullable String title) { + this.title = title; return this; } /** - * Build call for deleteCommentVote + * Build call for createV2PageReact * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1299,45 +1279,48 @@ public APIdeleteCommentVoteRequest sso(@javax.annotation.Nullable String sso) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCommentVoteCall(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, _callback); + return createV2PageReactCall(tenantId, urlId, id, title, _callback); } /** - * Execute deleteCommentVote request - * @return DeleteCommentVote200Response + * Execute createV2PageReact request + * @return CreateV1PageReact * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public DeleteCommentVote200Response execute() throws ApiException { - ApiResponse localVarResp = deleteCommentVoteWithHttpInfo(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso); + public CreateV1PageReact execute() throws ApiException { + ApiResponse localVarResp = createV2PageReactWithHttpInfo(tenantId, urlId, id, title); return localVarResp.getData(); } /** - * Execute deleteCommentVote request with HTTP info returned - * @return ApiResponse<DeleteCommentVote200Response> + * Execute createV2PageReact request with HTTP info returned + * @return ApiResponse<CreateV1PageReact> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCommentVoteWithHttpInfo(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createV2PageReactWithHttpInfo(tenantId, urlId, id, title); } /** - * Execute deleteCommentVote request (asynchronously) + * Execute createV2PageReact request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1346,10 +1329,11 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCommentVoteAsync(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createV2PageReactAsync(tenantId, urlId, id, title, _callback); } } @@ -1357,22 +1341,21 @@ public okhttp3.Call executeAsync(final ApiCallback * * * @param tenantId (required) - * @param commentId (required) - * @param voteId (required) * @param urlId (required) - * @param broadcastId (required) - * @return APIdeleteCommentVoteRequest + * @param id (required) + * @return APIcreateV2PageReactRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIdeleteCommentVoteRequest deleteCommentVote(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId) { - return new APIdeleteCommentVoteRequest(tenantId, commentId, voteId, urlId, broadcastId); + public APIcreateV2PageReactRequest createV2PageReact(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) { + return new APIcreateV2PageReactRequest(tenantId, urlId, id); } - private okhttp3.Call deleteFeedPostPublicCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCommentPublicCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1389,9 +1372,9 @@ private okhttp3.Call deleteFeedPostPublicCall(@javax.annotation.Nonnull String t Object localVarPostBody = null; // create path and map variables - String localVarPath = "/feed-posts/{tenantId}/{postId}" + String localVarPath = "/comments/{tenantId}/{commentId}" .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())) - .replace("{" + "postId" + "}", localVarApiClient.escapeString(postId.toString())); + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1403,6 +1386,10 @@ private okhttp3.Call deleteFeedPostPublicCall(@javax.annotation.Nonnull String t localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); } + if (editKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("editKey", editKey)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -1427,73 +1414,81 @@ private okhttp3.Call deleteFeedPostPublicCall(@javax.annotation.Nonnull String t } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteFeedPostPublicValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCommentPublicValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { - throw new ApiException("Missing the required parameter 'tenantId' when calling deleteFeedPostPublic(Async)"); + throw new ApiException("Missing the required parameter 'tenantId' when calling deleteCommentPublic(Async)"); } - // verify the required parameter 'postId' is set - if (postId == null) { - throw new ApiException("Missing the required parameter 'postId' when calling deleteFeedPostPublic(Async)"); + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling deleteCommentPublic(Async)"); } - return deleteFeedPostPublicCall(tenantId, postId, broadcastId, sso, _callback); + // verify the required parameter 'broadcastId' is set + if (broadcastId == null) { + throw new ApiException("Missing the required parameter 'broadcastId' when calling deleteCommentPublic(Async)"); + } + + return deleteCommentPublicCall(tenantId, commentId, broadcastId, editKey, sso, _callback); } - private ApiResponse deleteFeedPostPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = deleteFeedPostPublicValidateBeforeCall(tenantId, postId, broadcastId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteCommentPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = deleteCommentPublicValidateBeforeCall(tenantId, commentId, broadcastId, editKey, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteFeedPostPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCommentPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteFeedPostPublicValidateBeforeCall(tenantId, postId, broadcastId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteCommentPublicValidateBeforeCall(tenantId, commentId, broadcastId, editKey, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteFeedPostPublicRequest { + public class APIdeleteCommentPublicRequest { @javax.annotation.Nonnull private final String tenantId; @javax.annotation.Nonnull - private final String postId; + private final String commentId; + @javax.annotation.Nonnull + private final String broadcastId; @javax.annotation.Nullable - private String broadcastId; + private String editKey; @javax.annotation.Nullable private String sso; - private APIdeleteFeedPostPublicRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId) { + private APIdeleteCommentPublicRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId) { this.tenantId = tenantId; - this.postId = postId; + this.commentId = commentId; + this.broadcastId = broadcastId; } /** - * Set broadcastId - * @param broadcastId (optional) - * @return APIdeleteFeedPostPublicRequest + * Set editKey + * @param editKey (optional) + * @return APIdeleteCommentPublicRequest */ - public APIdeleteFeedPostPublicRequest broadcastId(@javax.annotation.Nullable String broadcastId) { - this.broadcastId = broadcastId; + public APIdeleteCommentPublicRequest editKey(@javax.annotation.Nullable String editKey) { + this.editKey = editKey; return this; } /** * Set sso * @param sso (optional) - * @return APIdeleteFeedPostPublicRequest + * @return APIdeleteCommentPublicRequest */ - public APIdeleteFeedPostPublicRequest sso(@javax.annotation.Nullable String sso) { + public APIdeleteCommentPublicRequest sso(@javax.annotation.Nullable String sso) { this.sso = sso; return this; } /** - * Build call for deleteFeedPostPublic + * Build call for deleteCommentPublic * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1502,45 +1497,48 @@ public APIdeleteFeedPostPublicRequest sso(@javax.annotation.Nullable String sso) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteFeedPostPublicCall(tenantId, postId, broadcastId, sso, _callback); + return deleteCommentPublicCall(tenantId, commentId, broadcastId, editKey, sso, _callback); } /** - * Execute deleteFeedPostPublic request - * @return DeleteFeedPostPublic200Response + * Execute deleteCommentPublic request + * @return PublicAPIDeleteCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public DeleteFeedPostPublic200Response execute() throws ApiException { - ApiResponse localVarResp = deleteFeedPostPublicWithHttpInfo(tenantId, postId, broadcastId, sso); + public PublicAPIDeleteCommentResponse execute() throws ApiException { + ApiResponse localVarResp = deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey, sso); return localVarResp.getData(); } /** - * Execute deleteFeedPostPublic request with HTTP info returned - * @return ApiResponse<DeleteFeedPostPublic200Response> + * Execute deleteCommentPublic request with HTTP info returned + * @return ApiResponse<PublicAPIDeleteCommentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteFeedPostPublicWithHttpInfo(tenantId, postId, broadcastId, sso); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey, sso); } /** - * Execute deleteFeedPostPublic request (asynchronously) + * Execute deleteCommentPublic request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1549,10 +1547,11 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteFeedPostPublicAsync(tenantId, postId, broadcastId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCommentPublicAsync(tenantId, commentId, broadcastId, editKey, sso, _callback); } } @@ -1560,19 +1559,21 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public APIdeleteFeedPostPublicRequest deleteFeedPostPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId) { - return new APIdeleteFeedPostPublicRequest(tenantId, postId); + public APIdeleteCommentPublicRequest deleteCommentPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId) { + return new APIdeleteCommentPublicRequest(tenantId, commentId, broadcastId); } - private okhttp3.Call flagCommentPublicCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Boolean isFlagged, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCommentVoteCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1589,8 +1590,10 @@ private okhttp3.Call flagCommentPublicCall(@javax.annotation.Nonnull String tena Object localVarPostBody = null; // create path and map variables - String localVarPath = "/flag-comment/{commentId}" - .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + String localVarPath = "/comments/{tenantId}/{commentId}/vote/{voteId}" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())) + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())) + .replace("{" + "voteId" + "}", localVarApiClient.escapeString(voteId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1598,12 +1601,16 @@ private okhttp3.Call flagCommentPublicCall(@javax.annotation.Nonnull String tena Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); } - if (isFlagged != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("isFlagged", isFlagged)); + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + + if (editKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("editKey", editKey)); } if (sso != null) { @@ -1626,73 +1633,101 @@ private okhttp3.Call flagCommentPublicCall(@javax.annotation.Nonnull String tena } String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call flagCommentPublicValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Boolean isFlagged, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCommentVoteValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { - throw new ApiException("Missing the required parameter 'tenantId' when calling flagCommentPublic(Async)"); + throw new ApiException("Missing the required parameter 'tenantId' when calling deleteCommentVote(Async)"); } // verify the required parameter 'commentId' is set if (commentId == null) { - throw new ApiException("Missing the required parameter 'commentId' when calling flagCommentPublic(Async)"); + throw new ApiException("Missing the required parameter 'commentId' when calling deleteCommentVote(Async)"); } - // verify the required parameter 'isFlagged' is set - if (isFlagged == null) { - throw new ApiException("Missing the required parameter 'isFlagged' when calling flagCommentPublic(Async)"); + // verify the required parameter 'voteId' is set + if (voteId == null) { + throw new ApiException("Missing the required parameter 'voteId' when calling deleteCommentVote(Async)"); } - return flagCommentPublicCall(tenantId, commentId, isFlagged, sso, _callback); + // verify the required parameter 'urlId' is set + if (urlId == null) { + throw new ApiException("Missing the required parameter 'urlId' when calling deleteCommentVote(Async)"); + } + + // verify the required parameter 'broadcastId' is set + if (broadcastId == null) { + throw new ApiException("Missing the required parameter 'broadcastId' when calling deleteCommentVote(Async)"); + } + + return deleteCommentVoteCall(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, _callback); } - private ApiResponse flagCommentPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Boolean isFlagged, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = flagCommentPublicValidateBeforeCall(tenantId, commentId, isFlagged, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteCommentVoteWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = deleteCommentVoteValidateBeforeCall(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call flagCommentPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Boolean isFlagged, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCommentVoteAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = flagCommentPublicValidateBeforeCall(tenantId, commentId, isFlagged, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteCommentVoteValidateBeforeCall(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIflagCommentPublicRequest { + public class APIdeleteCommentVoteRequest { @javax.annotation.Nonnull private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nonnull - private final Boolean isFlagged; + private final String voteId; + @javax.annotation.Nonnull + private final String urlId; + @javax.annotation.Nonnull + private final String broadcastId; + @javax.annotation.Nullable + private String editKey; @javax.annotation.Nullable private String sso; - private APIflagCommentPublicRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Boolean isFlagged) { + private APIdeleteCommentVoteRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId) { this.tenantId = tenantId; this.commentId = commentId; - this.isFlagged = isFlagged; + this.voteId = voteId; + this.urlId = urlId; + this.broadcastId = broadcastId; + } + + /** + * Set editKey + * @param editKey (optional) + * @return APIdeleteCommentVoteRequest + */ + public APIdeleteCommentVoteRequest editKey(@javax.annotation.Nullable String editKey) { + this.editKey = editKey; + return this; } /** * Set sso * @param sso (optional) - * @return APIflagCommentPublicRequest + * @return APIdeleteCommentVoteRequest */ - public APIflagCommentPublicRequest sso(@javax.annotation.Nullable String sso) { + public APIdeleteCommentVoteRequest sso(@javax.annotation.Nullable String sso) { this.sso = sso; return this; } /** - * Build call for flagCommentPublic + * Build call for deleteCommentVote * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1701,45 +1736,48 @@ public APIflagCommentPublicRequest sso(@javax.annotation.Nullable String sso) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return flagCommentPublicCall(tenantId, commentId, isFlagged, sso, _callback); + return deleteCommentVoteCall(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, _callback); } /** - * Execute flagCommentPublic request - * @return FlagCommentPublic200Response + * Execute deleteCommentVote request + * @return VoteDeleteResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = flagCommentPublicWithHttpInfo(tenantId, commentId, isFlagged, sso); + public VoteDeleteResponse execute() throws ApiException { + ApiResponse localVarResp = deleteCommentVoteWithHttpInfo(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso); return localVarResp.getData(); } /** - * Execute flagCommentPublic request with HTTP info returned - * @return ApiResponse<FlagCommentPublic200Response> + * Execute deleteCommentVote request with HTTP info returned + * @return ApiResponse<VoteDeleteResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return flagCommentPublicWithHttpInfo(tenantId, commentId, isFlagged, sso); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCommentVoteWithHttpInfo(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso); } /** - * Execute flagCommentPublic request (asynchronously) + * Execute deleteCommentVote request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1748,10 +1786,11 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return flagCommentPublicAsync(tenantId, commentId, isFlagged, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCommentVoteAsync(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, _callback); } } @@ -1760,19 +1799,22 @@ public okhttp3.Call executeAsync(final ApiCallback * * @param tenantId (required) * @param commentId (required) - * @param isFlagged (required) - * @return APIflagCommentPublicRequest + * @param voteId (required) + * @param urlId (required) + * @param broadcastId (required) + * @return APIdeleteCommentVoteRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIflagCommentPublicRequest flagCommentPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Boolean isFlagged) { - return new APIflagCommentPublicRequest(tenantId, commentId, isFlagged); + public APIdeleteCommentVoteRequest deleteCommentVote(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId) { + return new APIdeleteCommentVoteRequest(tenantId, commentId, voteId, urlId, broadcastId); } - private okhttp3.Call getCommentTextCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteFeedPostPublicCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1789,9 +1831,9 @@ private okhttp3.Call getCommentTextCall(@javax.annotation.Nonnull String tenantI Object localVarPostBody = null; // create path and map variables - String localVarPath = "/comments/{tenantId}/{commentId}/text" + String localVarPath = "/feed-posts/{tenantId}/{postId}" .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())) - .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + .replace("{" + "postId" + "}", localVarApiClient.escapeString(postId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1799,8 +1841,8 @@ private okhttp3.Call getCommentTextCall(@javax.annotation.Nonnull String tenantI Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (editKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("editKey", editKey)); + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); } if (sso != null) { @@ -1823,77 +1865,77 @@ private okhttp3.Call getCommentTextCall(@javax.annotation.Nonnull String tenantI } String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCommentTextValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteFeedPostPublicValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { - throw new ApiException("Missing the required parameter 'tenantId' when calling getCommentText(Async)"); + throw new ApiException("Missing the required parameter 'tenantId' when calling deleteFeedPostPublic(Async)"); } - // verify the required parameter 'commentId' is set - if (commentId == null) { - throw new ApiException("Missing the required parameter 'commentId' when calling getCommentText(Async)"); + // verify the required parameter 'postId' is set + if (postId == null) { + throw new ApiException("Missing the required parameter 'postId' when calling deleteFeedPostPublic(Async)"); } - return getCommentTextCall(tenantId, commentId, editKey, sso, _callback); + return deleteFeedPostPublicCall(tenantId, postId, broadcastId, sso, _callback); } - private ApiResponse getCommentTextWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getCommentTextValidateBeforeCall(tenantId, commentId, editKey, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteFeedPostPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = deleteFeedPostPublicValidateBeforeCall(tenantId, postId, broadcastId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getCommentTextAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteFeedPostPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCommentTextValidateBeforeCall(tenantId, commentId, editKey, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteFeedPostPublicValidateBeforeCall(tenantId, postId, broadcastId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIgetCommentTextRequest { + public class APIdeleteFeedPostPublicRequest { @javax.annotation.Nonnull private final String tenantId; @javax.annotation.Nonnull - private final String commentId; + private final String postId; @javax.annotation.Nullable - private String editKey; + private String broadcastId; @javax.annotation.Nullable private String sso; - private APIgetCommentTextRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + private APIdeleteFeedPostPublicRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId) { this.tenantId = tenantId; - this.commentId = commentId; + this.postId = postId; } /** - * Set editKey - * @param editKey (optional) - * @return APIgetCommentTextRequest + * Set broadcastId + * @param broadcastId (optional) + * @return APIdeleteFeedPostPublicRequest */ - public APIgetCommentTextRequest editKey(@javax.annotation.Nullable String editKey) { - this.editKey = editKey; + public APIdeleteFeedPostPublicRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; return this; } /** * Set sso * @param sso (optional) - * @return APIgetCommentTextRequest + * @return APIdeleteFeedPostPublicRequest */ - public APIgetCommentTextRequest sso(@javax.annotation.Nullable String sso) { + public APIdeleteFeedPostPublicRequest sso(@javax.annotation.Nullable String sso) { this.sso = sso; return this; } /** - * Build call for getCommentText + * Build call for deleteFeedPostPublic * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1902,45 +1944,48 @@ public APIgetCommentTextRequest sso(@javax.annotation.Nullable String sso) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getCommentTextCall(tenantId, commentId, editKey, sso, _callback); + return deleteFeedPostPublicCall(tenantId, postId, broadcastId, sso, _callback); } /** - * Execute getCommentText request - * @return GetCommentText200Response + * Execute deleteFeedPostPublic request + * @return DeleteFeedPostPublicResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetCommentText200Response execute() throws ApiException { - ApiResponse localVarResp = getCommentTextWithHttpInfo(tenantId, commentId, editKey, sso); + public DeleteFeedPostPublicResponse execute() throws ApiException { + ApiResponse localVarResp = deleteFeedPostPublicWithHttpInfo(tenantId, postId, broadcastId, sso); return localVarResp.getData(); } /** - * Execute getCommentText request with HTTP info returned - * @return ApiResponse<GetCommentText200Response> + * Execute deleteFeedPostPublic request with HTTP info returned + * @return ApiResponse<DeleteFeedPostPublicResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getCommentTextWithHttpInfo(tenantId, commentId, editKey, sso); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteFeedPostPublicWithHttpInfo(tenantId, postId, broadcastId, sso); } /** - * Execute getCommentText request (asynchronously) + * Execute deleteFeedPostPublic request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1949,10 +1994,11 @@ public ApiResponse executeWithHttpInfo() throws ApiEx Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getCommentTextAsync(tenantId, commentId, editKey, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteFeedPostPublicAsync(tenantId, postId, broadcastId, sso, _callback); } } @@ -1960,19 +2006,20 @@ public okhttp3.Call executeAsync(final ApiCallback _c * * * @param tenantId (required) - * @param commentId (required) - * @return APIgetCommentTextRequest + * @param postId (required) + * @return APIdeleteFeedPostPublicRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIgetCommentTextRequest getCommentText(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { - return new APIgetCommentTextRequest(tenantId, commentId); + public APIdeleteFeedPostPublicRequest deleteFeedPostPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId) { + return new APIdeleteFeedPostPublicRequest(tenantId, postId); } - private okhttp3.Call getCommentVoteUserNamesCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Integer dir, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteV1PageReactCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1989,9 +2036,8 @@ private okhttp3.Call getCommentVoteUserNamesCall(@javax.annotation.Nonnull Strin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/comments/{tenantId}/{commentId}/votes" - .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())) - .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + String localVarPath = "/page-reacts/v1/likes/{tenantId}" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1999,12 +2045,8 @@ private okhttp3.Call getCommentVoteUserNamesCall(@javax.annotation.Nonnull Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (dir != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dir", dir)); - } - - if (sso != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); } final String[] localVarAccepts = { @@ -2023,73 +2065,53 @@ private okhttp3.Call getCommentVoteUserNamesCall(@javax.annotation.Nonnull Strin } String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCommentVoteUserNamesValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Integer dir, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteV1PageReactValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { - throw new ApiException("Missing the required parameter 'tenantId' when calling getCommentVoteUserNames(Async)"); + throw new ApiException("Missing the required parameter 'tenantId' when calling deleteV1PageReact(Async)"); } - // verify the required parameter 'commentId' is set - if (commentId == null) { - throw new ApiException("Missing the required parameter 'commentId' when calling getCommentVoteUserNames(Async)"); - } - - // verify the required parameter 'dir' is set - if (dir == null) { - throw new ApiException("Missing the required parameter 'dir' when calling getCommentVoteUserNames(Async)"); + // verify the required parameter 'urlId' is set + if (urlId == null) { + throw new ApiException("Missing the required parameter 'urlId' when calling deleteV1PageReact(Async)"); } - return getCommentVoteUserNamesCall(tenantId, commentId, dir, sso, _callback); + return deleteV1PageReactCall(tenantId, urlId, _callback); } - private ApiResponse getCommentVoteUserNamesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Integer dir, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getCommentVoteUserNamesValidateBeforeCall(tenantId, commentId, dir, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteV1PageReactWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) throws ApiException { + okhttp3.Call localVarCall = deleteV1PageReactValidateBeforeCall(tenantId, urlId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getCommentVoteUserNamesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Integer dir, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteV1PageReactAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCommentVoteUserNamesValidateBeforeCall(tenantId, commentId, dir, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteV1PageReactValidateBeforeCall(tenantId, urlId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIgetCommentVoteUserNamesRequest { + public class APIdeleteV1PageReactRequest { @javax.annotation.Nonnull private final String tenantId; @javax.annotation.Nonnull - private final String commentId; - @javax.annotation.Nonnull - private final Integer dir; - @javax.annotation.Nullable - private String sso; + private final String urlId; - private APIgetCommentVoteUserNamesRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Integer dir) { + private APIdeleteV1PageReactRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { this.tenantId = tenantId; - this.commentId = commentId; - this.dir = dir; - } - - /** - * Set sso - * @param sso (optional) - * @return APIgetCommentVoteUserNamesRequest - */ - public APIgetCommentVoteUserNamesRequest sso(@javax.annotation.Nullable String sso) { - this.sso = sso; - return this; + this.urlId = urlId; } /** - * Build call for getCommentVoteUserNames + * Build call for deleteV1PageReact * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2098,45 +2120,48 @@ public APIgetCommentVoteUserNamesRequest sso(@javax.annotation.Nullable String s Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getCommentVoteUserNamesCall(tenantId, commentId, dir, sso, _callback); + return deleteV1PageReactCall(tenantId, urlId, _callback); } /** - * Execute getCommentVoteUserNames request - * @return GetCommentVoteUserNames200Response + * Execute deleteV1PageReact request + * @return CreateV1PageReact * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetCommentVoteUserNames200Response execute() throws ApiException { - ApiResponse localVarResp = getCommentVoteUserNamesWithHttpInfo(tenantId, commentId, dir, sso); + public CreateV1PageReact execute() throws ApiException { + ApiResponse localVarResp = deleteV1PageReactWithHttpInfo(tenantId, urlId); return localVarResp.getData(); } /** - * Execute getCommentVoteUserNames request with HTTP info returned - * @return ApiResponse<GetCommentVoteUserNames200Response> + * Execute deleteV1PageReact request with HTTP info returned + * @return ApiResponse<CreateV1PageReact> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getCommentVoteUserNamesWithHttpInfo(tenantId, commentId, dir, sso); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteV1PageReactWithHttpInfo(tenantId, urlId); } /** - * Execute getCommentVoteUserNames request (asynchronously) + * Execute deleteV1PageReact request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2145,10 +2170,11 @@ public ApiResponse executeWithHttpInfo() thr Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getCommentVoteUserNamesAsync(tenantId, commentId, dir, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteV1PageReactAsync(tenantId, urlId, _callback); } } @@ -2156,20 +2182,20 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public APIgetCommentVoteUserNamesRequest getCommentVoteUserNames(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Integer dir) { - return new APIgetCommentVoteUserNamesRequest(tenantId, commentId, dir); + public APIdeleteV1PageReactRequest deleteV1PageReact(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + return new APIdeleteV1PageReactRequest(tenantId, urlId); } - private okhttp3.Call getCommentsPublicCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Boolean countChildren, @javax.annotation.Nullable String fetchPageForCommentId, @javax.annotation.Nullable Boolean includeConfig, @javax.annotation.Nullable Boolean countAll, @javax.annotation.Nullable Boolean includei10n, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String modules, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeNotificationCount, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable Boolean useFullTranslationIds, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable String searchText, @javax.annotation.Nullable List hashTags, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String customConfigStr, @javax.annotation.Nullable String afterCommentId, @javax.annotation.Nullable String beforeCommentId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteV2PageReactCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2186,7 +2212,7 @@ private okhttp3.Call getCommentsPublicCall(@javax.annotation.Nonnull String tena Object localVarPostBody = null; // create path and map variables - String localVarPath = "/comments/{tenantId}" + String localVarPath = "/page-reacts/v2/{tenantId}" .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); List localVarQueryParams = new ArrayList(); @@ -2199,108 +2225,201 @@ private okhttp3.Call getCommentsPublicCall(@javax.annotation.Nonnull String tena localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); } - if (page != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + if (id != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id)); } - if (direction != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("direction", direction)); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - if (sso != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - if (skip != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("skip", skip)); - } + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - if (skipChildren != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("skipChildren", skipChildren)); + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteV2PageReactValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling deleteV2PageReact(Async)"); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + // verify the required parameter 'urlId' is set + if (urlId == null) { + throw new ApiException("Missing the required parameter 'urlId' when calling deleteV2PageReact(Async)"); } - if (limitChildren != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limitChildren", limitChildren)); + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteV2PageReact(Async)"); } - if (countChildren != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("countChildren", countChildren)); - } + return deleteV2PageReactCall(tenantId, urlId, id, _callback); - if (fetchPageForCommentId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fetchPageForCommentId", fetchPageForCommentId)); - } + } - if (includeConfig != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeConfig", includeConfig)); - } - if (countAll != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("countAll", countAll)); - } + private ApiResponse deleteV2PageReactWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) throws ApiException { + okhttp3.Call localVarCall = deleteV2PageReactValidateBeforeCall(tenantId, urlId, id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } - if (includei10n != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("includei10n", includei10n)); - } + private okhttp3.Call deleteV2PageReactAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { - if (locale != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); - } + okhttp3.Call localVarCall = deleteV2PageReactValidateBeforeCall(tenantId, urlId, id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } - if (modules != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("modules", modules)); - } + public class APIdeleteV2PageReactRequest { + @javax.annotation.Nonnull + private final String tenantId; + @javax.annotation.Nonnull + private final String urlId; + @javax.annotation.Nonnull + private final String id; - if (isCrawler != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("isCrawler", isCrawler)); + private APIdeleteV2PageReactRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) { + this.tenantId = tenantId; + this.urlId = urlId; + this.id = id; } - if (includeNotificationCount != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeNotificationCount", includeNotificationCount)); + /** + * Build call for deleteV2PageReact + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteV2PageReactCall(tenantId, urlId, id, _callback); } - if (asTree != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("asTree", asTree)); + /** + * Execute deleteV2PageReact request + * @return CreateV1PageReact + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public CreateV1PageReact execute() throws ApiException { + ApiResponse localVarResp = deleteV2PageReactWithHttpInfo(tenantId, urlId, id); + return localVarResp.getData(); } - if (maxTreeDepth != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("maxTreeDepth", maxTreeDepth)); + /** + * Execute deleteV2PageReact request with HTTP info returned + * @return ApiResponse<CreateV1PageReact> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteV2PageReactWithHttpInfo(tenantId, urlId, id); } - if (useFullTranslationIds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("useFullTranslationIds", useFullTranslationIds)); + /** + * Execute deleteV2PageReact request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteV2PageReactAsync(tenantId, urlId, id, _callback); } + } - if (parentId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("parentId", parentId)); - } + /** + * + * + * @param tenantId (required) + * @param urlId (required) + * @param id (required) + * @return APIdeleteV2PageReactRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIdeleteV2PageReactRequest deleteV2PageReact(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) { + return new APIdeleteV2PageReactRequest(tenantId, urlId, id); + } + private okhttp3.Call flagCommentPublicCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Boolean isFlagged, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; - if (searchText != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("searchText", searchText)); + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - if (hashTags != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "hashTags", hashTags)); - } + Object localVarPostBody = null; - if (userId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); - } + // create path and map variables + String localVarPath = "/flag-comment/{commentId}" + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); - if (customConfigStr != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("customConfigStr", customConfigStr)); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } - if (afterCommentId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("afterCommentId", afterCommentId)); + if (isFlagged != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("isFlagged", isFlagged)); } - if (beforeCommentId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("beforeCommentId", beforeCommentId)); + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } final String[] localVarAccepts = { @@ -2319,365 +2438,3725 @@ private okhttp3.Call getCommentsPublicCall(@javax.annotation.Nonnull String tena } String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCommentsPublicValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Boolean countChildren, @javax.annotation.Nullable String fetchPageForCommentId, @javax.annotation.Nullable Boolean includeConfig, @javax.annotation.Nullable Boolean countAll, @javax.annotation.Nullable Boolean includei10n, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String modules, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeNotificationCount, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable Boolean useFullTranslationIds, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable String searchText, @javax.annotation.Nullable List hashTags, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String customConfigStr, @javax.annotation.Nullable String afterCommentId, @javax.annotation.Nullable String beforeCommentId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call flagCommentPublicValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Boolean isFlagged, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { - throw new ApiException("Missing the required parameter 'tenantId' when calling getCommentsPublic(Async)"); + throw new ApiException("Missing the required parameter 'tenantId' when calling flagCommentPublic(Async)"); } - // verify the required parameter 'urlId' is set - if (urlId == null) { - throw new ApiException("Missing the required parameter 'urlId' when calling getCommentsPublic(Async)"); + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling flagCommentPublic(Async)"); } - return getCommentsPublicCall(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, _callback); + // verify the required parameter 'isFlagged' is set + if (isFlagged == null) { + throw new ApiException("Missing the required parameter 'isFlagged' when calling flagCommentPublic(Async)"); + } + + return flagCommentPublicCall(tenantId, commentId, isFlagged, sso, _callback); } - private ApiResponse getCommentsPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Boolean countChildren, @javax.annotation.Nullable String fetchPageForCommentId, @javax.annotation.Nullable Boolean includeConfig, @javax.annotation.Nullable Boolean countAll, @javax.annotation.Nullable Boolean includei10n, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String modules, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeNotificationCount, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable Boolean useFullTranslationIds, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable String searchText, @javax.annotation.Nullable List hashTags, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String customConfigStr, @javax.annotation.Nullable String afterCommentId, @javax.annotation.Nullable String beforeCommentId) throws ApiException { - okhttp3.Call localVarCall = getCommentsPublicValidateBeforeCall(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, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse flagCommentPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Boolean isFlagged, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = flagCommentPublicValidateBeforeCall(tenantId, commentId, isFlagged, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getCommentsPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Boolean countChildren, @javax.annotation.Nullable String fetchPageForCommentId, @javax.annotation.Nullable Boolean includeConfig, @javax.annotation.Nullable Boolean countAll, @javax.annotation.Nullable Boolean includei10n, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String modules, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeNotificationCount, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable Boolean useFullTranslationIds, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable String searchText, @javax.annotation.Nullable List hashTags, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String customConfigStr, @javax.annotation.Nullable String afterCommentId, @javax.annotation.Nullable String beforeCommentId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call flagCommentPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Boolean isFlagged, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCommentsPublicValidateBeforeCall(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, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = flagCommentPublicValidateBeforeCall(tenantId, commentId, isFlagged, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIgetCommentsPublicRequest { + public class APIflagCommentPublicRequest { @javax.annotation.Nonnull private final String tenantId; @javax.annotation.Nonnull - private final String urlId; - @javax.annotation.Nullable - private Integer page; - @javax.annotation.Nullable - private SortDirections direction; + private final String commentId; + @javax.annotation.Nonnull + private final Boolean isFlagged; @javax.annotation.Nullable private String sso; - @javax.annotation.Nullable - private Integer skip; - @javax.annotation.Nullable - private Integer skipChildren; - @javax.annotation.Nullable - private Integer limit; - @javax.annotation.Nullable - private Integer limitChildren; - @javax.annotation.Nullable - private Boolean countChildren; - @javax.annotation.Nullable - private String fetchPageForCommentId; - @javax.annotation.Nullable - private Boolean includeConfig; - @javax.annotation.Nullable - private Boolean countAll; - @javax.annotation.Nullable - private Boolean includei10n; - @javax.annotation.Nullable - private String locale; - @javax.annotation.Nullable - private String modules; - @javax.annotation.Nullable - private Boolean isCrawler; - @javax.annotation.Nullable - private Boolean includeNotificationCount; - @javax.annotation.Nullable - private Boolean asTree; - @javax.annotation.Nullable - private Integer maxTreeDepth; - @javax.annotation.Nullable - private Boolean useFullTranslationIds; - @javax.annotation.Nullable - private String parentId; - @javax.annotation.Nullable - private String searchText; - @javax.annotation.Nullable - private List hashTags; - @javax.annotation.Nullable - private String userId; - @javax.annotation.Nullable - private String customConfigStr; - @javax.annotation.Nullable - private String afterCommentId; - @javax.annotation.Nullable - private String beforeCommentId; - private APIgetCommentsPublicRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + private APIflagCommentPublicRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Boolean isFlagged) { this.tenantId = tenantId; - this.urlId = urlId; + this.commentId = commentId; + this.isFlagged = isFlagged; } /** - * Set page - * @param page (optional) - * @return APIgetCommentsPublicRequest + * Set sso + * @param sso (optional) + * @return APIflagCommentPublicRequest */ - public APIgetCommentsPublicRequest page(@javax.annotation.Nullable Integer page) { - this.page = page; + public APIflagCommentPublicRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; return this; } /** - * Set direction - * @param direction (optional) - * @return APIgetCommentsPublicRequest + * Build call for flagCommentPublic + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIgetCommentsPublicRequest direction(@javax.annotation.Nullable SortDirections direction) { - this.direction = direction; - return this; + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return flagCommentPublicCall(tenantId, commentId, isFlagged, sso, _callback); } /** - * Set sso - * @param sso (optional) - * @return APIgetCommentsPublicRequest - */ - public APIgetCommentsPublicRequest sso(@javax.annotation.Nullable String sso) { + * Execute flagCommentPublic request + * @return APIEmptyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = flagCommentPublicWithHttpInfo(tenantId, commentId, isFlagged, sso); + return localVarResp.getData(); + } + + /** + * Execute flagCommentPublic request with HTTP info returned + * @return ApiResponse<APIEmptyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return flagCommentPublicWithHttpInfo(tenantId, commentId, isFlagged, sso); + } + + /** + * Execute flagCommentPublic request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return flagCommentPublicAsync(tenantId, commentId, isFlagged, sso, _callback); + } + } + + /** + * + * + * @param tenantId (required) + * @param commentId (required) + * @param isFlagged (required) + * @return APIflagCommentPublicRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIflagCommentPublicRequest flagCommentPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Boolean isFlagged) { + return new APIflagCommentPublicRequest(tenantId, commentId, isFlagged); + } + private okhttp3.Call getCommentTextCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/comments/{tenantId}/{commentId}/text" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())) + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (editKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("editKey", editKey)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCommentTextValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getCommentText(Async)"); + } + + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling getCommentText(Async)"); + } + + return getCommentTextCall(tenantId, commentId, editKey, sso, _callback); + + } + + + private ApiResponse getCommentTextWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCommentTextValidateBeforeCall(tenantId, commentId, editKey, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getCommentTextAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCommentTextValidateBeforeCall(tenantId, commentId, editKey, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetCommentTextRequest { + @javax.annotation.Nonnull + private final String tenantId; + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nullable + private String editKey; + @javax.annotation.Nullable + private String sso; + + private APIgetCommentTextRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; + this.commentId = commentId; + } + + /** + * Set editKey + * @param editKey (optional) + * @return APIgetCommentTextRequest + */ + public APIgetCommentTextRequest editKey(@javax.annotation.Nullable String editKey) { + this.editKey = editKey; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetCommentTextRequest + */ + public APIgetCommentTextRequest sso(@javax.annotation.Nullable String sso) { this.sso = sso; return this; } - /** - * Set skip - * @param skip (optional) - * @return APIgetCommentsPublicRequest - */ - public APIgetCommentsPublicRequest skip(@javax.annotation.Nullable Integer skip) { - this.skip = skip; - return this; + /** + * Build call for getCommentText + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getCommentTextCall(tenantId, commentId, editKey, sso, _callback); + } + + /** + * Execute getCommentText request + * @return PublicAPIGetCommentTextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public PublicAPIGetCommentTextResponse execute() throws ApiException { + ApiResponse localVarResp = getCommentTextWithHttpInfo(tenantId, commentId, editKey, sso); + return localVarResp.getData(); + } + + /** + * Execute getCommentText request with HTTP info returned + * @return ApiResponse<PublicAPIGetCommentTextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getCommentTextWithHttpInfo(tenantId, commentId, editKey, sso); + } + + /** + * Execute getCommentText request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getCommentTextAsync(tenantId, commentId, editKey, sso, _callback); + } + } + + /** + * + * + * @param tenantId (required) + * @param commentId (required) + * @return APIgetCommentTextRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetCommentTextRequest getCommentText(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIgetCommentTextRequest(tenantId, commentId); + } + private okhttp3.Call getCommentVoteUserNamesCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Integer dir, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/comments/{tenantId}/{commentId}/votes" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())) + .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (dir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dir", dir)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCommentVoteUserNamesValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Integer dir, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getCommentVoteUserNames(Async)"); + } + + // verify the required parameter 'commentId' is set + if (commentId == null) { + throw new ApiException("Missing the required parameter 'commentId' when calling getCommentVoteUserNames(Async)"); + } + + // verify the required parameter 'dir' is set + if (dir == null) { + throw new ApiException("Missing the required parameter 'dir' when calling getCommentVoteUserNames(Async)"); + } + + return getCommentVoteUserNamesCall(tenantId, commentId, dir, sso, _callback); + + } + + + private ApiResponse getCommentVoteUserNamesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Integer dir, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCommentVoteUserNamesValidateBeforeCall(tenantId, commentId, dir, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getCommentVoteUserNamesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Integer dir, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCommentVoteUserNamesValidateBeforeCall(tenantId, commentId, dir, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetCommentVoteUserNamesRequest { + @javax.annotation.Nonnull + private final String tenantId; + @javax.annotation.Nonnull + private final String commentId; + @javax.annotation.Nonnull + private final Integer dir; + @javax.annotation.Nullable + private String sso; + + private APIgetCommentVoteUserNamesRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Integer dir) { + this.tenantId = tenantId; + this.commentId = commentId; + this.dir = dir; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetCommentVoteUserNamesRequest + */ + public APIgetCommentVoteUserNamesRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getCommentVoteUserNames + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getCommentVoteUserNamesCall(tenantId, commentId, dir, sso, _callback); + } + + /** + * Execute getCommentVoteUserNames request + * @return GetCommentVoteUserNamesSuccessResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public GetCommentVoteUserNamesSuccessResponse execute() throws ApiException { + ApiResponse localVarResp = getCommentVoteUserNamesWithHttpInfo(tenantId, commentId, dir, sso); + return localVarResp.getData(); + } + + /** + * Execute getCommentVoteUserNames request with HTTP info returned + * @return ApiResponse<GetCommentVoteUserNamesSuccessResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getCommentVoteUserNamesWithHttpInfo(tenantId, commentId, dir, sso); + } + + /** + * Execute getCommentVoteUserNames request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getCommentVoteUserNamesAsync(tenantId, commentId, dir, sso, _callback); + } + } + + /** + * + * + * @param tenantId (required) + * @param commentId (required) + * @param dir (required) + * @return APIgetCommentVoteUserNamesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetCommentVoteUserNamesRequest getCommentVoteUserNames(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull Integer dir) { + return new APIgetCommentVoteUserNamesRequest(tenantId, commentId, dir); + } + private okhttp3.Call getCommentsForUserCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable String repliesToUserId, @javax.annotation.Nullable Double page, @javax.annotation.Nullable Boolean includei10n, @javax.annotation.Nullable String locale, @javax.annotation.Nullable Boolean isCrawler, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/comments-for-user"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (userId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); + } + + if (direction != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("direction", direction)); + } + + if (repliesToUserId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("repliesToUserId", repliesToUserId)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (includei10n != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includei10n", includei10n)); + } + + if (locale != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); + } + + if (isCrawler != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("isCrawler", isCrawler)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCommentsForUserValidateBeforeCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable String repliesToUserId, @javax.annotation.Nullable Double page, @javax.annotation.Nullable Boolean includei10n, @javax.annotation.Nullable String locale, @javax.annotation.Nullable Boolean isCrawler, final ApiCallback _callback) throws ApiException { + return getCommentsForUserCall(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler, _callback); + + } + + + private ApiResponse getCommentsForUserWithHttpInfo(@javax.annotation.Nullable String userId, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable String repliesToUserId, @javax.annotation.Nullable Double page, @javax.annotation.Nullable Boolean includei10n, @javax.annotation.Nullable String locale, @javax.annotation.Nullable Boolean isCrawler) throws ApiException { + okhttp3.Call localVarCall = getCommentsForUserValidateBeforeCall(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getCommentsForUserAsync(@javax.annotation.Nullable String userId, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable String repliesToUserId, @javax.annotation.Nullable Double page, @javax.annotation.Nullable Boolean includei10n, @javax.annotation.Nullable String locale, @javax.annotation.Nullable Boolean isCrawler, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCommentsForUserValidateBeforeCall(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetCommentsForUserRequest { + @javax.annotation.Nullable + private String userId; + @javax.annotation.Nullable + private SortDirections direction; + @javax.annotation.Nullable + private String repliesToUserId; + @javax.annotation.Nullable + private Double page; + @javax.annotation.Nullable + private Boolean includei10n; + @javax.annotation.Nullable + private String locale; + @javax.annotation.Nullable + private Boolean isCrawler; + + private APIgetCommentsForUserRequest() { + } + + /** + * Set userId + * @param userId (optional) + * @return APIgetCommentsForUserRequest + */ + public APIgetCommentsForUserRequest userId(@javax.annotation.Nullable String userId) { + this.userId = userId; + return this; + } + + /** + * Set direction + * @param direction (optional) + * @return APIgetCommentsForUserRequest + */ + public APIgetCommentsForUserRequest direction(@javax.annotation.Nullable SortDirections direction) { + this.direction = direction; + return this; + } + + /** + * Set repliesToUserId + * @param repliesToUserId (optional) + * @return APIgetCommentsForUserRequest + */ + public APIgetCommentsForUserRequest repliesToUserId(@javax.annotation.Nullable String repliesToUserId) { + this.repliesToUserId = repliesToUserId; + return this; + } + + /** + * Set page + * @param page (optional) + * @return APIgetCommentsForUserRequest + */ + public APIgetCommentsForUserRequest page(@javax.annotation.Nullable Double page) { + this.page = page; + return this; + } + + /** + * Set includei10n + * @param includei10n (optional) + * @return APIgetCommentsForUserRequest + */ + public APIgetCommentsForUserRequest includei10n(@javax.annotation.Nullable Boolean includei10n) { + this.includei10n = includei10n; + return this; + } + + /** + * Set locale + * @param locale (optional) + * @return APIgetCommentsForUserRequest + */ + public APIgetCommentsForUserRequest locale(@javax.annotation.Nullable String locale) { + this.locale = locale; + return this; + } + + /** + * Set isCrawler + * @param isCrawler (optional) + * @return APIgetCommentsForUserRequest + */ + public APIgetCommentsForUserRequest isCrawler(@javax.annotation.Nullable Boolean isCrawler) { + this.isCrawler = isCrawler; + return this; + } + + /** + * Build call for getCommentsForUser + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getCommentsForUserCall(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler, _callback); + } + + /** + * Execute getCommentsForUser request + * @return GetCommentsForUserResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public GetCommentsForUserResponse execute() throws ApiException { + ApiResponse localVarResp = getCommentsForUserWithHttpInfo(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler); + return localVarResp.getData(); + } + + /** + * Execute getCommentsForUser request with HTTP info returned + * @return ApiResponse<GetCommentsForUserResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getCommentsForUserWithHttpInfo(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler); + } + + /** + * Execute getCommentsForUser request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getCommentsForUserAsync(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler, _callback); + } + } + + /** + * + * + * @return APIgetCommentsForUserRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetCommentsForUserRequest getCommentsForUser() { + return new APIgetCommentsForUserRequest(); + } + private okhttp3.Call getCommentsPublicCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Boolean countChildren, @javax.annotation.Nullable String fetchPageForCommentId, @javax.annotation.Nullable Boolean includeConfig, @javax.annotation.Nullable Boolean countAll, @javax.annotation.Nullable Boolean includei10n, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String modules, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeNotificationCount, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable Boolean useFullTranslationIds, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable String searchText, @javax.annotation.Nullable List hashTags, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String customConfigStr, @javax.annotation.Nullable String afterCommentId, @javax.annotation.Nullable String beforeCommentId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/comments/{tenantId}" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (direction != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("direction", direction)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + if (skip != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("skip", skip)); + } + + if (skipChildren != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("skipChildren", skipChildren)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (limitChildren != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limitChildren", limitChildren)); + } + + if (countChildren != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("countChildren", countChildren)); + } + + if (fetchPageForCommentId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fetchPageForCommentId", fetchPageForCommentId)); + } + + if (includeConfig != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeConfig", includeConfig)); + } + + if (countAll != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("countAll", countAll)); + } + + if (includei10n != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includei10n", includei10n)); + } + + if (locale != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); + } + + if (modules != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("modules", modules)); + } + + if (isCrawler != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("isCrawler", isCrawler)); + } + + if (includeNotificationCount != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeNotificationCount", includeNotificationCount)); + } + + if (asTree != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("asTree", asTree)); + } + + if (maxTreeDepth != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("maxTreeDepth", maxTreeDepth)); + } + + if (useFullTranslationIds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("useFullTranslationIds", useFullTranslationIds)); + } + + if (parentId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("parentId", parentId)); + } + + if (searchText != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("searchText", searchText)); + } + + if (hashTags != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "hashTags", hashTags)); + } + + if (userId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); + } + + if (customConfigStr != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customConfigStr", customConfigStr)); + } + + if (afterCommentId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("afterCommentId", afterCommentId)); + } + + if (beforeCommentId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("beforeCommentId", beforeCommentId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCommentsPublicValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Boolean countChildren, @javax.annotation.Nullable String fetchPageForCommentId, @javax.annotation.Nullable Boolean includeConfig, @javax.annotation.Nullable Boolean countAll, @javax.annotation.Nullable Boolean includei10n, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String modules, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeNotificationCount, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable Boolean useFullTranslationIds, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable String searchText, @javax.annotation.Nullable List hashTags, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String customConfigStr, @javax.annotation.Nullable String afterCommentId, @javax.annotation.Nullable String beforeCommentId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getCommentsPublic(Async)"); + } + + // verify the required parameter 'urlId' is set + if (urlId == null) { + throw new ApiException("Missing the required parameter 'urlId' when calling getCommentsPublic(Async)"); + } + + return getCommentsPublicCall(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, _callback); + + } + + + private ApiResponse getCommentsPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Boolean countChildren, @javax.annotation.Nullable String fetchPageForCommentId, @javax.annotation.Nullable Boolean includeConfig, @javax.annotation.Nullable Boolean countAll, @javax.annotation.Nullable Boolean includei10n, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String modules, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeNotificationCount, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable Boolean useFullTranslationIds, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable String searchText, @javax.annotation.Nullable List hashTags, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String customConfigStr, @javax.annotation.Nullable String afterCommentId, @javax.annotation.Nullable String beforeCommentId) throws ApiException { + okhttp3.Call localVarCall = getCommentsPublicValidateBeforeCall(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, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getCommentsPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable SortDirections direction, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Integer skip, @javax.annotation.Nullable Integer skipChildren, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer limitChildren, @javax.annotation.Nullable Boolean countChildren, @javax.annotation.Nullable String fetchPageForCommentId, @javax.annotation.Nullable Boolean includeConfig, @javax.annotation.Nullable Boolean countAll, @javax.annotation.Nullable Boolean includei10n, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String modules, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeNotificationCount, @javax.annotation.Nullable Boolean asTree, @javax.annotation.Nullable Integer maxTreeDepth, @javax.annotation.Nullable Boolean useFullTranslationIds, @javax.annotation.Nullable String parentId, @javax.annotation.Nullable String searchText, @javax.annotation.Nullable List hashTags, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String customConfigStr, @javax.annotation.Nullable String afterCommentId, @javax.annotation.Nullable String beforeCommentId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCommentsPublicValidateBeforeCall(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, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetCommentsPublicRequest { + @javax.annotation.Nonnull + private final String tenantId; + @javax.annotation.Nonnull + private final String urlId; + @javax.annotation.Nullable + private Integer page; + @javax.annotation.Nullable + private SortDirections direction; + @javax.annotation.Nullable + private String sso; + @javax.annotation.Nullable + private Integer skip; + @javax.annotation.Nullable + private Integer skipChildren; + @javax.annotation.Nullable + private Integer limit; + @javax.annotation.Nullable + private Integer limitChildren; + @javax.annotation.Nullable + private Boolean countChildren; + @javax.annotation.Nullable + private String fetchPageForCommentId; + @javax.annotation.Nullable + private Boolean includeConfig; + @javax.annotation.Nullable + private Boolean countAll; + @javax.annotation.Nullable + private Boolean includei10n; + @javax.annotation.Nullable + private String locale; + @javax.annotation.Nullable + private String modules; + @javax.annotation.Nullable + private Boolean isCrawler; + @javax.annotation.Nullable + private Boolean includeNotificationCount; + @javax.annotation.Nullable + private Boolean asTree; + @javax.annotation.Nullable + private Integer maxTreeDepth; + @javax.annotation.Nullable + private Boolean useFullTranslationIds; + @javax.annotation.Nullable + private String parentId; + @javax.annotation.Nullable + private String searchText; + @javax.annotation.Nullable + private List hashTags; + @javax.annotation.Nullable + private String userId; + @javax.annotation.Nullable + private String customConfigStr; + @javax.annotation.Nullable + private String afterCommentId; + @javax.annotation.Nullable + private String beforeCommentId; + + private APIgetCommentsPublicRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + this.tenantId = tenantId; + this.urlId = urlId; + } + + /** + * Set page + * @param page (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest page(@javax.annotation.Nullable Integer page) { + this.page = page; + return this; + } + + /** + * Set direction + * @param direction (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest direction(@javax.annotation.Nullable SortDirections direction) { + this.direction = direction; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Set skip + * @param skip (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest skip(@javax.annotation.Nullable Integer skip) { + this.skip = skip; + return this; + } + + /** + * Set skipChildren + * @param skipChildren (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest skipChildren(@javax.annotation.Nullable Integer skipChildren) { + this.skipChildren = skipChildren; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest limit(@javax.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set limitChildren + * @param limitChildren (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest limitChildren(@javax.annotation.Nullable Integer limitChildren) { + this.limitChildren = limitChildren; + return this; + } + + /** + * Set countChildren + * @param countChildren (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest countChildren(@javax.annotation.Nullable Boolean countChildren) { + this.countChildren = countChildren; + return this; + } + + /** + * Set fetchPageForCommentId + * @param fetchPageForCommentId (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest fetchPageForCommentId(@javax.annotation.Nullable String fetchPageForCommentId) { + this.fetchPageForCommentId = fetchPageForCommentId; + return this; + } + + /** + * Set includeConfig + * @param includeConfig (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest includeConfig(@javax.annotation.Nullable Boolean includeConfig) { + this.includeConfig = includeConfig; + return this; + } + + /** + * Set countAll + * @param countAll (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest countAll(@javax.annotation.Nullable Boolean countAll) { + this.countAll = countAll; + return this; + } + + /** + * Set includei10n + * @param includei10n (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest includei10n(@javax.annotation.Nullable Boolean includei10n) { + this.includei10n = includei10n; + return this; + } + + /** + * Set locale + * @param locale (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest locale(@javax.annotation.Nullable String locale) { + this.locale = locale; + return this; + } + + /** + * Set modules + * @param modules (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest modules(@javax.annotation.Nullable String modules) { + this.modules = modules; + return this; + } + + /** + * Set isCrawler + * @param isCrawler (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest isCrawler(@javax.annotation.Nullable Boolean isCrawler) { + this.isCrawler = isCrawler; + return this; + } + + /** + * Set includeNotificationCount + * @param includeNotificationCount (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest includeNotificationCount(@javax.annotation.Nullable Boolean includeNotificationCount) { + this.includeNotificationCount = includeNotificationCount; + return this; + } + + /** + * Set asTree + * @param asTree (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest asTree(@javax.annotation.Nullable Boolean asTree) { + this.asTree = asTree; + return this; + } + + /** + * Set maxTreeDepth + * @param maxTreeDepth (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest maxTreeDepth(@javax.annotation.Nullable Integer maxTreeDepth) { + this.maxTreeDepth = maxTreeDepth; + return this; + } + + /** + * Set useFullTranslationIds + * @param useFullTranslationIds (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest useFullTranslationIds(@javax.annotation.Nullable Boolean useFullTranslationIds) { + this.useFullTranslationIds = useFullTranslationIds; + return this; + } + + /** + * Set parentId + * @param parentId (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest parentId(@javax.annotation.Nullable String parentId) { + this.parentId = parentId; + return this; + } + + /** + * Set searchText + * @param searchText (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest searchText(@javax.annotation.Nullable String searchText) { + this.searchText = searchText; + return this; + } + + /** + * Set hashTags + * @param hashTags (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest hashTags(@javax.annotation.Nullable List hashTags) { + this.hashTags = hashTags; + return this; + } + + /** + * Set userId + * @param userId (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest userId(@javax.annotation.Nullable String userId) { + this.userId = userId; + return this; + } + + /** + * Set customConfigStr + * @param customConfigStr (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest customConfigStr(@javax.annotation.Nullable String customConfigStr) { + this.customConfigStr = customConfigStr; + return this; + } + + /** + * Set afterCommentId + * @param afterCommentId (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest afterCommentId(@javax.annotation.Nullable String afterCommentId) { + this.afterCommentId = afterCommentId; + return this; + } + + /** + * Set beforeCommentId + * @param beforeCommentId (optional) + * @return APIgetCommentsPublicRequest + */ + public APIgetCommentsPublicRequest beforeCommentId(@javax.annotation.Nullable String beforeCommentId) { + this.beforeCommentId = beforeCommentId; + return this; + } + + /** + * Build call for getCommentsPublic + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getCommentsPublicCall(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, _callback); + } + + /** + * Execute getCommentsPublic request + * @return GetCommentsResponseWithPresencePublicComment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public GetCommentsResponseWithPresencePublicComment execute() throws ApiException { + ApiResponse localVarResp = getCommentsPublicWithHttpInfo(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); + return localVarResp.getData(); + } + + /** + * Execute getCommentsPublic request with HTTP info returned + * @return ApiResponse<GetCommentsResponseWithPresencePublicComment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getCommentsPublicWithHttpInfo(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); + } + + /** + * Execute getCommentsPublic request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getCommentsPublicAsync(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, _callback); + } + } + + /** + * + * req tenantId urlId + * @param tenantId (required) + * @param urlId (required) + * @return APIgetCommentsPublicRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetCommentsPublicRequest getCommentsPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + return new APIgetCommentsPublicRequest(tenantId, urlId); + } + private okhttp3.Call getEventLogCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nullable Long endTime, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/event-log/{tenantId}" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); + } + + if (userIdWS != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("userIdWS", userIdWS)); + } + + if (startTime != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); + } + + if (endTime != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getEventLogValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nullable Long endTime, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getEventLog(Async)"); + } + + // verify the required parameter 'urlId' is set + if (urlId == null) { + throw new ApiException("Missing the required parameter 'urlId' when calling getEventLog(Async)"); + } + + // verify the required parameter 'userIdWS' is set + if (userIdWS == null) { + throw new ApiException("Missing the required parameter 'userIdWS' when calling getEventLog(Async)"); + } + + // verify the required parameter 'startTime' is set + if (startTime == null) { + throw new ApiException("Missing the required parameter 'startTime' when calling getEventLog(Async)"); + } + + return getEventLogCall(tenantId, urlId, userIdWS, startTime, endTime, _callback); + + } + + + private ApiResponse getEventLogWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nullable Long endTime) throws ApiException { + okhttp3.Call localVarCall = getEventLogValidateBeforeCall(tenantId, urlId, userIdWS, startTime, endTime, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getEventLogAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nullable Long endTime, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getEventLogValidateBeforeCall(tenantId, urlId, userIdWS, startTime, endTime, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetEventLogRequest { + @javax.annotation.Nonnull + private final String tenantId; + @javax.annotation.Nonnull + private final String urlId; + @javax.annotation.Nonnull + private final String userIdWS; + @javax.annotation.Nonnull + private final Long startTime; + @javax.annotation.Nullable + private Long endTime; + + private APIgetEventLogRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime) { + this.tenantId = tenantId; + this.urlId = urlId; + this.userIdWS = userIdWS; + this.startTime = startTime; + } + + /** + * Set endTime + * @param endTime (optional) + * @return APIgetEventLogRequest + */ + public APIgetEventLogRequest endTime(@javax.annotation.Nullable Long endTime) { + this.endTime = endTime; + return this; + } + + /** + * Build call for getEventLog + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getEventLogCall(tenantId, urlId, userIdWS, startTime, endTime, _callback); + } + + /** + * Execute getEventLog request + * @return GetEventLogResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public GetEventLogResponse execute() throws ApiException { + ApiResponse localVarResp = getEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); + return localVarResp.getData(); + } + + /** + * Execute getEventLog request with HTTP info returned + * @return ApiResponse<GetEventLogResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); + } + + /** + * Execute getEventLog request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getEventLogAsync(tenantId, urlId, userIdWS, startTime, endTime, _callback); + } + } + + /** + * + * req tenantId urlId userIdWS + * @param tenantId (required) + * @param urlId (required) + * @param userIdWS (required) + * @param startTime (required) + * @return APIgetEventLogRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetEventLogRequest getEventLog(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime) { + return new APIgetEventLogRequest(tenantId, urlId, userIdWS, startTime); + } + private okhttp3.Call getFeedPostsPublicCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeUserInfo, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/feed-posts/{tenantId}" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (afterId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("afterId", afterId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (tags != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "tags", tags)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + if (isCrawler != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("isCrawler", isCrawler)); + } + + if (includeUserInfo != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeUserInfo", includeUserInfo)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getFeedPostsPublicValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeUserInfo, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getFeedPostsPublic(Async)"); + } + + return getFeedPostsPublicCall(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, _callback); + + } + + + private ApiResponse getFeedPostsPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeUserInfo) throws ApiException { + okhttp3.Call localVarCall = getFeedPostsPublicValidateBeforeCall(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getFeedPostsPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeUserInfo, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getFeedPostsPublicValidateBeforeCall(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetFeedPostsPublicRequest { + @javax.annotation.Nonnull + private final String tenantId; + @javax.annotation.Nullable + private String afterId; + @javax.annotation.Nullable + private Integer limit; + @javax.annotation.Nullable + private List tags; + @javax.annotation.Nullable + private String sso; + @javax.annotation.Nullable + private Boolean isCrawler; + @javax.annotation.Nullable + private Boolean includeUserInfo; + + private APIgetFeedPostsPublicRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; + } + + /** + * Set afterId + * @param afterId (optional) + * @return APIgetFeedPostsPublicRequest + */ + public APIgetFeedPostsPublicRequest afterId(@javax.annotation.Nullable String afterId) { + this.afterId = afterId; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIgetFeedPostsPublicRequest + */ + public APIgetFeedPostsPublicRequest limit(@javax.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set tags + * @param tags (optional) + * @return APIgetFeedPostsPublicRequest + */ + public APIgetFeedPostsPublicRequest tags(@javax.annotation.Nullable List tags) { + this.tags = tags; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetFeedPostsPublicRequest + */ + public APIgetFeedPostsPublicRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Set isCrawler + * @param isCrawler (optional) + * @return APIgetFeedPostsPublicRequest + */ + public APIgetFeedPostsPublicRequest isCrawler(@javax.annotation.Nullable Boolean isCrawler) { + this.isCrawler = isCrawler; + return this; + } + + /** + * Set includeUserInfo + * @param includeUserInfo (optional) + * @return APIgetFeedPostsPublicRequest + */ + public APIgetFeedPostsPublicRequest includeUserInfo(@javax.annotation.Nullable Boolean includeUserInfo) { + this.includeUserInfo = includeUserInfo; + return this; + } + + /** + * Build call for getFeedPostsPublic + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getFeedPostsPublicCall(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, _callback); + } + + /** + * Execute getFeedPostsPublic request + * @return PublicFeedPostsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public PublicFeedPostsResponse execute() throws ApiException { + ApiResponse localVarResp = getFeedPostsPublicWithHttpInfo(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo); + return localVarResp.getData(); + } + + /** + * Execute getFeedPostsPublic request with HTTP info returned + * @return ApiResponse<PublicFeedPostsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getFeedPostsPublicWithHttpInfo(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo); + } + + /** + * Execute getFeedPostsPublic request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getFeedPostsPublicAsync(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, _callback); + } + } + + /** + * + * req tenantId afterId + * @param tenantId (required) + * @return APIgetFeedPostsPublicRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetFeedPostsPublicRequest getFeedPostsPublic(@javax.annotation.Nonnull String tenantId) { + return new APIgetFeedPostsPublicRequest(tenantId); + } + private okhttp3.Call getFeedPostsStatsCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/feed-posts/{tenantId}/stats" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (postIds != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "postIds", postIds)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getFeedPostsStatsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getFeedPostsStats(Async)"); + } + + // verify the required parameter 'postIds' is set + if (postIds == null) { + throw new ApiException("Missing the required parameter 'postIds' when calling getFeedPostsStats(Async)"); + } + + return getFeedPostsStatsCall(tenantId, postIds, sso, _callback); + + } + + + private ApiResponse getFeedPostsStatsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getFeedPostsStatsValidateBeforeCall(tenantId, postIds, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getFeedPostsStatsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getFeedPostsStatsValidateBeforeCall(tenantId, postIds, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetFeedPostsStatsRequest { + @javax.annotation.Nonnull + private final String tenantId; + @javax.annotation.Nonnull + private final List postIds; + @javax.annotation.Nullable + private String sso; + + private APIgetFeedPostsStatsRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds) { + this.tenantId = tenantId; + this.postIds = postIds; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetFeedPostsStatsRequest + */ + public APIgetFeedPostsStatsRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getFeedPostsStats + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getFeedPostsStatsCall(tenantId, postIds, sso, _callback); + } + + /** + * Execute getFeedPostsStats request + * @return FeedPostsStatsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public FeedPostsStatsResponse execute() throws ApiException { + ApiResponse localVarResp = getFeedPostsStatsWithHttpInfo(tenantId, postIds, sso); + return localVarResp.getData(); + } + + /** + * Execute getFeedPostsStats request with HTTP info returned + * @return ApiResponse<FeedPostsStatsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getFeedPostsStatsWithHttpInfo(tenantId, postIds, sso); + } + + /** + * Execute getFeedPostsStats request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getFeedPostsStatsAsync(tenantId, postIds, sso, _callback); + } + } + + /** + * + * + * @param tenantId (required) + * @param postIds (required) + * @return APIgetFeedPostsStatsRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetFeedPostsStatsRequest getFeedPostsStats(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds) { + return new APIgetFeedPostsStatsRequest(tenantId, postIds); + } + private okhttp3.Call getGifLargeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String largeInternalURLSanitized, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/gifs/get-large/{tenantId}" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (largeInternalURLSanitized != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("largeInternalURLSanitized", largeInternalURLSanitized)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGifLargeValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String largeInternalURLSanitized, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getGifLarge(Async)"); + } + + // verify the required parameter 'largeInternalURLSanitized' is set + if (largeInternalURLSanitized == null) { + throw new ApiException("Missing the required parameter 'largeInternalURLSanitized' when calling getGifLarge(Async)"); + } + + return getGifLargeCall(tenantId, largeInternalURLSanitized, _callback); + + } + + + private ApiResponse getGifLargeWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String largeInternalURLSanitized) throws ApiException { + okhttp3.Call localVarCall = getGifLargeValidateBeforeCall(tenantId, largeInternalURLSanitized, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getGifLargeAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String largeInternalURLSanitized, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getGifLargeValidateBeforeCall(tenantId, largeInternalURLSanitized, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetGifLargeRequest { + @javax.annotation.Nonnull + private final String tenantId; + @javax.annotation.Nonnull + private final String largeInternalURLSanitized; + + private APIgetGifLargeRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String largeInternalURLSanitized) { + this.tenantId = tenantId; + this.largeInternalURLSanitized = largeInternalURLSanitized; + } + + /** + * Build call for getGifLarge + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getGifLargeCall(tenantId, largeInternalURLSanitized, _callback); + } + + /** + * Execute getGifLarge request + * @return GifGetLargeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
+ */ + public GifGetLargeResponse execute() throws ApiException { + ApiResponse localVarResp = getGifLargeWithHttpInfo(tenantId, largeInternalURLSanitized); + return localVarResp.getData(); + } + + /** + * Execute getGifLarge request with HTTP info returned + * @return ApiResponse<GifGetLargeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getGifLargeWithHttpInfo(tenantId, largeInternalURLSanitized); + } + + /** + * Execute getGifLarge request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getGifLargeAsync(tenantId, largeInternalURLSanitized, _callback); + } + } + + /** + * + * + * @param tenantId (required) + * @param largeInternalURLSanitized (required) + * @return APIgetGifLargeRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
+ */ + public APIgetGifLargeRequest getGifLarge(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String largeInternalURLSanitized) { + return new APIgetGifLargeRequest(tenantId, largeInternalURLSanitized); + } + private okhttp3.Call getGifsSearchCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String search, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String rating, @javax.annotation.Nullable Double page, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/gifs/search/{tenantId}" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (search != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); + } + + if (locale != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); + } + + if (rating != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("rating", rating)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGifsSearchValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String search, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String rating, @javax.annotation.Nullable Double page, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getGifsSearch(Async)"); + } + + // verify the required parameter 'search' is set + if (search == null) { + throw new ApiException("Missing the required parameter 'search' when calling getGifsSearch(Async)"); + } + + return getGifsSearchCall(tenantId, search, locale, rating, page, _callback); + + } + + + private ApiResponse getGifsSearchWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String search, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String rating, @javax.annotation.Nullable Double page) throws ApiException { + okhttp3.Call localVarCall = getGifsSearchValidateBeforeCall(tenantId, search, locale, rating, page, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getGifsSearchAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String search, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String rating, @javax.annotation.Nullable Double page, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getGifsSearchValidateBeforeCall(tenantId, search, locale, rating, page, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetGifsSearchRequest { + @javax.annotation.Nonnull + private final String tenantId; + @javax.annotation.Nonnull + private final String search; + @javax.annotation.Nullable + private String locale; + @javax.annotation.Nullable + private String rating; + @javax.annotation.Nullable + private Double page; + + private APIgetGifsSearchRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String search) { + this.tenantId = tenantId; + this.search = search; + } + + /** + * Set locale + * @param locale (optional) + * @return APIgetGifsSearchRequest + */ + public APIgetGifsSearchRequest locale(@javax.annotation.Nullable String locale) { + this.locale = locale; + return this; + } + + /** + * Set rating + * @param rating (optional) + * @return APIgetGifsSearchRequest + */ + public APIgetGifsSearchRequest rating(@javax.annotation.Nullable String rating) { + this.rating = rating; + return this; + } + + /** + * Set page + * @param page (optional) + * @return APIgetGifsSearchRequest + */ + public APIgetGifsSearchRequest page(@javax.annotation.Nullable Double page) { + this.page = page; + return this; + } + + /** + * Build call for getGifsSearch + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getGifsSearchCall(tenantId, search, locale, rating, page, _callback); + } + + /** + * Execute getGifsSearch request + * @return GetGifsSearchResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
+ */ + public GetGifsSearchResponse execute() throws ApiException { + ApiResponse localVarResp = getGifsSearchWithHttpInfo(tenantId, search, locale, rating, page); + return localVarResp.getData(); + } + + /** + * Execute getGifsSearch request with HTTP info returned + * @return ApiResponse<GetGifsSearchResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getGifsSearchWithHttpInfo(tenantId, search, locale, rating, page); + } + + /** + * Execute getGifsSearch request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getGifsSearchAsync(tenantId, search, locale, rating, page, _callback); + } + } + + /** + * + * + * @param tenantId (required) + * @param search (required) + * @return APIgetGifsSearchRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
+ */ + public APIgetGifsSearchRequest getGifsSearch(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String search) { + return new APIgetGifsSearchRequest(tenantId, search); + } + private okhttp3.Call getGifsTrendingCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String rating, @javax.annotation.Nullable Double page, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/gifs/trending/{tenantId}" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (locale != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); + } + + if (rating != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("rating", rating)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGifsTrendingValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String rating, @javax.annotation.Nullable Double page, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getGifsTrending(Async)"); + } + + return getGifsTrendingCall(tenantId, locale, rating, page, _callback); + + } + + + private ApiResponse getGifsTrendingWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String rating, @javax.annotation.Nullable Double page) throws ApiException { + okhttp3.Call localVarCall = getGifsTrendingValidateBeforeCall(tenantId, locale, rating, page, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getGifsTrendingAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String locale, @javax.annotation.Nullable String rating, @javax.annotation.Nullable Double page, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getGifsTrendingValidateBeforeCall(tenantId, locale, rating, page, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetGifsTrendingRequest { + @javax.annotation.Nonnull + private final String tenantId; + @javax.annotation.Nullable + private String locale; + @javax.annotation.Nullable + private String rating; + @javax.annotation.Nullable + private Double page; + + private APIgetGifsTrendingRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; + } + + /** + * Set locale + * @param locale (optional) + * @return APIgetGifsTrendingRequest + */ + public APIgetGifsTrendingRequest locale(@javax.annotation.Nullable String locale) { + this.locale = locale; + return this; + } + + /** + * Set rating + * @param rating (optional) + * @return APIgetGifsTrendingRequest + */ + public APIgetGifsTrendingRequest rating(@javax.annotation.Nullable String rating) { + this.rating = rating; + return this; + } + + /** + * Set page + * @param page (optional) + * @return APIgetGifsTrendingRequest + */ + public APIgetGifsTrendingRequest page(@javax.annotation.Nullable Double page) { + this.page = page; + return this; + } + + /** + * Build call for getGifsTrending + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getGifsTrendingCall(tenantId, locale, rating, page, _callback); + } + + /** + * Execute getGifsTrending request + * @return GetGifsTrendingResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
+ */ + public GetGifsTrendingResponse execute() throws ApiException { + ApiResponse localVarResp = getGifsTrendingWithHttpInfo(tenantId, locale, rating, page); + return localVarResp.getData(); + } + + /** + * Execute getGifsTrending request with HTTP info returned + * @return ApiResponse<GetGifsTrendingResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getGifsTrendingWithHttpInfo(tenantId, locale, rating, page); + } + + /** + * Execute getGifsTrending request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getGifsTrendingAsync(tenantId, locale, rating, page, _callback); + } + } + + /** + * + * + * @param tenantId (required) + * @return APIgetGifsTrendingRequest + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
+ */ + public APIgetGifsTrendingRequest getGifsTrending(@javax.annotation.Nonnull String tenantId) { + return new APIgetGifsTrendingRequest(tenantId); + } + private okhttp3.Call getGlobalEventLogCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nullable Long endTime, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/event-log/global/{tenantId}" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); + } + + if (userIdWS != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("userIdWS", userIdWS)); + } + + if (startTime != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); + } + + if (endTime != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGlobalEventLogValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nullable Long endTime, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getGlobalEventLog(Async)"); + } + + // verify the required parameter 'urlId' is set + if (urlId == null) { + throw new ApiException("Missing the required parameter 'urlId' when calling getGlobalEventLog(Async)"); + } + + // verify the required parameter 'userIdWS' is set + if (userIdWS == null) { + throw new ApiException("Missing the required parameter 'userIdWS' when calling getGlobalEventLog(Async)"); + } + + // verify the required parameter 'startTime' is set + if (startTime == null) { + throw new ApiException("Missing the required parameter 'startTime' when calling getGlobalEventLog(Async)"); + } + + return getGlobalEventLogCall(tenantId, urlId, userIdWS, startTime, endTime, _callback); + + } + + + private ApiResponse getGlobalEventLogWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nullable Long endTime) throws ApiException { + okhttp3.Call localVarCall = getGlobalEventLogValidateBeforeCall(tenantId, urlId, userIdWS, startTime, endTime, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getGlobalEventLogAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nullable Long endTime, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getGlobalEventLogValidateBeforeCall(tenantId, urlId, userIdWS, startTime, endTime, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetGlobalEventLogRequest { + @javax.annotation.Nonnull + private final String tenantId; + @javax.annotation.Nonnull + private final String urlId; + @javax.annotation.Nonnull + private final String userIdWS; + @javax.annotation.Nonnull + private final Long startTime; + @javax.annotation.Nullable + private Long endTime; + + private APIgetGlobalEventLogRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime) { + this.tenantId = tenantId; + this.urlId = urlId; + this.userIdWS = userIdWS; + this.startTime = startTime; + } + + /** + * Set endTime + * @param endTime (optional) + * @return APIgetGlobalEventLogRequest + */ + public APIgetGlobalEventLogRequest endTime(@javax.annotation.Nullable Long endTime) { + this.endTime = endTime; + return this; + } + + /** + * Build call for getGlobalEventLog + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getGlobalEventLogCall(tenantId, urlId, userIdWS, startTime, endTime, _callback); + } + + /** + * Execute getGlobalEventLog request + * @return GetEventLogResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public GetEventLogResponse execute() throws ApiException { + ApiResponse localVarResp = getGlobalEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); + return localVarResp.getData(); + } + + /** + * Execute getGlobalEventLog request with HTTP info returned + * @return ApiResponse<GetEventLogResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getGlobalEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); + } + + /** + * Execute getGlobalEventLog request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getGlobalEventLogAsync(tenantId, urlId, userIdWS, startTime, endTime, _callback); + } + } + + /** + * + * req tenantId urlId userIdWS + * @param tenantId (required) + * @param urlId (required) + * @param userIdWS (required) + * @param startTime (required) + * @return APIgetGlobalEventLogRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetGlobalEventLogRequest getGlobalEventLog(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime) { + return new APIgetGlobalEventLogRequest(tenantId, urlId, userIdWS, startTime); + } + private okhttp3.Call getOfflineUsersCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String afterName, @javax.annotation.Nullable String afterUserId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pages/{tenantId}/users/offline" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); + } + + if (afterName != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("afterName", afterName)); + } + + if (afterUserId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("afterUserId", afterUserId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOfflineUsersValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String afterName, @javax.annotation.Nullable String afterUserId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getOfflineUsers(Async)"); + } + + // verify the required parameter 'urlId' is set + if (urlId == null) { + throw new ApiException("Missing the required parameter 'urlId' when calling getOfflineUsers(Async)"); + } + + return getOfflineUsersCall(tenantId, urlId, afterName, afterUserId, _callback); + + } + + + private ApiResponse getOfflineUsersWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String afterName, @javax.annotation.Nullable String afterUserId) throws ApiException { + okhttp3.Call localVarCall = getOfflineUsersValidateBeforeCall(tenantId, urlId, afterName, afterUserId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getOfflineUsersAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String afterName, @javax.annotation.Nullable String afterUserId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOfflineUsersValidateBeforeCall(tenantId, urlId, afterName, afterUserId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetOfflineUsersRequest { + @javax.annotation.Nonnull + private final String tenantId; + @javax.annotation.Nonnull + private final String urlId; + @javax.annotation.Nullable + private String afterName; + @javax.annotation.Nullable + private String afterUserId; + + private APIgetOfflineUsersRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + this.tenantId = tenantId; + this.urlId = urlId; + } + + /** + * Set afterName + * @param afterName Cursor: pass nextAfterName from the previous response. (optional) + * @return APIgetOfflineUsersRequest + */ + public APIgetOfflineUsersRequest afterName(@javax.annotation.Nullable String afterName) { + this.afterName = afterName; + return this; + } + + /** + * Set afterUserId + * @param afterUserId Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional) + * @return APIgetOfflineUsersRequest + */ + public APIgetOfflineUsersRequest afterUserId(@javax.annotation.Nullable String afterUserId) { + this.afterUserId = afterUserId; + return this; + } + + /** + * Build call for getOfflineUsers + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getOfflineUsersCall(tenantId, urlId, afterName, afterUserId, _callback); + } + + /** + * Execute getOfflineUsers request + * @return PageUsersOfflineResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
+ */ + public PageUsersOfflineResponse execute() throws ApiException { + ApiResponse localVarResp = getOfflineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); + return localVarResp.getData(); + } + + /** + * Execute getOfflineUsers request with HTTP info returned + * @return ApiResponse<PageUsersOfflineResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getOfflineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); + } + + /** + * Execute getOfflineUsers request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getOfflineUsersAsync(tenantId, urlId, afterName, afterUserId, _callback); + } + } + + /** + * + * 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. + * @param tenantId (required) + * @param urlId Page URL identifier (cleaned server-side). (required) + * @return APIgetOfflineUsersRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
+ */ + public APIgetOfflineUsersRequest getOfflineUsers(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + return new APIgetOfflineUsersRequest(tenantId, urlId); + } + private okhttp3.Call getOnlineUsersCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String afterName, @javax.annotation.Nullable String afterUserId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pages/{tenantId}/users/online" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); + } + + if (afterName != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("afterName", afterName)); + } + + if (afterUserId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("afterUserId", afterUserId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOnlineUsersValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String afterName, @javax.annotation.Nullable String afterUserId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getOnlineUsers(Async)"); + } + + // verify the required parameter 'urlId' is set + if (urlId == null) { + throw new ApiException("Missing the required parameter 'urlId' when calling getOnlineUsers(Async)"); + } + + return getOnlineUsersCall(tenantId, urlId, afterName, afterUserId, _callback); + + } + + + private ApiResponse getOnlineUsersWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String afterName, @javax.annotation.Nullable String afterUserId) throws ApiException { + okhttp3.Call localVarCall = getOnlineUsersValidateBeforeCall(tenantId, urlId, afterName, afterUserId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getOnlineUsersAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String afterName, @javax.annotation.Nullable String afterUserId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOnlineUsersValidateBeforeCall(tenantId, urlId, afterName, afterUserId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetOnlineUsersRequest { + @javax.annotation.Nonnull + private final String tenantId; + @javax.annotation.Nonnull + private final String urlId; + @javax.annotation.Nullable + private String afterName; + @javax.annotation.Nullable + private String afterUserId; + + private APIgetOnlineUsersRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + this.tenantId = tenantId; + this.urlId = urlId; + } + + /** + * Set afterName + * @param afterName Cursor: pass nextAfterName from the previous response. (optional) + * @return APIgetOnlineUsersRequest + */ + public APIgetOnlineUsersRequest afterName(@javax.annotation.Nullable String afterName) { + this.afterName = afterName; + return this; + } + + /** + * Set afterUserId + * @param afterUserId Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional) + * @return APIgetOnlineUsersRequest + */ + public APIgetOnlineUsersRequest afterUserId(@javax.annotation.Nullable String afterUserId) { + this.afterUserId = afterUserId; + return this; + } + + /** + * Build call for getOnlineUsers + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getOnlineUsersCall(tenantId, urlId, afterName, afterUserId, _callback); + } + + /** + * Execute getOnlineUsers request + * @return PageUsersOnlineResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
+ */ + public PageUsersOnlineResponse execute() throws ApiException { + ApiResponse localVarResp = getOnlineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); + return localVarResp.getData(); + } + + /** + * Execute getOnlineUsers request with HTTP info returned + * @return ApiResponse<PageUsersOnlineResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getOnlineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); + } + + /** + * Execute getOnlineUsers request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getOnlineUsersAsync(tenantId, urlId, afterName, afterUserId, _callback); + } + } + + /** + * + * 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). + * @param tenantId (required) + * @param urlId Page URL identifier (cleaned server-side). (required) + * @return APIgetOnlineUsersRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
+ */ + public APIgetOnlineUsersRequest getOnlineUsers(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + return new APIgetOnlineUsersRequest(tenantId, urlId); + } + private okhttp3.Call getPagesPublicCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String cursor, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String q, @javax.annotation.Nullable PagesSortBy sortBy, @javax.annotation.Nullable Boolean hasComments, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pages/{tenantId}" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (cursor != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("cursor", cursor)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (q != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("q", q)); } - /** - * Set skipChildren - * @param skipChildren (optional) - * @return APIgetCommentsPublicRequest - */ - public APIgetCommentsPublicRequest skipChildren(@javax.annotation.Nullable Integer skipChildren) { - this.skipChildren = skipChildren; - return this; + if (sortBy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sortBy", sortBy)); } - /** - * Set limit - * @param limit (optional) - * @return APIgetCommentsPublicRequest - */ - public APIgetCommentsPublicRequest limit(@javax.annotation.Nullable Integer limit) { - this.limit = limit; - return this; + if (hasComments != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("hasComments", hasComments)); } - /** - * Set limitChildren - * @param limitChildren (optional) - * @return APIgetCommentsPublicRequest - */ - public APIgetCommentsPublicRequest limitChildren(@javax.annotation.Nullable Integer limitChildren) { - this.limitChildren = limitChildren; - return this; + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Set countChildren - * @param countChildren (optional) - * @return APIgetCommentsPublicRequest - */ - public APIgetCommentsPublicRequest countChildren(@javax.annotation.Nullable Boolean countChildren) { - this.countChildren = countChildren; - return this; + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Set fetchPageForCommentId - * @param fetchPageForCommentId (optional) - * @return APIgetCommentsPublicRequest - */ - public APIgetCommentsPublicRequest fetchPageForCommentId(@javax.annotation.Nullable String fetchPageForCommentId) { - this.fetchPageForCommentId = fetchPageForCommentId; - return this; + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getPagesPublicValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String cursor, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String q, @javax.annotation.Nullable PagesSortBy sortBy, @javax.annotation.Nullable Boolean hasComments, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getPagesPublic(Async)"); } - /** - * Set includeConfig - * @param includeConfig (optional) - * @return APIgetCommentsPublicRequest - */ - public APIgetCommentsPublicRequest includeConfig(@javax.annotation.Nullable Boolean includeConfig) { - this.includeConfig = includeConfig; - return this; + return getPagesPublicCall(tenantId, cursor, limit, q, sortBy, hasComments, _callback); + + } + + + private ApiResponse getPagesPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String cursor, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String q, @javax.annotation.Nullable PagesSortBy sortBy, @javax.annotation.Nullable Boolean hasComments) throws ApiException { + okhttp3.Call localVarCall = getPagesPublicValidateBeforeCall(tenantId, cursor, limit, q, sortBy, hasComments, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getPagesPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String cursor, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String q, @javax.annotation.Nullable PagesSortBy sortBy, @javax.annotation.Nullable Boolean hasComments, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getPagesPublicValidateBeforeCall(tenantId, cursor, limit, q, sortBy, hasComments, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetPagesPublicRequest { + @javax.annotation.Nonnull + private final String tenantId; + @javax.annotation.Nullable + private String cursor; + @javax.annotation.Nullable + private Integer limit; + @javax.annotation.Nullable + private String q; + @javax.annotation.Nullable + private PagesSortBy sortBy; + @javax.annotation.Nullable + private Boolean hasComments; + + private APIgetPagesPublicRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** - * Set countAll - * @param countAll (optional) - * @return APIgetCommentsPublicRequest + * Set cursor + * @param cursor Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. (optional) + * @return APIgetPagesPublicRequest */ - public APIgetCommentsPublicRequest countAll(@javax.annotation.Nullable Boolean countAll) { - this.countAll = countAll; + public APIgetPagesPublicRequest cursor(@javax.annotation.Nullable String cursor) { + this.cursor = cursor; return this; } /** - * Set includei10n - * @param includei10n (optional) - * @return APIgetCommentsPublicRequest + * Set limit + * @param limit 1..200, default 50 (optional) + * @return APIgetPagesPublicRequest */ - public APIgetCommentsPublicRequest includei10n(@javax.annotation.Nullable Boolean includei10n) { - this.includei10n = includei10n; + public APIgetPagesPublicRequest limit(@javax.annotation.Nullable Integer limit) { + this.limit = limit; return this; } /** - * Set locale - * @param locale (optional) - * @return APIgetCommentsPublicRequest + * Set q + * @param q Optional case-insensitive title prefix filter. (optional) + * @return APIgetPagesPublicRequest */ - public APIgetCommentsPublicRequest locale(@javax.annotation.Nullable String locale) { - this.locale = locale; + public APIgetPagesPublicRequest q(@javax.annotation.Nullable String q) { + this.q = q; return this; } /** - * Set modules - * @param modules (optional) - * @return APIgetCommentsPublicRequest + * Set sortBy + * @param sortBy Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). (optional) + * @return APIgetPagesPublicRequest */ - public APIgetCommentsPublicRequest modules(@javax.annotation.Nullable String modules) { - this.modules = modules; + public APIgetPagesPublicRequest sortBy(@javax.annotation.Nullable PagesSortBy sortBy) { + this.sortBy = sortBy; return this; } /** - * Set isCrawler - * @param isCrawler (optional) - * @return APIgetCommentsPublicRequest + * Set hasComments + * @param hasComments If true, only return pages with at least one comment. (optional) + * @return APIgetPagesPublicRequest */ - public APIgetCommentsPublicRequest isCrawler(@javax.annotation.Nullable Boolean isCrawler) { - this.isCrawler = isCrawler; + public APIgetPagesPublicRequest hasComments(@javax.annotation.Nullable Boolean hasComments) { + this.hasComments = hasComments; return this; } /** - * Set includeNotificationCount - * @param includeNotificationCount (optional) - * @return APIgetCommentsPublicRequest + * Build call for getPagesPublic + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIgetCommentsPublicRequest includeNotificationCount(@javax.annotation.Nullable Boolean includeNotificationCount) { - this.includeNotificationCount = includeNotificationCount; - return this; + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getPagesPublicCall(tenantId, cursor, limit, q, sortBy, hasComments, _callback); } /** - * Set asTree - * @param asTree (optional) - * @return APIgetCommentsPublicRequest + * Execute getPagesPublic request + * @return GetPublicPagesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIgetCommentsPublicRequest asTree(@javax.annotation.Nullable Boolean asTree) { - this.asTree = asTree; - return this; + public GetPublicPagesResponse execute() throws ApiException { + ApiResponse localVarResp = getPagesPublicWithHttpInfo(tenantId, cursor, limit, q, sortBy, hasComments); + return localVarResp.getData(); } /** - * Set maxTreeDepth - * @param maxTreeDepth (optional) - * @return APIgetCommentsPublicRequest + * Execute getPagesPublic request with HTTP info returned + * @return ApiResponse<GetPublicPagesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIgetCommentsPublicRequest maxTreeDepth(@javax.annotation.Nullable Integer maxTreeDepth) { - this.maxTreeDepth = maxTreeDepth; - return this; + public ApiResponse executeWithHttpInfo() throws ApiException { + return getPagesPublicWithHttpInfo(tenantId, cursor, limit, q, sortBy, hasComments); } /** - * Set useFullTranslationIds - * @param useFullTranslationIds (optional) - * @return APIgetCommentsPublicRequest + * Execute getPagesPublic request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIgetCommentsPublicRequest useFullTranslationIds(@javax.annotation.Nullable Boolean useFullTranslationIds) { - this.useFullTranslationIds = useFullTranslationIds; - return this; + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getPagesPublicAsync(tenantId, cursor, limit, q, sortBy, hasComments, _callback); } + } - /** - * Set parentId - * @param parentId (optional) - * @return APIgetCommentsPublicRequest - */ - public APIgetCommentsPublicRequest parentId(@javax.annotation.Nullable String parentId) { - this.parentId = parentId; - return this; + /** + * + * 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. + * @param tenantId (required) + * @return APIgetPagesPublicRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
+ */ + public APIgetPagesPublicRequest getPagesPublic(@javax.annotation.Nonnull String tenantId) { + return new APIgetPagesPublicRequest(tenantId); + } + private okhttp3.Call getTranslationsCall(@javax.annotation.Nonnull String namespace, @javax.annotation.Nonnull String component, @javax.annotation.Nullable String locale, @javax.annotation.Nullable Boolean useFullTranslationIds, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - /** - * Set searchText - * @param searchText (optional) - * @return APIgetCommentsPublicRequest - */ - public APIgetCommentsPublicRequest searchText(@javax.annotation.Nullable String searchText) { - this.searchText = searchText; - return this; + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/translations/{namespace}/{component}" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "component" + "}", localVarApiClient.escapeString(component.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (locale != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); + } + + if (useFullTranslationIds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("useFullTranslationIds", useFullTranslationIds)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Set hashTags - * @param hashTags (optional) - * @return APIgetCommentsPublicRequest - */ - public APIgetCommentsPublicRequest hashTags(@javax.annotation.Nullable List hashTags) { - this.hashTags = hashTags; - return this; + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getTranslationsValidateBeforeCall(@javax.annotation.Nonnull String namespace, @javax.annotation.Nonnull String component, @javax.annotation.Nullable String locale, @javax.annotation.Nullable Boolean useFullTranslationIds, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getTranslations(Async)"); } - /** - * Set userId - * @param userId (optional) - * @return APIgetCommentsPublicRequest - */ - public APIgetCommentsPublicRequest userId(@javax.annotation.Nullable String userId) { - this.userId = userId; - return this; + // verify the required parameter 'component' is set + if (component == null) { + throw new ApiException("Missing the required parameter 'component' when calling getTranslations(Async)"); } - /** - * Set customConfigStr - * @param customConfigStr (optional) - * @return APIgetCommentsPublicRequest - */ - public APIgetCommentsPublicRequest customConfigStr(@javax.annotation.Nullable String customConfigStr) { - this.customConfigStr = customConfigStr; - return this; + return getTranslationsCall(namespace, component, locale, useFullTranslationIds, _callback); + + } + + + private ApiResponse getTranslationsWithHttpInfo(@javax.annotation.Nonnull String namespace, @javax.annotation.Nonnull String component, @javax.annotation.Nullable String locale, @javax.annotation.Nullable Boolean useFullTranslationIds) throws ApiException { + okhttp3.Call localVarCall = getTranslationsValidateBeforeCall(namespace, component, locale, useFullTranslationIds, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getTranslationsAsync(@javax.annotation.Nonnull String namespace, @javax.annotation.Nonnull String component, @javax.annotation.Nullable String locale, @javax.annotation.Nullable Boolean useFullTranslationIds, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getTranslationsValidateBeforeCall(namespace, component, locale, useFullTranslationIds, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetTranslationsRequest { + @javax.annotation.Nonnull + private final String namespace; + @javax.annotation.Nonnull + private final String component; + @javax.annotation.Nullable + private String locale; + @javax.annotation.Nullable + private Boolean useFullTranslationIds; + + private APIgetTranslationsRequest(@javax.annotation.Nonnull String namespace, @javax.annotation.Nonnull String component) { + this.namespace = namespace; + this.component = component; } /** - * Set afterCommentId - * @param afterCommentId (optional) - * @return APIgetCommentsPublicRequest + * Set locale + * @param locale (optional) + * @return APIgetTranslationsRequest */ - public APIgetCommentsPublicRequest afterCommentId(@javax.annotation.Nullable String afterCommentId) { - this.afterCommentId = afterCommentId; + public APIgetTranslationsRequest locale(@javax.annotation.Nullable String locale) { + this.locale = locale; return this; } /** - * Set beforeCommentId - * @param beforeCommentId (optional) - * @return APIgetCommentsPublicRequest + * Set useFullTranslationIds + * @param useFullTranslationIds (optional) + * @return APIgetTranslationsRequest */ - public APIgetCommentsPublicRequest beforeCommentId(@javax.annotation.Nullable String beforeCommentId) { - this.beforeCommentId = beforeCommentId; + public APIgetTranslationsRequest useFullTranslationIds(@javax.annotation.Nullable Boolean useFullTranslationIds) { + this.useFullTranslationIds = useFullTranslationIds; return this; } /** - * Build call for getCommentsPublic + * Build call for getTranslations * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2686,45 +6165,54 @@ public APIgetCommentsPublicRequest beforeCommentId(@javax.annotation.Nullable St Response Details Status Code Description Response Headers 200 Ok - + 422 Validation Failed - + 500 Internal - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getCommentsPublicCall(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, _callback); + return getTranslationsCall(namespace, component, locale, useFullTranslationIds, _callback); } /** - * Execute getCommentsPublic request - * @return GetCommentsPublic200Response + * Execute getTranslations request + * @return GetTranslationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
500 Internal -
0 Error -
*/ - public GetCommentsPublic200Response execute() throws ApiException { - ApiResponse localVarResp = getCommentsPublicWithHttpInfo(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); + public GetTranslationsResponse execute() throws ApiException { + ApiResponse localVarResp = getTranslationsWithHttpInfo(namespace, component, locale, useFullTranslationIds); return localVarResp.getData(); } /** - * Execute getCommentsPublic request with HTTP info returned - * @return ApiResponse<GetCommentsPublic200Response> + * Execute getTranslations request with HTTP info returned + * @return ApiResponse<GetTranslationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
500 Internal -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getCommentsPublicWithHttpInfo(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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getTranslationsWithHttpInfo(namespace, component, locale, useFullTranslationIds); } /** - * Execute getCommentsPublic request (asynchronously) + * Execute getTranslations request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2733,30 +6221,36 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 422 Validation Failed - + 500 Internal - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getCommentsPublicAsync(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, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getTranslationsAsync(namespace, component, locale, useFullTranslationIds, _callback); } } /** * - * req tenantId urlId - * @param tenantId (required) - * @param urlId (required) - * @return APIgetCommentsPublicRequest + * + * @param namespace (required) + * @param component (required) + * @return APIgetTranslationsRequest * @http.response.details + + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
500 Internal -
0 Error -
*/ - public APIgetCommentsPublicRequest getCommentsPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { - return new APIgetCommentsPublicRequest(tenantId, urlId); + public APIgetTranslationsRequest getTranslations(@javax.annotation.Nonnull String namespace, @javax.annotation.Nonnull String component) { + return new APIgetTranslationsRequest(namespace, component); } - private okhttp3.Call getEventLogCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nonnull Long endTime, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserNotificationCountCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2773,8 +6267,7 @@ private okhttp3.Call getEventLogCall(@javax.annotation.Nonnull String tenantId, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/event-log/{tenantId}" - .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); + String localVarPath = "/user-notifications/get-count"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2782,20 +6275,12 @@ private okhttp3.Call getEventLogCall(@javax.annotation.Nonnull String tenantId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (urlId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); - } - - if (userIdWS != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("userIdWS", userIdWS)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } final String[] localVarAccepts = { @@ -2818,73 +6303,53 @@ private okhttp3.Call getEventLogCall(@javax.annotation.Nonnull String tenantId, } @SuppressWarnings("rawtypes") - private okhttp3.Call getEventLogValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nonnull Long endTime, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserNotificationCountValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { - throw new ApiException("Missing the required parameter 'tenantId' when calling getEventLog(Async)"); - } - - // verify the required parameter 'urlId' is set - if (urlId == null) { - throw new ApiException("Missing the required parameter 'urlId' when calling getEventLog(Async)"); - } - - // verify the required parameter 'userIdWS' is set - if (userIdWS == null) { - throw new ApiException("Missing the required parameter 'userIdWS' when calling getEventLog(Async)"); - } - - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling getEventLog(Async)"); - } - - // verify the required parameter 'endTime' is set - if (endTime == null) { - throw new ApiException("Missing the required parameter 'endTime' when calling getEventLog(Async)"); + throw new ApiException("Missing the required parameter 'tenantId' when calling getUserNotificationCount(Async)"); } - return getEventLogCall(tenantId, urlId, userIdWS, startTime, endTime, _callback); + return getUserNotificationCountCall(tenantId, sso, _callback); } - private ApiResponse getEventLogWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nonnull Long endTime) throws ApiException { - okhttp3.Call localVarCall = getEventLogValidateBeforeCall(tenantId, urlId, userIdWS, startTime, endTime, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse getUserNotificationCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getUserNotificationCountValidateBeforeCall(tenantId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getEventLogAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nonnull Long endTime, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserNotificationCountAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getEventLogValidateBeforeCall(tenantId, urlId, userIdWS, startTime, endTime, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getUserNotificationCountValidateBeforeCall(tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIgetEventLogRequest { + public class APIgetUserNotificationCountRequest { @javax.annotation.Nonnull private final String tenantId; - @javax.annotation.Nonnull - private final String urlId; - @javax.annotation.Nonnull - private final String userIdWS; - @javax.annotation.Nonnull - private final Long startTime; - @javax.annotation.Nonnull - private final Long endTime; + @javax.annotation.Nullable + private String sso; - private APIgetEventLogRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nonnull Long endTime) { + private APIgetUserNotificationCountRequest(@javax.annotation.Nonnull String tenantId) { this.tenantId = tenantId; - this.urlId = urlId; - this.userIdWS = userIdWS; - this.startTime = startTime; - this.endTime = endTime; } /** - * Build call for getEventLog + * Set sso + * @param sso (optional) + * @return APIgetUserNotificationCountRequest + */ + public APIgetUserNotificationCountRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getUserNotificationCount * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2893,45 +6358,48 @@ private APIgetEventLogRequest(@javax.annotation.Nonnull String tenantId, @javax. Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getEventLogCall(tenantId, urlId, userIdWS, startTime, endTime, _callback); + return getUserNotificationCountCall(tenantId, sso, _callback); } /** - * Execute getEventLog request - * @return GetEventLog200Response + * Execute getUserNotificationCount request + * @return GetUserNotificationCountResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetEventLog200Response execute() throws ApiException { - ApiResponse localVarResp = getEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); + public GetUserNotificationCountResponse execute() throws ApiException { + ApiResponse localVarResp = getUserNotificationCountWithHttpInfo(tenantId, sso); return localVarResp.getData(); } /** - * Execute getEventLog request with HTTP info returned - * @return ApiResponse<GetEventLog200Response> + * Execute getUserNotificationCount request with HTTP info returned + * @return ApiResponse<GetUserNotificationCountResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getUserNotificationCountWithHttpInfo(tenantId, sso); } /** - * Execute getEventLog request (asynchronously) + * Execute getUserNotificationCount request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2940,33 +6408,31 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getEventLogAsync(tenantId, urlId, userIdWS, startTime, endTime, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getUserNotificationCountAsync(tenantId, sso, _callback); } } /** * - * req tenantId urlId userIdWS + * * @param tenantId (required) - * @param urlId (required) - * @param userIdWS (required) - * @param startTime (required) - * @param endTime (required) - * @return APIgetEventLogRequest + * @return APIgetUserNotificationCountRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIgetEventLogRequest getEventLog(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nonnull Long endTime) { - return new APIgetEventLogRequest(tenantId, urlId, userIdWS, startTime, endTime); + public APIgetUserNotificationCountRequest getUserNotificationCount(@javax.annotation.Nonnull String tenantId) { + return new APIgetUserNotificationCountRequest(tenantId); } - private okhttp3.Call getFeedPostsPublicCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeUserInfo, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserNotificationsCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean includeContext, @javax.annotation.Nullable Long afterCreatedAt, @javax.annotation.Nullable Boolean unreadOnly, @javax.annotation.Nullable Boolean dmOnly, @javax.annotation.Nullable Boolean noDm, @javax.annotation.Nullable Boolean includeTranslations, @javax.annotation.Nullable Boolean includeTenantNotifications, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2983,8 +6449,7 @@ private okhttp3.Call getFeedPostsPublicCall(@javax.annotation.Nonnull String ten Object localVarPostBody = null; // create path and map variables - String localVarPath = "/feed-posts/{tenantId}" - .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); + String localVarPath = "/user-notifications"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2992,28 +6457,52 @@ private okhttp3.Call getFeedPostsPublicCall(@javax.annotation.Nonnull String ten Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); + } + + if (pageSize != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); + } + if (afterId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("afterId", afterId)); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + if (includeContext != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeContext", includeContext)); } - if (tags != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "tags", tags)); + if (afterCreatedAt != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("afterCreatedAt", afterCreatedAt)); } - if (sso != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + if (unreadOnly != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("unreadOnly", unreadOnly)); } - if (isCrawler != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("isCrawler", isCrawler)); + if (dmOnly != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dmOnly", dmOnly)); } - if (includeUserInfo != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeUserInfo", includeUserInfo)); + if (noDm != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("noDm", noDm)); + } + + if (includeTranslations != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeTranslations", includeTranslations)); + } + + if (includeTenantNotifications != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeTenantNotifications", includeTenantNotifications)); + } + + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } final String[] localVarAccepts = { @@ -3036,113 +6525,173 @@ private okhttp3.Call getFeedPostsPublicCall(@javax.annotation.Nonnull String ten } @SuppressWarnings("rawtypes") - private okhttp3.Call getFeedPostsPublicValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeUserInfo, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserNotificationsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean includeContext, @javax.annotation.Nullable Long afterCreatedAt, @javax.annotation.Nullable Boolean unreadOnly, @javax.annotation.Nullable Boolean dmOnly, @javax.annotation.Nullable Boolean noDm, @javax.annotation.Nullable Boolean includeTranslations, @javax.annotation.Nullable Boolean includeTenantNotifications, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { - throw new ApiException("Missing the required parameter 'tenantId' when calling getFeedPostsPublic(Async)"); + throw new ApiException("Missing the required parameter 'tenantId' when calling getUserNotifications(Async)"); } - return getFeedPostsPublicCall(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, _callback); + return getUserNotificationsCall(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso, _callback); } - private ApiResponse getFeedPostsPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeUserInfo) throws ApiException { - okhttp3.Call localVarCall = getFeedPostsPublicValidateBeforeCall(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse getUserNotificationsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean includeContext, @javax.annotation.Nullable Long afterCreatedAt, @javax.annotation.Nullable Boolean unreadOnly, @javax.annotation.Nullable Boolean dmOnly, @javax.annotation.Nullable Boolean noDm, @javax.annotation.Nullable Boolean includeTranslations, @javax.annotation.Nullable Boolean includeTenantNotifications, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getUserNotificationsValidateBeforeCall(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getFeedPostsPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String sso, @javax.annotation.Nullable Boolean isCrawler, @javax.annotation.Nullable Boolean includeUserInfo, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserNotificationsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String urlId, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean includeContext, @javax.annotation.Nullable Long afterCreatedAt, @javax.annotation.Nullable Boolean unreadOnly, @javax.annotation.Nullable Boolean dmOnly, @javax.annotation.Nullable Boolean noDm, @javax.annotation.Nullable Boolean includeTranslations, @javax.annotation.Nullable Boolean includeTenantNotifications, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getFeedPostsPublicValidateBeforeCall(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getUserNotificationsValidateBeforeCall(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIgetFeedPostsPublicRequest { + public class APIgetUserNotificationsRequest { @javax.annotation.Nonnull private final String tenantId; @javax.annotation.Nullable + private String urlId; + @javax.annotation.Nullable + private Integer pageSize; + @javax.annotation.Nullable private String afterId; @javax.annotation.Nullable - private Integer limit; + private Boolean includeContext; @javax.annotation.Nullable - private List tags; + private Long afterCreatedAt; @javax.annotation.Nullable - private String sso; + private Boolean unreadOnly; @javax.annotation.Nullable - private Boolean isCrawler; + private Boolean dmOnly; @javax.annotation.Nullable - private Boolean includeUserInfo; + private Boolean noDm; + @javax.annotation.Nullable + private Boolean includeTranslations; + @javax.annotation.Nullable + private Boolean includeTenantNotifications; + @javax.annotation.Nullable + private String sso; + + private APIgetUserNotificationsRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; + } + + /** + * Set urlId + * @param urlId Used to determine whether the current page is subscribed. (optional) + * @return APIgetUserNotificationsRequest + */ + public APIgetUserNotificationsRequest urlId(@javax.annotation.Nullable String urlId) { + this.urlId = urlId; + return this; + } - private APIgetFeedPostsPublicRequest(@javax.annotation.Nonnull String tenantId) { - this.tenantId = tenantId; + /** + * Set pageSize + * @param pageSize (optional) + * @return APIgetUserNotificationsRequest + */ + public APIgetUserNotificationsRequest pageSize(@javax.annotation.Nullable Integer pageSize) { + this.pageSize = pageSize; + return this; } /** * Set afterId * @param afterId (optional) - * @return APIgetFeedPostsPublicRequest + * @return APIgetUserNotificationsRequest */ - public APIgetFeedPostsPublicRequest afterId(@javax.annotation.Nullable String afterId) { + public APIgetUserNotificationsRequest afterId(@javax.annotation.Nullable String afterId) { this.afterId = afterId; return this; } /** - * Set limit - * @param limit (optional) - * @return APIgetFeedPostsPublicRequest + * Set includeContext + * @param includeContext (optional) + * @return APIgetUserNotificationsRequest */ - public APIgetFeedPostsPublicRequest limit(@javax.annotation.Nullable Integer limit) { - this.limit = limit; + public APIgetUserNotificationsRequest includeContext(@javax.annotation.Nullable Boolean includeContext) { + this.includeContext = includeContext; return this; } /** - * Set tags - * @param tags (optional) - * @return APIgetFeedPostsPublicRequest + * Set afterCreatedAt + * @param afterCreatedAt (optional) + * @return APIgetUserNotificationsRequest */ - public APIgetFeedPostsPublicRequest tags(@javax.annotation.Nullable List tags) { - this.tags = tags; + public APIgetUserNotificationsRequest afterCreatedAt(@javax.annotation.Nullable Long afterCreatedAt) { + this.afterCreatedAt = afterCreatedAt; return this; } /** - * Set sso - * @param sso (optional) - * @return APIgetFeedPostsPublicRequest + * Set unreadOnly + * @param unreadOnly (optional) + * @return APIgetUserNotificationsRequest */ - public APIgetFeedPostsPublicRequest sso(@javax.annotation.Nullable String sso) { - this.sso = sso; + public APIgetUserNotificationsRequest unreadOnly(@javax.annotation.Nullable Boolean unreadOnly) { + this.unreadOnly = unreadOnly; return this; } /** - * Set isCrawler - * @param isCrawler (optional) - * @return APIgetFeedPostsPublicRequest + * Set dmOnly + * @param dmOnly (optional) + * @return APIgetUserNotificationsRequest */ - public APIgetFeedPostsPublicRequest isCrawler(@javax.annotation.Nullable Boolean isCrawler) { - this.isCrawler = isCrawler; + public APIgetUserNotificationsRequest dmOnly(@javax.annotation.Nullable Boolean dmOnly) { + this.dmOnly = dmOnly; return this; } /** - * Set includeUserInfo - * @param includeUserInfo (optional) - * @return APIgetFeedPostsPublicRequest + * Set noDm + * @param noDm (optional) + * @return APIgetUserNotificationsRequest */ - public APIgetFeedPostsPublicRequest includeUserInfo(@javax.annotation.Nullable Boolean includeUserInfo) { - this.includeUserInfo = includeUserInfo; + public APIgetUserNotificationsRequest noDm(@javax.annotation.Nullable Boolean noDm) { + this.noDm = noDm; return this; } /** - * Build call for getFeedPostsPublic + * Set includeTranslations + * @param includeTranslations (optional) + * @return APIgetUserNotificationsRequest + */ + public APIgetUserNotificationsRequest includeTranslations(@javax.annotation.Nullable Boolean includeTranslations) { + this.includeTranslations = includeTranslations; + return this; + } + + /** + * Set includeTenantNotifications + * @param includeTenantNotifications (optional) + * @return APIgetUserNotificationsRequest + */ + public APIgetUserNotificationsRequest includeTenantNotifications(@javax.annotation.Nullable Boolean includeTenantNotifications) { + this.includeTenantNotifications = includeTenantNotifications; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetUserNotificationsRequest + */ + public APIgetUserNotificationsRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getUserNotifications * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3151,45 +6700,48 @@ public APIgetFeedPostsPublicRequest includeUserInfo(@javax.annotation.Nullable B Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getFeedPostsPublicCall(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, _callback); + return getUserNotificationsCall(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso, _callback); } /** - * Execute getFeedPostsPublic request - * @return GetFeedPostsPublic200Response + * Execute getUserNotifications request + * @return GetMyNotificationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetFeedPostsPublic200Response execute() throws ApiException { - ApiResponse localVarResp = getFeedPostsPublicWithHttpInfo(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo); + public GetMyNotificationsResponse execute() throws ApiException { + ApiResponse localVarResp = getUserNotificationsWithHttpInfo(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso); return localVarResp.getData(); } /** - * Execute getFeedPostsPublic request with HTTP info returned - * @return ApiResponse<GetFeedPostsPublic200Response> + * Execute getUserNotifications request with HTTP info returned + * @return ApiResponse<GetMyNotificationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getFeedPostsPublicWithHttpInfo(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getUserNotificationsWithHttpInfo(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso); } /** - * Execute getFeedPostsPublic request (asynchronously) + * Execute getUserNotifications request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3198,29 +6750,31 @@ public ApiResponse executeWithHttpInfo() throws A Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getFeedPostsPublicAsync(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getUserNotificationsAsync(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso, _callback); } } /** * - * req tenantId afterId + * * @param tenantId (required) - * @return APIgetFeedPostsPublicRequest + * @return APIgetUserNotificationsRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIgetFeedPostsPublicRequest getFeedPostsPublic(@javax.annotation.Nonnull String tenantId) { - return new APIgetFeedPostsPublicRequest(tenantId); + public APIgetUserNotificationsRequest getUserNotifications(@javax.annotation.Nonnull String tenantId) { + return new APIgetUserNotificationsRequest(tenantId); } - private okhttp3.Call getFeedPostsStatsCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserPresenceStatusesCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3237,8 +6791,7 @@ private okhttp3.Call getFeedPostsStatsCall(@javax.annotation.Nonnull String tena Object localVarPostBody = null; // create path and map variables - String localVarPath = "/feed-posts/{tenantId}/stats" - .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); + String localVarPath = "/user-presence-status"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3246,12 +6799,16 @@ private okhttp3.Call getFeedPostsStatsCall(@javax.annotation.Nonnull String tena Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (postIds != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "postIds", postIds)); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } - if (sso != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + if (urlIdWS != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlIdWS", urlIdWS)); + } + + if (userIds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("userIds", userIds)); } final String[] localVarAccepts = { @@ -3274,61 +6831,57 @@ private okhttp3.Call getFeedPostsStatsCall(@javax.annotation.Nonnull String tena } @SuppressWarnings("rawtypes") - private okhttp3.Call getFeedPostsStatsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserPresenceStatusesValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { - throw new ApiException("Missing the required parameter 'tenantId' when calling getFeedPostsStats(Async)"); + throw new ApiException("Missing the required parameter 'tenantId' when calling getUserPresenceStatuses(Async)"); } - // verify the required parameter 'postIds' is set - if (postIds == null) { - throw new ApiException("Missing the required parameter 'postIds' when calling getFeedPostsStats(Async)"); + // verify the required parameter 'urlIdWS' is set + if (urlIdWS == null) { + throw new ApiException("Missing the required parameter 'urlIdWS' when calling getUserPresenceStatuses(Async)"); } - return getFeedPostsStatsCall(tenantId, postIds, sso, _callback); + // verify the required parameter 'userIds' is set + if (userIds == null) { + throw new ApiException("Missing the required parameter 'userIds' when calling getUserPresenceStatuses(Async)"); + } + + return getUserPresenceStatusesCall(tenantId, urlIdWS, userIds, _callback); } - private ApiResponse getFeedPostsStatsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getFeedPostsStatsValidateBeforeCall(tenantId, postIds, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse getUserPresenceStatusesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds) throws ApiException { + okhttp3.Call localVarCall = getUserPresenceStatusesValidateBeforeCall(tenantId, urlIdWS, userIds, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getFeedPostsStatsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserPresenceStatusesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getFeedPostsStatsValidateBeforeCall(tenantId, postIds, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getUserPresenceStatusesValidateBeforeCall(tenantId, urlIdWS, userIds, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIgetFeedPostsStatsRequest { + public class APIgetUserPresenceStatusesRequest { @javax.annotation.Nonnull private final String tenantId; @javax.annotation.Nonnull - private final List postIds; - @javax.annotation.Nullable - private String sso; + private final String urlIdWS; + @javax.annotation.Nonnull + private final String userIds; - private APIgetFeedPostsStatsRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds) { + private APIgetUserPresenceStatusesRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds) { this.tenantId = tenantId; - this.postIds = postIds; - } - - /** - * Set sso - * @param sso (optional) - * @return APIgetFeedPostsStatsRequest - */ - public APIgetFeedPostsStatsRequest sso(@javax.annotation.Nullable String sso) { - this.sso = sso; - return this; + this.urlIdWS = urlIdWS; + this.userIds = userIds; } /** - * Build call for getFeedPostsStats + * Build call for getUserPresenceStatuses * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3337,45 +6890,51 @@ public APIgetFeedPostsStatsRequest sso(@javax.annotation.Nullable String sso) { Response Details Status Code Description Response Headers 200 Ok - + 422 Validation Failed - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getFeedPostsStatsCall(tenantId, postIds, sso, _callback); + return getUserPresenceStatusesCall(tenantId, urlIdWS, userIds, _callback); } /** - * Execute getFeedPostsStats request - * @return GetFeedPostsStats200Response + * Execute getUserPresenceStatuses request + * @return GetUserPresenceStatusesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public GetFeedPostsStats200Response execute() throws ApiException { - ApiResponse localVarResp = getFeedPostsStatsWithHttpInfo(tenantId, postIds, sso); + public GetUserPresenceStatusesResponse execute() throws ApiException { + ApiResponse localVarResp = getUserPresenceStatusesWithHttpInfo(tenantId, urlIdWS, userIds); return localVarResp.getData(); } /** - * Execute getFeedPostsStats request with HTTP info returned - * @return ApiResponse<GetFeedPostsStats200Response> + * Execute getUserPresenceStatuses request with HTTP info returned + * @return ApiResponse<GetUserPresenceStatusesResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getFeedPostsStatsWithHttpInfo(tenantId, postIds, sso); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getUserPresenceStatusesWithHttpInfo(tenantId, urlIdWS, userIds); } /** - * Execute getFeedPostsStats request (asynchronously) + * Execute getUserPresenceStatuses request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3384,10 +6943,12 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 Ok - + 422 Validation Failed - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getFeedPostsStatsAsync(tenantId, postIds, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getUserPresenceStatusesAsync(tenantId, urlIdWS, userIds, _callback); } } @@ -3395,19 +6956,22 @@ public okhttp3.Call executeAsync(final ApiCallback * * * @param tenantId (required) - * @param postIds (required) - * @return APIgetFeedPostsStatsRequest + * @param urlIdWS (required) + * @param userIds (required) + * @return APIgetUserPresenceStatusesRequest * @http.response.details + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public APIgetFeedPostsStatsRequest getFeedPostsStats(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds) { - return new APIgetFeedPostsStatsRequest(tenantId, postIds); + public APIgetUserPresenceStatusesRequest getUserPresenceStatuses(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds) { + return new APIgetUserPresenceStatusesRequest(tenantId, urlIdWS, userIds); } - private okhttp3.Call getGlobalEventLogCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nonnull Long endTime, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserReactsPublicCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable List postIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3424,7 +6988,7 @@ private okhttp3.Call getGlobalEventLogCall(@javax.annotation.Nonnull String tena Object localVarPostBody = null; // create path and map variables - String localVarPath = "/event-log/global/{tenantId}" + String localVarPath = "/feed-posts/{tenantId}/user-reacts" .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); List localVarQueryParams = new ArrayList(); @@ -3433,20 +6997,12 @@ private okhttp3.Call getGlobalEventLogCall(@javax.annotation.Nonnull String tena Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (urlId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); - } - - if (userIdWS != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("userIdWS", userIdWS)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); + if (postIds != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "postIds", postIds)); } - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); + if (sso != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } final String[] localVarAccepts = { @@ -3469,73 +7025,65 @@ private okhttp3.Call getGlobalEventLogCall(@javax.annotation.Nonnull String tena } @SuppressWarnings("rawtypes") - private okhttp3.Call getGlobalEventLogValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nonnull Long endTime, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserReactsPublicValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable List postIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { - throw new ApiException("Missing the required parameter 'tenantId' when calling getGlobalEventLog(Async)"); - } - - // verify the required parameter 'urlId' is set - if (urlId == null) { - throw new ApiException("Missing the required parameter 'urlId' when calling getGlobalEventLog(Async)"); - } - - // verify the required parameter 'userIdWS' is set - if (userIdWS == null) { - throw new ApiException("Missing the required parameter 'userIdWS' when calling getGlobalEventLog(Async)"); - } - - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling getGlobalEventLog(Async)"); - } - - // verify the required parameter 'endTime' is set - if (endTime == null) { - throw new ApiException("Missing the required parameter 'endTime' when calling getGlobalEventLog(Async)"); + throw new ApiException("Missing the required parameter 'tenantId' when calling getUserReactsPublic(Async)"); } - return getGlobalEventLogCall(tenantId, urlId, userIdWS, startTime, endTime, _callback); + return getUserReactsPublicCall(tenantId, postIds, sso, _callback); } - private ApiResponse getGlobalEventLogWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nonnull Long endTime) throws ApiException { - okhttp3.Call localVarCall = getGlobalEventLogValidateBeforeCall(tenantId, urlId, userIdWS, startTime, endTime, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse getUserReactsPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable List postIds, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getUserReactsPublicValidateBeforeCall(tenantId, postIds, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getGlobalEventLogAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nonnull Long endTime, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserReactsPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable List postIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getGlobalEventLogValidateBeforeCall(tenantId, urlId, userIdWS, startTime, endTime, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getUserReactsPublicValidateBeforeCall(tenantId, postIds, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIgetGlobalEventLogRequest { - @javax.annotation.Nonnull - private final String tenantId; - @javax.annotation.Nonnull - private final String urlId; - @javax.annotation.Nonnull - private final String userIdWS; - @javax.annotation.Nonnull - private final Long startTime; + public class APIgetUserReactsPublicRequest { @javax.annotation.Nonnull - private final Long endTime; + private final String tenantId; + @javax.annotation.Nullable + private List postIds; + @javax.annotation.Nullable + private String sso; - private APIgetGlobalEventLogRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nonnull Long endTime) { + private APIgetUserReactsPublicRequest(@javax.annotation.Nonnull String tenantId) { this.tenantId = tenantId; - this.urlId = urlId; - this.userIdWS = userIdWS; - this.startTime = startTime; - this.endTime = endTime; } /** - * Build call for getGlobalEventLog + * Set postIds + * @param postIds (optional) + * @return APIgetUserReactsPublicRequest + */ + public APIgetUserReactsPublicRequest postIds(@javax.annotation.Nullable List postIds) { + this.postIds = postIds; + return this; + } + + /** + * Set sso + * @param sso (optional) + * @return APIgetUserReactsPublicRequest + */ + public APIgetUserReactsPublicRequest sso(@javax.annotation.Nullable String sso) { + this.sso = sso; + return this; + } + + /** + * Build call for getUserReactsPublic * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3544,45 +7092,48 @@ private APIgetGlobalEventLogRequest(@javax.annotation.Nonnull String tenantId, @ Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getGlobalEventLogCall(tenantId, urlId, userIdWS, startTime, endTime, _callback); + return getUserReactsPublicCall(tenantId, postIds, sso, _callback); } /** - * Execute getGlobalEventLog request - * @return GetEventLog200Response + * Execute getUserReactsPublic request + * @return UserReactsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetEventLog200Response execute() throws ApiException { - ApiResponse localVarResp = getGlobalEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); + public UserReactsResponse execute() throws ApiException { + ApiResponse localVarResp = getUserReactsPublicWithHttpInfo(tenantId, postIds, sso); return localVarResp.getData(); } /** - * Execute getGlobalEventLog request with HTTP info returned - * @return ApiResponse<GetEventLog200Response> + * Execute getUserReactsPublic request with HTTP info returned + * @return ApiResponse<UserReactsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getGlobalEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getUserReactsPublicWithHttpInfo(tenantId, postIds, sso); } /** - * Execute getGlobalEventLog request (asynchronously) + * Execute getUserReactsPublic request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3591,33 +7142,31 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getGlobalEventLogAsync(tenantId, urlId, userIdWS, startTime, endTime, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getUserReactsPublicAsync(tenantId, postIds, sso, _callback); } } /** * - * req tenantId urlId userIdWS + * * @param tenantId (required) - * @param urlId (required) - * @param userIdWS (required) - * @param startTime (required) - * @param endTime (required) - * @return APIgetGlobalEventLogRequest + * @return APIgetUserReactsPublicRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIgetGlobalEventLogRequest getGlobalEventLog(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String userIdWS, @javax.annotation.Nonnull Long startTime, @javax.annotation.Nonnull Long endTime) { - return new APIgetGlobalEventLogRequest(tenantId, urlId, userIdWS, startTime, endTime); + public APIgetUserReactsPublicRequest getUserReactsPublic(@javax.annotation.Nonnull String tenantId) { + return new APIgetUserReactsPublicRequest(tenantId); } - private okhttp3.Call getUserNotificationCountCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUsersInfoCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String ids, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3634,7 +7183,8 @@ private okhttp3.Call getUserNotificationCountCall(@javax.annotation.Nonnull Stri Object localVarPostBody = null; // create path and map variables - String localVarPath = "/user-notifications/get-count"; + String localVarPath = "/pages/{tenantId}/users/info" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3642,12 +7192,8 @@ private okhttp3.Call getUserNotificationCountCall(@javax.annotation.Nonnull Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - - if (sso != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + if (ids != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ids", ids)); } final String[] localVarAccepts = { @@ -3670,53 +7216,49 @@ private okhttp3.Call getUserNotificationCountCall(@javax.annotation.Nonnull Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserNotificationCountValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUsersInfoValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String ids, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { - throw new ApiException("Missing the required parameter 'tenantId' when calling getUserNotificationCount(Async)"); + throw new ApiException("Missing the required parameter 'tenantId' when calling getUsersInfo(Async)"); } - return getUserNotificationCountCall(tenantId, sso, _callback); + // verify the required parameter 'ids' is set + if (ids == null) { + throw new ApiException("Missing the required parameter 'ids' when calling getUsersInfo(Async)"); + } + + return getUsersInfoCall(tenantId, ids, _callback); } - private ApiResponse getUserNotificationCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getUserNotificationCountValidateBeforeCall(tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse getUsersInfoWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String ids) throws ApiException { + okhttp3.Call localVarCall = getUsersInfoValidateBeforeCall(tenantId, ids, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUserNotificationCountAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUsersInfoAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String ids, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUserNotificationCountValidateBeforeCall(tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getUsersInfoValidateBeforeCall(tenantId, ids, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIgetUserNotificationCountRequest { + public class APIgetUsersInfoRequest { @javax.annotation.Nonnull private final String tenantId; - @javax.annotation.Nullable - private String sso; + @javax.annotation.Nonnull + private final String ids; - private APIgetUserNotificationCountRequest(@javax.annotation.Nonnull String tenantId) { + private APIgetUsersInfoRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String ids) { this.tenantId = tenantId; + this.ids = ids; } /** - * Set sso - * @param sso (optional) - * @return APIgetUserNotificationCountRequest - */ - public APIgetUserNotificationCountRequest sso(@javax.annotation.Nullable String sso) { - this.sso = sso; - return this; - } - - /** - * Build call for getUserNotificationCount + * Build call for getUsersInfo * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3725,45 +7267,51 @@ public APIgetUserNotificationCountRequest sso(@javax.annotation.Nullable String Response Details Status Code Description Response Headers 200 Ok - + 422 Validation Failed - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getUserNotificationCountCall(tenantId, sso, _callback); + return getUsersInfoCall(tenantId, ids, _callback); } /** - * Execute getUserNotificationCount request - * @return GetUserNotificationCount200Response + * Execute getUsersInfo request + * @return PageUsersInfoResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public GetUserNotificationCount200Response execute() throws ApiException { - ApiResponse localVarResp = getUserNotificationCountWithHttpInfo(tenantId, sso); + public PageUsersInfoResponse execute() throws ApiException { + ApiResponse localVarResp = getUsersInfoWithHttpInfo(tenantId, ids); return localVarResp.getData(); } /** - * Execute getUserNotificationCount request with HTTP info returned - * @return ApiResponse<GetUserNotificationCount200Response> + * Execute getUsersInfo request with HTTP info returned + * @return ApiResponse<PageUsersInfoResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getUserNotificationCountWithHttpInfo(tenantId, sso); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getUsersInfoWithHttpInfo(tenantId, ids); } /** - * Execute getUserNotificationCount request (asynchronously) + * Execute getUsersInfo request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3772,29 +7320,34 @@ public ApiResponse executeWithHttpInfo() th Response Details Status Code Description Response Headers 200 Ok - + 422 Validation Failed - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getUserNotificationCountAsync(tenantId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getUsersInfoAsync(tenantId, ids, _callback); } } /** * - * + * 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). * @param tenantId (required) - * @return APIgetUserNotificationCountRequest + * @param ids Comma-delimited userIds. (required) + * @return APIgetUsersInfoRequest * @http.response.details + +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public APIgetUserNotificationCountRequest getUserNotificationCount(@javax.annotation.Nonnull String tenantId) { - return new APIgetUserNotificationCountRequest(tenantId); + public APIgetUsersInfoRequest getUsersInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String ids) { + return new APIgetUsersInfoRequest(tenantId, ids); } - private okhttp3.Call getUserNotificationsCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean includeContext, @javax.annotation.Nullable Long afterCreatedAt, @javax.annotation.Nullable Boolean unreadOnly, @javax.annotation.Nullable Boolean dmOnly, @javax.annotation.Nullable Boolean noDm, @javax.annotation.Nullable Boolean includeTranslations, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getV1PageLikesCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3811,7 +7364,8 @@ private okhttp3.Call getUserNotificationsCall(@javax.annotation.Nonnull String t Object localVarPostBody = null; // create path and map variables - String localVarPath = "/user-notifications"; + String localVarPath = "/page-reacts/v1/likes/{tenantId}" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3819,44 +7373,8 @@ private okhttp3.Call getUserNotificationsCall(@javax.annotation.Nonnull String t Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (afterId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("afterId", afterId)); - } - - if (includeContext != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeContext", includeContext)); - } - - if (afterCreatedAt != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("afterCreatedAt", afterCreatedAt)); - } - - if (unreadOnly != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("unreadOnly", unreadOnly)); - } - - if (dmOnly != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dmOnly", dmOnly)); - } - - if (noDm != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("noDm", noDm)); - } - - if (includeTranslations != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeTranslations", includeTranslations)); - } - - if (sso != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); } final String[] localVarAccepts = { @@ -3879,149 +7397,49 @@ private okhttp3.Call getUserNotificationsCall(@javax.annotation.Nonnull String t } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserNotificationsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean includeContext, @javax.annotation.Nullable Long afterCreatedAt, @javax.annotation.Nullable Boolean unreadOnly, @javax.annotation.Nullable Boolean dmOnly, @javax.annotation.Nullable Boolean noDm, @javax.annotation.Nullable Boolean includeTranslations, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getV1PageLikesValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { - throw new ApiException("Missing the required parameter 'tenantId' when calling getUserNotifications(Async)"); + throw new ApiException("Missing the required parameter 'tenantId' when calling getV1PageLikes(Async)"); } - return getUserNotificationsCall(tenantId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, sso, _callback); + // verify the required parameter 'urlId' is set + if (urlId == null) { + throw new ApiException("Missing the required parameter 'urlId' when calling getV1PageLikes(Async)"); + } + + return getV1PageLikesCall(tenantId, urlId, _callback); } - private ApiResponse getUserNotificationsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean includeContext, @javax.annotation.Nullable Long afterCreatedAt, @javax.annotation.Nullable Boolean unreadOnly, @javax.annotation.Nullable Boolean dmOnly, @javax.annotation.Nullable Boolean noDm, @javax.annotation.Nullable Boolean includeTranslations, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getUserNotificationsValidateBeforeCall(tenantId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse getV1PageLikesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) throws ApiException { + okhttp3.Call localVarCall = getV1PageLikesValidateBeforeCall(tenantId, urlId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUserNotificationsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean includeContext, @javax.annotation.Nullable Long afterCreatedAt, @javax.annotation.Nullable Boolean unreadOnly, @javax.annotation.Nullable Boolean dmOnly, @javax.annotation.Nullable Boolean noDm, @javax.annotation.Nullable Boolean includeTranslations, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getV1PageLikesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUserNotificationsValidateBeforeCall(tenantId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getV1PageLikesValidateBeforeCall(tenantId, urlId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIgetUserNotificationsRequest { - @javax.annotation.Nonnull - private final String tenantId; - @javax.annotation.Nullable - private Integer pageSize; - @javax.annotation.Nullable - private String afterId; - @javax.annotation.Nullable - private Boolean includeContext; - @javax.annotation.Nullable - private Long afterCreatedAt; - @javax.annotation.Nullable - private Boolean unreadOnly; - @javax.annotation.Nullable - private Boolean dmOnly; - @javax.annotation.Nullable - private Boolean noDm; - @javax.annotation.Nullable - private Boolean includeTranslations; - @javax.annotation.Nullable - private String sso; - - private APIgetUserNotificationsRequest(@javax.annotation.Nonnull String tenantId) { - this.tenantId = tenantId; - } - - /** - * Set pageSize - * @param pageSize (optional) - * @return APIgetUserNotificationsRequest - */ - public APIgetUserNotificationsRequest pageSize(@javax.annotation.Nullable Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Set afterId - * @param afterId (optional) - * @return APIgetUserNotificationsRequest - */ - public APIgetUserNotificationsRequest afterId(@javax.annotation.Nullable String afterId) { - this.afterId = afterId; - return this; - } - - /** - * Set includeContext - * @param includeContext (optional) - * @return APIgetUserNotificationsRequest - */ - public APIgetUserNotificationsRequest includeContext(@javax.annotation.Nullable Boolean includeContext) { - this.includeContext = includeContext; - return this; - } - - /** - * Set afterCreatedAt - * @param afterCreatedAt (optional) - * @return APIgetUserNotificationsRequest - */ - public APIgetUserNotificationsRequest afterCreatedAt(@javax.annotation.Nullable Long afterCreatedAt) { - this.afterCreatedAt = afterCreatedAt; - return this; - } - - /** - * Set unreadOnly - * @param unreadOnly (optional) - * @return APIgetUserNotificationsRequest - */ - public APIgetUserNotificationsRequest unreadOnly(@javax.annotation.Nullable Boolean unreadOnly) { - this.unreadOnly = unreadOnly; - return this; - } - - /** - * Set dmOnly - * @param dmOnly (optional) - * @return APIgetUserNotificationsRequest - */ - public APIgetUserNotificationsRequest dmOnly(@javax.annotation.Nullable Boolean dmOnly) { - this.dmOnly = dmOnly; - return this; - } - - /** - * Set noDm - * @param noDm (optional) - * @return APIgetUserNotificationsRequest - */ - public APIgetUserNotificationsRequest noDm(@javax.annotation.Nullable Boolean noDm) { - this.noDm = noDm; - return this; - } - - /** - * Set includeTranslations - * @param includeTranslations (optional) - * @return APIgetUserNotificationsRequest - */ - public APIgetUserNotificationsRequest includeTranslations(@javax.annotation.Nullable Boolean includeTranslations) { - this.includeTranslations = includeTranslations; - return this; - } + return localVarCall; + } - /** - * Set sso - * @param sso (optional) - * @return APIgetUserNotificationsRequest - */ - public APIgetUserNotificationsRequest sso(@javax.annotation.Nullable String sso) { - this.sso = sso; - return this; + public class APIgetV1PageLikesRequest { + @javax.annotation.Nonnull + private final String tenantId; + @javax.annotation.Nonnull + private final String urlId; + + private APIgetV1PageLikesRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + this.tenantId = tenantId; + this.urlId = urlId; } /** - * Build call for getUserNotifications + * Build call for getV1PageLikes * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4030,45 +7448,48 @@ public APIgetUserNotificationsRequest sso(@javax.annotation.Nullable String sso) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getUserNotificationsCall(tenantId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, sso, _callback); + return getV1PageLikesCall(tenantId, urlId, _callback); } /** - * Execute getUserNotifications request - * @return GetUserNotifications200Response + * Execute getV1PageLikes request + * @return GetV1PageLikes * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetUserNotifications200Response execute() throws ApiException { - ApiResponse localVarResp = getUserNotificationsWithHttpInfo(tenantId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, sso); + public GetV1PageLikes execute() throws ApiException { + ApiResponse localVarResp = getV1PageLikesWithHttpInfo(tenantId, urlId); return localVarResp.getData(); } /** - * Execute getUserNotifications request with HTTP info returned - * @return ApiResponse<GetUserNotifications200Response> + * Execute getV1PageLikes request with HTTP info returned + * @return ApiResponse<GetV1PageLikes> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getUserNotificationsWithHttpInfo(tenantId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, sso); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getV1PageLikesWithHttpInfo(tenantId, urlId); } /** - * Execute getUserNotifications request (asynchronously) + * Execute getV1PageLikes request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4077,10 +7498,11 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getUserNotificationsAsync(tenantId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getV1PageLikesAsync(tenantId, urlId, _callback); } } @@ -4088,18 +7510,20 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public APIgetUserNotificationsRequest getUserNotifications(@javax.annotation.Nonnull String tenantId) { - return new APIgetUserNotificationsRequest(tenantId); + public APIgetV1PageLikesRequest getV1PageLikes(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + return new APIgetV1PageLikesRequest(tenantId, urlId); } - private okhttp3.Call getUserPresenceStatusesCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getV2PageReactUsersCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4116,7 +7540,8 @@ private okhttp3.Call getUserPresenceStatusesCall(@javax.annotation.Nonnull Strin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/user-presence-status"; + String localVarPath = "/page-reacts/v2/{tenantId}/list" + .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4124,16 +7549,12 @@ private okhttp3.Call getUserPresenceStatusesCall(@javax.annotation.Nonnull Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - - if (urlIdWS != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlIdWS", urlIdWS)); + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); } - if (userIds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("userIds", userIds)); + if (id != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id)); } final String[] localVarAccepts = { @@ -4156,57 +7577,57 @@ private okhttp3.Call getUserPresenceStatusesCall(@javax.annotation.Nonnull Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserPresenceStatusesValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getV2PageReactUsersValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { - throw new ApiException("Missing the required parameter 'tenantId' when calling getUserPresenceStatuses(Async)"); + throw new ApiException("Missing the required parameter 'tenantId' when calling getV2PageReactUsers(Async)"); } - // verify the required parameter 'urlIdWS' is set - if (urlIdWS == null) { - throw new ApiException("Missing the required parameter 'urlIdWS' when calling getUserPresenceStatuses(Async)"); + // verify the required parameter 'urlId' is set + if (urlId == null) { + throw new ApiException("Missing the required parameter 'urlId' when calling getV2PageReactUsers(Async)"); } - // verify the required parameter 'userIds' is set - if (userIds == null) { - throw new ApiException("Missing the required parameter 'userIds' when calling getUserPresenceStatuses(Async)"); + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getV2PageReactUsers(Async)"); } - return getUserPresenceStatusesCall(tenantId, urlIdWS, userIds, _callback); + return getV2PageReactUsersCall(tenantId, urlId, id, _callback); } - private ApiResponse getUserPresenceStatusesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds) throws ApiException { - okhttp3.Call localVarCall = getUserPresenceStatusesValidateBeforeCall(tenantId, urlIdWS, userIds, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse getV2PageReactUsersWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) throws ApiException { + okhttp3.Call localVarCall = getV2PageReactUsersValidateBeforeCall(tenantId, urlId, id, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUserPresenceStatusesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getV2PageReactUsersAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUserPresenceStatusesValidateBeforeCall(tenantId, urlIdWS, userIds, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getV2PageReactUsersValidateBeforeCall(tenantId, urlId, id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIgetUserPresenceStatusesRequest { + public class APIgetV2PageReactUsersRequest { @javax.annotation.Nonnull private final String tenantId; @javax.annotation.Nonnull - private final String urlIdWS; + private final String urlId; @javax.annotation.Nonnull - private final String userIds; + private final String id; - private APIgetUserPresenceStatusesRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds) { + private APIgetV2PageReactUsersRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) { this.tenantId = tenantId; - this.urlIdWS = urlIdWS; - this.userIds = userIds; + this.urlId = urlId; + this.id = id; } /** - * Build call for getUserPresenceStatuses + * Build call for getV2PageReactUsers * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4215,48 +7636,48 @@ private APIgetUserPresenceStatusesRequest(@javax.annotation.Nonnull String tenan Response Details Status Code Description Response Headers 200 Ok - - 422 Validation Failed - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getUserPresenceStatusesCall(tenantId, urlIdWS, userIds, _callback); + return getV2PageReactUsersCall(tenantId, urlId, id, _callback); } /** - * Execute getUserPresenceStatuses request - * @return GetUserPresenceStatuses200Response + * Execute getV2PageReactUsers request + * @return GetV2PageReactUsersResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public GetUserPresenceStatuses200Response execute() throws ApiException { - ApiResponse localVarResp = getUserPresenceStatusesWithHttpInfo(tenantId, urlIdWS, userIds); + public GetV2PageReactUsersResponse execute() throws ApiException { + ApiResponse localVarResp = getV2PageReactUsersWithHttpInfo(tenantId, urlId, id); return localVarResp.getData(); } /** - * Execute getUserPresenceStatuses request with HTTP info returned - * @return ApiResponse<GetUserPresenceStatuses200Response> + * Execute getV2PageReactUsers request with HTTP info returned + * @return ApiResponse<GetV2PageReactUsersResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getUserPresenceStatusesWithHttpInfo(tenantId, urlIdWS, userIds); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getV2PageReactUsersWithHttpInfo(tenantId, urlId, id); } /** - * Execute getUserPresenceStatuses request (asynchronously) + * Execute getV2PageReactUsers request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4265,11 +7686,11 @@ public ApiResponse executeWithHttpInfo() thr Response Details Status Code Description Response Headers 200 Ok - - 422 Validation Failed - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getUserPresenceStatusesAsync(tenantId, urlIdWS, userIds, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getV2PageReactUsersAsync(tenantId, urlId, id, _callback); } } @@ -4277,21 +7698,21 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - - 422 Validation Failed - + 0 Error - */ - public APIgetUserPresenceStatusesRequest getUserPresenceStatuses(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds) { - return new APIgetUserPresenceStatusesRequest(tenantId, urlIdWS, userIds); + public APIgetV2PageReactUsersRequest getV2PageReactUsers(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) { + return new APIgetV2PageReactUsersRequest(tenantId, urlId, id); } - private okhttp3.Call getUserReactsPublicCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable List postIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getV2PageReactsCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4308,7 +7729,7 @@ private okhttp3.Call getUserReactsPublicCall(@javax.annotation.Nonnull String te Object localVarPostBody = null; // create path and map variables - String localVarPath = "/feed-posts/{tenantId}/user-reacts" + String localVarPath = "/page-reacts/v2/{tenantId}" .replace("{" + "tenantId" + "}", localVarApiClient.escapeString(tenantId.toString())); List localVarQueryParams = new ArrayList(); @@ -4317,12 +7738,8 @@ private okhttp3.Call getUserReactsPublicCall(@javax.annotation.Nonnull String te Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (postIds != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "postIds", postIds)); - } - - if (sso != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); } final String[] localVarAccepts = { @@ -4345,65 +7762,49 @@ private okhttp3.Call getUserReactsPublicCall(@javax.annotation.Nonnull String te } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserReactsPublicValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable List postIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getV2PageReactsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tenantId' is set if (tenantId == null) { - throw new ApiException("Missing the required parameter 'tenantId' when calling getUserReactsPublic(Async)"); + throw new ApiException("Missing the required parameter 'tenantId' when calling getV2PageReacts(Async)"); } - return getUserReactsPublicCall(tenantId, postIds, sso, _callback); + // verify the required parameter 'urlId' is set + if (urlId == null) { + throw new ApiException("Missing the required parameter 'urlId' when calling getV2PageReacts(Async)"); + } + + return getV2PageReactsCall(tenantId, urlId, _callback); } - private ApiResponse getUserReactsPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable List postIds, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getUserReactsPublicValidateBeforeCall(tenantId, postIds, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse getV2PageReactsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) throws ApiException { + okhttp3.Call localVarCall = getV2PageReactsValidateBeforeCall(tenantId, urlId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUserReactsPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable List postIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getV2PageReactsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUserReactsPublicValidateBeforeCall(tenantId, postIds, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getV2PageReactsValidateBeforeCall(tenantId, urlId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIgetUserReactsPublicRequest { + public class APIgetV2PageReactsRequest { @javax.annotation.Nonnull private final String tenantId; - @javax.annotation.Nullable - private List postIds; - @javax.annotation.Nullable - private String sso; + @javax.annotation.Nonnull + private final String urlId; - private APIgetUserReactsPublicRequest(@javax.annotation.Nonnull String tenantId) { + private APIgetV2PageReactsRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { this.tenantId = tenantId; + this.urlId = urlId; } /** - * Set postIds - * @param postIds (optional) - * @return APIgetUserReactsPublicRequest - */ - public APIgetUserReactsPublicRequest postIds(@javax.annotation.Nullable List postIds) { - this.postIds = postIds; - return this; - } - - /** - * Set sso - * @param sso (optional) - * @return APIgetUserReactsPublicRequest - */ - public APIgetUserReactsPublicRequest sso(@javax.annotation.Nullable String sso) { - this.sso = sso; - return this; - } - - /** - * Build call for getUserReactsPublic + * Build call for getV2PageReacts * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4412,45 +7813,48 @@ public APIgetUserReactsPublicRequest sso(@javax.annotation.Nullable String sso) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getUserReactsPublicCall(tenantId, postIds, sso, _callback); + return getV2PageReactsCall(tenantId, urlId, _callback); } /** - * Execute getUserReactsPublic request - * @return GetUserReactsPublic200Response + * Execute getV2PageReacts request + * @return GetV2PageReacts * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetUserReactsPublic200Response execute() throws ApiException { - ApiResponse localVarResp = getUserReactsPublicWithHttpInfo(tenantId, postIds, sso); + public GetV2PageReacts execute() throws ApiException { + ApiResponse localVarResp = getV2PageReactsWithHttpInfo(tenantId, urlId); return localVarResp.getData(); } /** - * Execute getUserReactsPublic request with HTTP info returned - * @return ApiResponse<GetUserReactsPublic200Response> + * Execute getV2PageReacts request with HTTP info returned + * @return ApiResponse<GetV2PageReacts> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getUserReactsPublicWithHttpInfo(tenantId, postIds, sso); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getV2PageReactsWithHttpInfo(tenantId, urlId); } /** - * Execute getUserReactsPublic request (asynchronously) + * Execute getV2PageReacts request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4459,10 +7863,11 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getUserReactsPublicAsync(tenantId, postIds, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getV2PageReactsAsync(tenantId, urlId, _callback); } } @@ -4470,16 +7875,18 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public APIgetUserReactsPublicRequest getUserReactsPublic(@javax.annotation.Nonnull String tenantId) { - return new APIgetUserReactsPublicRequest(tenantId); + public APIgetV2PageReactsRequest getV2PageReacts(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + return new APIgetV2PageReactsRequest(tenantId, urlId); } private okhttp3.Call lockCommentCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -4557,16 +7964,16 @@ private okhttp3.Call lockCommentValidateBeforeCall(@javax.annotation.Nonnull Str } - private ApiResponse lockCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse lockCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = lockCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call lockCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call lockCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = lockCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4607,6 +8014,7 @@ public APIlockCommentRequest sso(@javax.annotation.Nullable String sso) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -4615,32 +8023,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute lockComment request - * @return LockComment200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public LockComment200Response execute() throws ApiException { - ApiResponse localVarResp = lockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = lockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } /** * Execute lockComment request with HTTP info returned - * @return ApiResponse<LockComment200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return lockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); } @@ -4654,9 +8064,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return lockCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } @@ -4673,11 +8084,160 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIlockCommentRequest lockComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId) { return new APIlockCommentRequest(tenantId, commentId, broadcastId); } + private okhttp3.Call logoutPublicCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/logout"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call logoutPublicValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return logoutPublicCall(_callback); + + } + + + private ApiResponse logoutPublicWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = logoutPublicValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call logoutPublicAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = logoutPublicValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlogoutPublicRequest { + + private APIlogoutPublicRequest() { + } + + /** + * Build call for logoutPublic + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return logoutPublicCall(_callback); + } + + /** + * Execute logoutPublic request + * @return APIEmptyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
+ */ + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = logoutPublicWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Execute logoutPublic request with HTTP info returned + * @return ApiResponse<APIEmptyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return logoutPublicWithHttpInfo(); + } + + /** + * Execute logoutPublic request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return logoutPublicAsync(_callback); + } + } + + /** + * + * + * @return APIlogoutPublicRequest + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 Ok -
+ */ + public APIlogoutPublicRequest logoutPublic() { + return new APIlogoutPublicRequest(); + } private okhttp3.Call pinCommentCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -4754,16 +8314,16 @@ private okhttp3.Call pinCommentValidateBeforeCall(@javax.annotation.Nonnull Stri } - private ApiResponse pinCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse pinCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = pinCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call pinCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call pinCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = pinCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4804,6 +8364,7 @@ public APIpinCommentRequest sso(@javax.annotation.Nullable String sso) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -4812,32 +8373,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute pinComment request - * @return PinComment200Response + * @return ChangeCommentPinStatusResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public PinComment200Response execute() throws ApiException { - ApiResponse localVarResp = pinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); + public ChangeCommentPinStatusResponse execute() throws ApiException { + ApiResponse localVarResp = pinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } /** * Execute pinComment request with HTTP info returned - * @return ApiResponse<PinComment200Response> + * @return ApiResponse<ChangeCommentPinStatusResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return pinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); } @@ -4851,9 +8414,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return pinCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } @@ -4870,6 +8434,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpinCommentRequest pinComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId) { @@ -4956,16 +8521,16 @@ private okhttp3.Call reactFeedPostPublicValidateBeforeCall(@javax.annotation.Non } - private ApiResponse reactFeedPostPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nonnull ReactBodyParams reactBodyParams, @javax.annotation.Nullable Boolean isUndo, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse reactFeedPostPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nonnull ReactBodyParams reactBodyParams, @javax.annotation.Nullable Boolean isUndo, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = reactFeedPostPublicValidateBeforeCall(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call reactFeedPostPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nonnull ReactBodyParams reactBodyParams, @javax.annotation.Nullable Boolean isUndo, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call reactFeedPostPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nonnull ReactBodyParams reactBodyParams, @javax.annotation.Nullable Boolean isUndo, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = reactFeedPostPublicValidateBeforeCall(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5030,6 +8595,7 @@ public APIreactFeedPostPublicRequest sso(@javax.annotation.Nullable String sso) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5038,32 +8604,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute reactFeedPostPublic request - * @return ReactFeedPostPublic200Response + * @return ReactFeedPostResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ReactFeedPostPublic200Response execute() throws ApiException { - ApiResponse localVarResp = reactFeedPostPublicWithHttpInfo(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso); + public ReactFeedPostResponse execute() throws ApiException { + ApiResponse localVarResp = reactFeedPostPublicWithHttpInfo(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso); return localVarResp.getData(); } /** * Execute reactFeedPostPublic request with HTTP info returned - * @return ApiResponse<ReactFeedPostPublic200Response> + * @return ApiResponse<ReactFeedPostResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return reactFeedPostPublicWithHttpInfo(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso); } @@ -5077,9 +8645,10 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return reactFeedPostPublicAsync(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso, _callback); } } @@ -5096,6 +8665,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIreactFeedPostPublicRequest reactFeedPostPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nonnull ReactBodyParams reactBodyParams) { @@ -5165,16 +8735,16 @@ private okhttp3.Call resetUserNotificationCountValidateBeforeCall(@javax.annotat } - private ApiResponse resetUserNotificationCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse resetUserNotificationCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = resetUserNotificationCountValidateBeforeCall(tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call resetUserNotificationCountAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call resetUserNotificationCountAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = resetUserNotificationCountValidateBeforeCall(tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5209,6 +8779,7 @@ public APIresetUserNotificationCountRequest sso(@javax.annotation.Nullable Strin Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5217,32 +8788,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute resetUserNotificationCount request - * @return ResetUserNotifications200Response + * @return ResetUserNotificationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ResetUserNotifications200Response execute() throws ApiException { - ApiResponse localVarResp = resetUserNotificationCountWithHttpInfo(tenantId, sso); + public ResetUserNotificationsResponse execute() throws ApiException { + ApiResponse localVarResp = resetUserNotificationCountWithHttpInfo(tenantId, sso); return localVarResp.getData(); } /** * Execute resetUserNotificationCount request with HTTP info returned - * @return ApiResponse<ResetUserNotifications200Response> + * @return ApiResponse<ResetUserNotificationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return resetUserNotificationCountWithHttpInfo(tenantId, sso); } @@ -5256,9 +8829,10 @@ public ApiResponse executeWithHttpInfo() thro Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return resetUserNotificationCountAsync(tenantId, sso, _callback); } } @@ -5273,6 +8847,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIresetUserNotificationCountRequest resetUserNotificationCount(@javax.annotation.Nonnull String tenantId) { @@ -5362,16 +8937,16 @@ private okhttp3.Call resetUserNotificationsValidateBeforeCall(@javax.annotation. } - private ApiResponse resetUserNotificationsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Long afterCreatedAt, @javax.annotation.Nullable Boolean unreadOnly, @javax.annotation.Nullable Boolean dmOnly, @javax.annotation.Nullable Boolean noDm, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse resetUserNotificationsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Long afterCreatedAt, @javax.annotation.Nullable Boolean unreadOnly, @javax.annotation.Nullable Boolean dmOnly, @javax.annotation.Nullable Boolean noDm, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = resetUserNotificationsValidateBeforeCall(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call resetUserNotificationsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Long afterCreatedAt, @javax.annotation.Nullable Boolean unreadOnly, @javax.annotation.Nullable Boolean dmOnly, @javax.annotation.Nullable Boolean noDm, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call resetUserNotificationsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Long afterCreatedAt, @javax.annotation.Nullable Boolean unreadOnly, @javax.annotation.Nullable Boolean dmOnly, @javax.annotation.Nullable Boolean noDm, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = resetUserNotificationsValidateBeforeCall(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5466,6 +9041,7 @@ public APIresetUserNotificationsRequest sso(@javax.annotation.Nullable String ss Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5474,32 +9050,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute resetUserNotifications request - * @return ResetUserNotifications200Response + * @return ResetUserNotificationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ResetUserNotifications200Response execute() throws ApiException { - ApiResponse localVarResp = resetUserNotificationsWithHttpInfo(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso); + public ResetUserNotificationsResponse execute() throws ApiException { + ApiResponse localVarResp = resetUserNotificationsWithHttpInfo(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso); return localVarResp.getData(); } /** * Execute resetUserNotifications request with HTTP info returned - * @return ApiResponse<ResetUserNotifications200Response> + * @return ApiResponse<ResetUserNotificationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return resetUserNotificationsWithHttpInfo(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso); } @@ -5513,9 +9091,10 @@ public ApiResponse executeWithHttpInfo() thro Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return resetUserNotificationsAsync(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso, _callback); } } @@ -5530,6 +9109,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIresetUserNotificationsRequest resetUserNotifications(@javax.annotation.Nonnull String tenantId) { @@ -5617,16 +9197,16 @@ private okhttp3.Call searchUsersValidateBeforeCall(@javax.annotation.Nonnull Str } - private ApiResponse searchUsersWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String usernameStartsWith, @javax.annotation.Nullable List mentionGroupIds, @javax.annotation.Nullable String sso, @javax.annotation.Nullable String searchSection) throws ApiException { + private ApiResponse searchUsersWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String usernameStartsWith, @javax.annotation.Nullable List mentionGroupIds, @javax.annotation.Nullable String sso, @javax.annotation.Nullable String searchSection) throws ApiException { okhttp3.Call localVarCall = searchUsersValidateBeforeCall(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call searchUsersAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String usernameStartsWith, @javax.annotation.Nullable List mentionGroupIds, @javax.annotation.Nullable String sso, @javax.annotation.Nullable String searchSection, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchUsersAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String usernameStartsWith, @javax.annotation.Nullable List mentionGroupIds, @javax.annotation.Nullable String sso, @javax.annotation.Nullable String searchSection, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchUsersValidateBeforeCall(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5700,6 +9280,7 @@ public APIsearchUsersRequest searchSection(@javax.annotation.Nullable String sea Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5708,32 +9289,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute searchUsers request - * @return SearchUsers200Response + * @return SearchUsersResult * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public SearchUsers200Response execute() throws ApiException { - ApiResponse localVarResp = searchUsersWithHttpInfo(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection); + public SearchUsersResult execute() throws ApiException { + ApiResponse localVarResp = searchUsersWithHttpInfo(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection); return localVarResp.getData(); } /** * Execute searchUsers request with HTTP info returned - * @return ApiResponse<SearchUsers200Response> + * @return ApiResponse<SearchUsersResult> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return searchUsersWithHttpInfo(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection); } @@ -5747,9 +9330,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return searchUsersAsync(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection, _callback); } } @@ -5765,6 +9349,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIsearchUsersRequest searchUsers(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -5856,16 +9441,16 @@ private okhttp3.Call setCommentTextValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse setCommentTextWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nonnull CommentTextUpdateRequest commentTextUpdateRequest, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse setCommentTextWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nonnull CommentTextUpdateRequest commentTextUpdateRequest, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = setCommentTextValidateBeforeCall(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call setCommentTextAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nonnull CommentTextUpdateRequest commentTextUpdateRequest, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call setCommentTextAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nonnull CommentTextUpdateRequest commentTextUpdateRequest, @javax.annotation.Nullable String editKey, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = setCommentTextValidateBeforeCall(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5921,6 +9506,7 @@ public APIsetCommentTextRequest sso(@javax.annotation.Nullable String sso) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5929,32 +9515,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute setCommentText request - * @return SetCommentText200Response + * @return PublicAPISetCommentTextResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public SetCommentText200Response execute() throws ApiException { - ApiResponse localVarResp = setCommentTextWithHttpInfo(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso); + public PublicAPISetCommentTextResponse execute() throws ApiException { + ApiResponse localVarResp = setCommentTextWithHttpInfo(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso); return localVarResp.getData(); } /** * Execute setCommentText request with HTTP info returned - * @return ApiResponse<SetCommentText200Response> + * @return ApiResponse<PublicAPISetCommentTextResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return setCommentTextWithHttpInfo(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso); } @@ -5968,9 +9556,10 @@ public ApiResponse executeWithHttpInfo() throws ApiEx Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return setCommentTextAsync(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso, _callback); } } @@ -5988,6 +9577,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIsetCommentTextRequest setCommentText(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nonnull CommentTextUpdateRequest commentTextUpdateRequest) { @@ -6069,16 +9659,16 @@ private okhttp3.Call unBlockCommentPublicValidateBeforeCall(@javax.annotation.No } - private ApiResponse unBlockCommentPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull PublicBlockFromCommentParams publicBlockFromCommentParams, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse unBlockCommentPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull PublicBlockFromCommentParams publicBlockFromCommentParams, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = unBlockCommentPublicValidateBeforeCall(tenantId, commentId, publicBlockFromCommentParams, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call unBlockCommentPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull PublicBlockFromCommentParams publicBlockFromCommentParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call unBlockCommentPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull PublicBlockFromCommentParams publicBlockFromCommentParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = unBlockCommentPublicValidateBeforeCall(tenantId, commentId, publicBlockFromCommentParams, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6119,6 +9709,7 @@ public APIunBlockCommentPublicRequest sso(@javax.annotation.Nullable String sso) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -6127,32 +9718,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute unBlockCommentPublic request - * @return UnBlockCommentPublic200Response + * @return UnblockSuccess * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public UnBlockCommentPublic200Response execute() throws ApiException { - ApiResponse localVarResp = unBlockCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso); + public UnblockSuccess execute() throws ApiException { + ApiResponse localVarResp = unBlockCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso); return localVarResp.getData(); } /** * Execute unBlockCommentPublic request with HTTP info returned - * @return ApiResponse<UnBlockCommentPublic200Response> + * @return ApiResponse<UnblockSuccess> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return unBlockCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso); } @@ -6166,9 +9759,10 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return unBlockCommentPublicAsync(tenantId, commentId, publicBlockFromCommentParams, sso, _callback); } } @@ -6185,6 +9779,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIunBlockCommentPublicRequest unBlockCommentPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull PublicBlockFromCommentParams publicBlockFromCommentParams) { @@ -6266,16 +9861,16 @@ private okhttp3.Call unLockCommentValidateBeforeCall(@javax.annotation.Nonnull S } - private ApiResponse unLockCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse unLockCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = unLockCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call unLockCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call unLockCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = unLockCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6316,6 +9911,7 @@ public APIunLockCommentRequest sso(@javax.annotation.Nullable String sso) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -6324,32 +9920,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute unLockComment request - * @return LockComment200Response + * @return APIEmptyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public LockComment200Response execute() throws ApiException { - ApiResponse localVarResp = unLockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = unLockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } /** * Execute unLockComment request with HTTP info returned - * @return ApiResponse<LockComment200Response> + * @return ApiResponse<APIEmptyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return unLockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); } @@ -6363,9 +9961,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return unLockCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } @@ -6382,6 +9981,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIunLockCommentRequest unLockComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId) { @@ -6463,16 +10063,16 @@ private okhttp3.Call unPinCommentValidateBeforeCall(@javax.annotation.Nonnull St } - private ApiResponse unPinCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse unPinCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = unPinCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call unPinCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call unPinCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = unPinCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6513,6 +10113,7 @@ public APIunPinCommentRequest sso(@javax.annotation.Nullable String sso) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -6521,32 +10122,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute unPinComment request - * @return PinComment200Response + * @return ChangeCommentPinStatusResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public PinComment200Response execute() throws ApiException { - ApiResponse localVarResp = unPinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); + public ChangeCommentPinStatusResponse execute() throws ApiException { + ApiResponse localVarResp = unPinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } /** * Execute unPinComment request with HTTP info returned - * @return ApiResponse<PinComment200Response> + * @return ApiResponse<ChangeCommentPinStatusResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return unPinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); } @@ -6560,9 +10163,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return unPinCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } @@ -6579,6 +10183,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIunPinCommentRequest unPinComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String broadcastId) { @@ -6661,16 +10266,16 @@ private okhttp3.Call updateFeedPostPublicValidateBeforeCall(@javax.annotation.No } - private ApiResponse updateFeedPostPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nonnull UpdateFeedPostParams updateFeedPostParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse updateFeedPostPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nonnull UpdateFeedPostParams updateFeedPostParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = updateFeedPostPublicValidateBeforeCall(tenantId, postId, updateFeedPostParams, broadcastId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updateFeedPostPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nonnull UpdateFeedPostParams updateFeedPostParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateFeedPostPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nonnull UpdateFeedPostParams updateFeedPostParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateFeedPostPublicValidateBeforeCall(tenantId, postId, updateFeedPostParams, broadcastId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6723,6 +10328,7 @@ public APIupdateFeedPostPublicRequest sso(@javax.annotation.Nullable String sso) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -6731,32 +10337,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateFeedPostPublic request - * @return CreateFeedPostPublic200Response + * @return CreateFeedPostResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateFeedPostPublic200Response execute() throws ApiException { - ApiResponse localVarResp = updateFeedPostPublicWithHttpInfo(tenantId, postId, updateFeedPostParams, broadcastId, sso); + public CreateFeedPostResponse execute() throws ApiException { + ApiResponse localVarResp = updateFeedPostPublicWithHttpInfo(tenantId, postId, updateFeedPostParams, broadcastId, sso); return localVarResp.getData(); } /** * Execute updateFeedPostPublic request with HTTP info returned - * @return ApiResponse<CreateFeedPostPublic200Response> + * @return ApiResponse<CreateFeedPostResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return updateFeedPostPublicWithHttpInfo(tenantId, postId, updateFeedPostParams, broadcastId, sso); } @@ -6770,9 +10378,10 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateFeedPostPublicAsync(tenantId, postId, updateFeedPostParams, broadcastId, sso, _callback); } } @@ -6789,6 +10398,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIupdateFeedPostPublicRequest updateFeedPostPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String postId, @javax.annotation.Nonnull UpdateFeedPostParams updateFeedPostParams) { @@ -6879,16 +10489,16 @@ private okhttp3.Call updateUserNotificationCommentSubscriptionStatusValidateBefo } - private ApiResponse updateUserNotificationCommentSubscriptionStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String notificationId, @javax.annotation.Nonnull String optedInOrOut, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse updateUserNotificationCommentSubscriptionStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String notificationId, @javax.annotation.Nonnull String optedInOrOut, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = updateUserNotificationCommentSubscriptionStatusValidateBeforeCall(tenantId, notificationId, optedInOrOut, commentId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updateUserNotificationCommentSubscriptionStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String notificationId, @javax.annotation.Nonnull String optedInOrOut, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateUserNotificationCommentSubscriptionStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String notificationId, @javax.annotation.Nonnull String optedInOrOut, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateUserNotificationCommentSubscriptionStatusValidateBeforeCall(tenantId, notificationId, optedInOrOut, commentId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6932,6 +10542,7 @@ public APIupdateUserNotificationCommentSubscriptionStatusRequest sso(@javax.anno Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -6940,32 +10551,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateUserNotificationCommentSubscriptionStatus request - * @return UpdateUserNotificationStatus200Response + * @return UpdateUserNotificationCommentSubscriptionStatusResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public UpdateUserNotificationStatus200Response execute() throws ApiException { - ApiResponse localVarResp = updateUserNotificationCommentSubscriptionStatusWithHttpInfo(tenantId, notificationId, optedInOrOut, commentId, sso); + public UpdateUserNotificationCommentSubscriptionStatusResponse execute() throws ApiException { + ApiResponse localVarResp = updateUserNotificationCommentSubscriptionStatusWithHttpInfo(tenantId, notificationId, optedInOrOut, commentId, sso); return localVarResp.getData(); } /** * Execute updateUserNotificationCommentSubscriptionStatus request with HTTP info returned - * @return ApiResponse<UpdateUserNotificationStatus200Response> + * @return ApiResponse<UpdateUserNotificationCommentSubscriptionStatusResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return updateUserNotificationCommentSubscriptionStatusWithHttpInfo(tenantId, notificationId, optedInOrOut, commentId, sso); } @@ -6979,9 +10592,10 @@ public ApiResponse executeWithHttpInfo( Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateUserNotificationCommentSubscriptionStatusAsync(tenantId, notificationId, optedInOrOut, commentId, sso, _callback); } } @@ -6999,6 +10613,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIupdateUserNotificationCommentSubscriptionStatusRequest updateUserNotificationCommentSubscriptionStatus(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String notificationId, @javax.annotation.Nonnull String optedInOrOut, @javax.annotation.Nonnull String commentId) { @@ -7101,16 +10716,16 @@ private okhttp3.Call updateUserNotificationPageSubscriptionStatusValidateBeforeC } - private ApiResponse updateUserNotificationPageSubscriptionStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String url, @javax.annotation.Nonnull String pageTitle, @javax.annotation.Nonnull String subscribedOrUnsubscribed, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse updateUserNotificationPageSubscriptionStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String url, @javax.annotation.Nonnull String pageTitle, @javax.annotation.Nonnull String subscribedOrUnsubscribed, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = updateUserNotificationPageSubscriptionStatusValidateBeforeCall(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updateUserNotificationPageSubscriptionStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String url, @javax.annotation.Nonnull String pageTitle, @javax.annotation.Nonnull String subscribedOrUnsubscribed, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateUserNotificationPageSubscriptionStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String url, @javax.annotation.Nonnull String pageTitle, @javax.annotation.Nonnull String subscribedOrUnsubscribed, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateUserNotificationPageSubscriptionStatusValidateBeforeCall(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7157,6 +10772,7 @@ public APIupdateUserNotificationPageSubscriptionStatusRequest sso(@javax.annotat Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -7165,32 +10781,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateUserNotificationPageSubscriptionStatus request - * @return UpdateUserNotificationStatus200Response + * @return UpdateUserNotificationPageSubscriptionStatusResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public UpdateUserNotificationStatus200Response execute() throws ApiException { - ApiResponse localVarResp = updateUserNotificationPageSubscriptionStatusWithHttpInfo(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso); + public UpdateUserNotificationPageSubscriptionStatusResponse execute() throws ApiException { + ApiResponse localVarResp = updateUserNotificationPageSubscriptionStatusWithHttpInfo(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso); return localVarResp.getData(); } /** * Execute updateUserNotificationPageSubscriptionStatus request with HTTP info returned - * @return ApiResponse<UpdateUserNotificationStatus200Response> + * @return ApiResponse<UpdateUserNotificationPageSubscriptionStatusResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return updateUserNotificationPageSubscriptionStatusWithHttpInfo(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso); } @@ -7204,9 +10822,10 @@ public ApiResponse executeWithHttpInfo( Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateUserNotificationPageSubscriptionStatusAsync(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso, _callback); } } @@ -7225,6 +10844,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIupdateUserNotificationPageSubscriptionStatusRequest updateUserNotificationPageSubscriptionStatus(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String url, @javax.annotation.Nonnull String pageTitle, @javax.annotation.Nonnull String subscribedOrUnsubscribed) { @@ -7306,16 +10926,16 @@ private okhttp3.Call updateUserNotificationStatusValidateBeforeCall(@javax.annot } - private ApiResponse updateUserNotificationStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String notificationId, @javax.annotation.Nonnull String newStatus, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse updateUserNotificationStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String notificationId, @javax.annotation.Nonnull String newStatus, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = updateUserNotificationStatusValidateBeforeCall(tenantId, notificationId, newStatus, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updateUserNotificationStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String notificationId, @javax.annotation.Nonnull String newStatus, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateUserNotificationStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String notificationId, @javax.annotation.Nonnull String newStatus, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateUserNotificationStatusValidateBeforeCall(tenantId, notificationId, newStatus, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7356,6 +10976,7 @@ public APIupdateUserNotificationStatusRequest sso(@javax.annotation.Nullable Str Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -7364,32 +10985,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateUserNotificationStatus request - * @return UpdateUserNotificationStatus200Response + * @return UpdateUserNotificationStatusResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public UpdateUserNotificationStatus200Response execute() throws ApiException { - ApiResponse localVarResp = updateUserNotificationStatusWithHttpInfo(tenantId, notificationId, newStatus, sso); + public UpdateUserNotificationStatusResponse execute() throws ApiException { + ApiResponse localVarResp = updateUserNotificationStatusWithHttpInfo(tenantId, notificationId, newStatus, sso); return localVarResp.getData(); } /** * Execute updateUserNotificationStatus request with HTTP info returned - * @return ApiResponse<UpdateUserNotificationStatus200Response> + * @return ApiResponse<UpdateUserNotificationStatusResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return updateUserNotificationStatusWithHttpInfo(tenantId, notificationId, newStatus, sso); } @@ -7403,9 +11026,10 @@ public ApiResponse executeWithHttpInfo( Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateUserNotificationStatusAsync(tenantId, notificationId, newStatus, sso, _callback); } } @@ -7422,6 +11046,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIupdateUserNotificationStatusRequest updateUserNotificationStatus(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String notificationId, @javax.annotation.Nonnull String newStatus) { @@ -7726,16 +11351,16 @@ private okhttp3.Call voteCommentValidateBeforeCall(@javax.annotation.Nonnull Str } - private ApiResponse voteCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nonnull VoteBodyParams voteBodyParams, @javax.annotation.Nullable String sessionId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse voteCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nonnull VoteBodyParams voteBodyParams, @javax.annotation.Nullable String sessionId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = voteCommentValidateBeforeCall(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call voteCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nonnull VoteBodyParams voteBodyParams, @javax.annotation.Nullable String sessionId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call voteCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nonnull VoteBodyParams voteBodyParams, @javax.annotation.Nullable String sessionId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = voteCommentValidateBeforeCall(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7794,6 +11419,7 @@ public APIvoteCommentRequest sso(@javax.annotation.Nullable String sso) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -7802,32 +11428,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute voteComment request - * @return VoteComment200Response + * @return VoteResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public VoteComment200Response execute() throws ApiException { - ApiResponse localVarResp = voteCommentWithHttpInfo(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso); + public VoteResponse execute() throws ApiException { + ApiResponse localVarResp = voteCommentWithHttpInfo(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso); return localVarResp.getData(); } /** * Execute voteComment request with HTTP info returned - * @return ApiResponse<VoteComment200Response> + * @return ApiResponse<VoteResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return voteCommentWithHttpInfo(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso); } @@ -7841,9 +11469,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return voteCommentAsync(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso, _callback); } } @@ -7862,6 +11491,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIvoteCommentRequest voteComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String broadcastId, @javax.annotation.Nonnull VoteBodyParams voteBodyParams) { diff --git a/client/src/main/java/com/fastcomments/invoker/ApiException.java b/client/src/main/java/com/fastcomments/invoker/ApiException.java index 8cb9e6ce..1fbf9078 100644 --- a/client/src/main/java/com/fastcomments/invoker/ApiException.java +++ b/client/src/main/java/com/fastcomments/invoker/ApiException.java @@ -21,7 +21,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/client/src/main/java/com/fastcomments/invoker/Configuration.java b/client/src/main/java/com/fastcomments/invoker/Configuration.java index 60bbc9a8..9299bdf0 100644 --- a/client/src/main/java/com/fastcomments/invoker/Configuration.java +++ b/client/src/main/java/com/fastcomments/invoker/Configuration.java @@ -17,7 +17,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class Configuration { public static final String VERSION = "1.3.5"; diff --git a/client/src/main/java/com/fastcomments/invoker/JSON.java b/client/src/main/java/com/fastcomments/invoker/JSON.java index 2d267752..efd3c5bf 100644 --- a/client/src/main/java/com/fastcomments/invoker/JSON.java +++ b/client/src/main/java/com/fastcomments/invoker/JSON.java @@ -97,9 +97,14 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter); gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APIAuditLog.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APIBanUserChangeLog.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APIBanUserChangedValues.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APIBannedUser.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APIBannedUserWithMultiMatchInfo.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APIComment.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APICommentBase.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APICommentBaseMeta.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APICommentCommonBannedUser.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APICreateUserBadgeResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APIDomainConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APIEmptyResponse.CustomTypeAdapterFactory()); @@ -111,23 +116,27 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APIGetUserBadgeProgressResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APIGetUserBadgeResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APIGetUserBadgesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APIModerateGetUserBanPreferencesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APIModerateUserBanPreferences.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APIPage.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APISSOUser.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APISaveCommentResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APITenant.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APITenantDailyUsage.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APITicket.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APITicketDetail.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APITicketFile.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.APIUserSubscription.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddDomainConfig200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddDomainConfig200ResponseAnyOf.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddDomainConfigParams.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddHashTag200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddHashTagsBulk200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddDomainConfigResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddDomainConfigResponseAnyOf.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddPageAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddSSOUserAPIResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AggregateQuestionResults200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AdjustCommentVotesParams.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AdjustVotesResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AggregateQuestionResultsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AggregateResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AggregationAPIError.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AggregationItem.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AggregationOperation.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AggregationRequest.CustomTypeAdapterFactory()); @@ -135,24 +144,29 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AggregationResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AggregationResponseStats.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AggregationValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AwardUserBadgeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BanUserFromCommentResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BanUserUndoParams.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BannedUserMatch.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BannedUserMatchMatchedOnValue.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BillingInfo.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BlockFromCommentParams.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BlockFromCommentPublic200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BlockSuccess.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BuildModerationFilterParams.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BuildModerationFilterResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BulkAggregateQuestionItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BulkAggregateQuestionResults200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BulkAggregateQuestionResultsRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BulkAggregateQuestionResultsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BulkCreateHashTagsBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BulkCreateHashTagsBodyTagsInner.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BulkCreateHashTagsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BulkCreateHashTagsResponseResultsInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BulkPreBanParams.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BulkPreBanSummary.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ChangeCommentPinStatusResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ChangeTicketState200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ChangeTicketStateBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ChangeTicketStateResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CheckBlockedCommentsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CheckedCommentsForBlocked200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CombineCommentsWithQuestionResults200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CombineQuestionResultsWithCommentsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CommentData.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CommentLogData.CustomTypeAdapterFactory()); @@ -161,55 +175,41 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CommentUserBadgeInfo.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CommentUserHashTagInfo.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CommentUserMentionInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CommentsByIdsParams.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateAPIPageData.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateAPISSOUserData.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateAPIUserSubscriptionData.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateCommentParams.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateCommentPublic200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateEmailTemplate200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateEmailTemplateBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateEmailTemplateResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateFeedPost200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateFeedPostParams.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateFeedPostPublic200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateFeedPostResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateFeedPostsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateHashTagBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateHashTagResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateModerator200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateModeratorBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateModeratorResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionConfig200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionConfigBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionConfigResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionResult200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionResultBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionResultResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateSubscriptionAPIResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenant200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantBody.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantPackage200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantPackageBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantPackageResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantUser200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantUserBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantUserResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTicket200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTicketBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTicketResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateUserBadge200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateUserBadgeParams.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateV1PageReact.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CustomConfigParameters.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CustomEmailTemplate.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteComment200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteCommentPublic200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteCommentResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteCommentVote200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteDomainConfig200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteFeedPostPublic200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteFeedPostPublic200ResponseAnyOf.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteHashTagRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteDomainConfigResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteFeedPostPublicResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteHashTagRequestBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeletePageAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteSSOUserAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteSubscriptionAPIResponse.CustomTypeAdapterFactory()); @@ -227,119 +227,115 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.FeedPostsStatsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.FindCommentsByRangeItem.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.FindCommentsByRangeResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.FlagComment200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.FlagCommentPublic200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.FlagCommentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetAuditLogs200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetAuditLogsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCachedNotificationCount200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetBannedUsersCountResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetBannedUsersFromCommentResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCachedNotificationCountResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetComment200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentText200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentVoteUserNames200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentBanStatusResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentTextResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentVoteUserNamesSuccessResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetComments200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsPublic200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsForUserResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsResponsePublicComment.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsResponseWithPresencePublicComment.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetDomainConfig200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetDomainConfigs200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetDomainConfigs200ResponseAnyOf.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetDomainConfigs200ResponseAnyOf1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplate200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplateDefinitions200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetDomainConfigResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetDomainConfigsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetDomainConfigsResponseAnyOf.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetDomainConfigsResponseAnyOf1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplateDefinitionsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplateRenderErrors200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplateRenderErrorsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplateResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplates200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplatesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEventLog200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEventLogResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetFeedPosts200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetFeedPostsPublic200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetFeedPostsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetFeedPostsStats200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetHashTags200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetGifsSearchResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetGifsTrendingResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetHashTagsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModerator200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModeratorResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModerators200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModeratorsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetMyNotificationsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetNotificationCount200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetNotificationCountResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetNotifications200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetNotificationsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPageByURLIdAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPagesAPIResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPendingWebhookEventCount200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPendingWebhookEventCountResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPendingWebhookEvents200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPendingWebhookEventsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPublicFeedPostsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionConfig200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPublicPagesResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionConfigResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionConfigs200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionConfigsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionResult200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionResultResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionResults200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionResultsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSSOUserByEmailAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSSOUserByIdAPIResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSSOUsers200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSSOUsersResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSubscriptionsAPIResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenant200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantDailyUsages200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantDailyUsagesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantPackage200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantManualBadgesResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantPackageResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantPackages200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantPackagesResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantUser200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantUserResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantUsers200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantUsersResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenants200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTicket200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTicketResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTickets200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTicketsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUser200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBadge200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBadgeProgressById200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBadgeProgressList200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBadges200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserNotificationCount200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTranslationsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserInternalProfileResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserInternalProfileResponseProfile.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserManualBadgesResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserNotificationCountResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserNotifications200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserPresenceStatuses200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserPresenceStatusesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserReactsPublic200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetVotes200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetVotesForUser200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserTrustFactorResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetV1PageLikes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetV2PageReactUsersResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetV2PageReacts.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetVotesForUserResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetVotesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GifGetLargeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GifSearchInternalError.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GifSearchResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GifSearchResponseImagesInnerInner.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.HeaderAccountNotification.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.HeaderState.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.IgnoredResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.LiveEvent.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.LiveEventExtraInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.LockComment200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.MediaAsset.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.MetaItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationAPIChildCommentsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationAPIComment.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationAPICommentLog.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationAPICommentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationAPICountCommentsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationAPIGetCommentIdsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationAPIGetCommentsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationAPIGetLogsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationCommentSearchResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationExportResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationExportStatusResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationFilter.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationPageSearchProjected.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationPageSearchResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationSiteSearchProjected.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationSiteSearchResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationSuggestResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationUserSearchProjected.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ModerationUserSearchResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.Moderator.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.NotificationAndCount.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PageUserEntry.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PageUsersInfoResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PageUsersOfflineResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PageUsersOnlineResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PatchDomainConfigParams.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PatchHashTag200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PatchDomainConfigResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PatchPageAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PatchSSOUserAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PendingCommentToSyncOutbound.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PinComment200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostRemoveCommentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PreBanSummary.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PubSubComment.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PubSubCommentBase.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PubSubVote.CustomTypeAdapterFactory()); @@ -350,7 +346,9 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PublicComment.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PublicCommentBase.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PublicFeedPostsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PublicPage.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PublicVote.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PutDomainConfigResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PutSSOUserAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.QueryPredicate.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.QueryPredicateValue.CustomTypeAdapterFactory()); @@ -360,32 +358,32 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.QuestionResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.QuestionResultAggregationOverall.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ReactBodyParams.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ReactFeedPostPublic200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ReactFeedPostResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.RecordStringBeforeStringOrNullAfterStringOrNullValue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.RecordStringStringOrNumberValue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.RenderEmailTemplate200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.RemoveCommentActionResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.RemoveUserBadgeResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.RenderEmailTemplateBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.RenderEmailTemplateResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.RenderableUserNotification.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ReplaceTenantPackageBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ReplaceTenantUserBody.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ResetUserNotifications200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ResetUserNotificationsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SaveComment200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SaveCommentResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SaveCommentResponseOptimized.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SaveCommentsBulkResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SaveCommentsResponseWithPresence.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SearchUsers200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SearchUsersResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SearchUsersResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SearchUsersSectionedResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SetCommentText200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SetCommentApprovedResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SetCommentTextParams.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SetCommentTextResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SetCommentTextResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SetUserTrustFactorResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SpamRule.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.TOSConfig.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.TenantBadge.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.TenantHashTag.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.TenantPackage.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UnBlockCommentPublic200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UnBlockFromCommentParams.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UnblockSuccess.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdatableCommentParams.CustomTypeAdapterFactory()); @@ -405,9 +403,10 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateTenantBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateTenantPackageBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateTenantUserBody.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateUserBadge200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateUserBadgeParams.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateUserNotificationStatus200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateUserNotificationCommentSubscriptionStatusResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateUserNotificationPageSubscriptionStatusResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateUserNotificationStatusResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UploadImageResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.User.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UserBadge.CustomTypeAdapterFactory()); @@ -421,7 +420,6 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UserSearchSectionResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UserSessionInfo.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.VoteBodyParams.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.VoteComment200Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.VoteDeleteResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.VoteResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.VoteResponseUser.CustomTypeAdapterFactory()); diff --git a/client/src/main/java/com/fastcomments/invoker/Pair.java b/client/src/main/java/com/fastcomments/invoker/Pair.java index f9972fa3..7e33c428 100644 --- a/client/src/main/java/com/fastcomments/invoker/Pair.java +++ b/client/src/main/java/com/fastcomments/invoker/Pair.java @@ -13,7 +13,7 @@ package com.fastcomments.invoker; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class Pair { private final String name; private final String value; diff --git a/client/src/main/java/com/fastcomments/invoker/ServerConfiguration.java b/client/src/main/java/com/fastcomments/invoker/ServerConfiguration.java index b12cad65..08bad80d 100644 --- a/client/src/main/java/com/fastcomments/invoker/ServerConfiguration.java +++ b/client/src/main/java/com/fastcomments/invoker/ServerConfiguration.java @@ -18,7 +18,7 @@ /** * Representing a Server configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class ServerConfiguration { public String URL; public String description; diff --git a/client/src/main/java/com/fastcomments/invoker/ServerVariable.java b/client/src/main/java/com/fastcomments/invoker/ServerVariable.java index 49ae9fd1..023ba08e 100644 --- a/client/src/main/java/com/fastcomments/invoker/ServerVariable.java +++ b/client/src/main/java/com/fastcomments/invoker/ServerVariable.java @@ -18,7 +18,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class ServerVariable { public String description; public String defaultValue; diff --git a/client/src/main/java/com/fastcomments/invoker/StringUtil.java b/client/src/main/java/com/fastcomments/invoker/StringUtil.java index b2517aff..df2c5629 100644 --- a/client/src/main/java/com/fastcomments/invoker/StringUtil.java +++ b/client/src/main/java/com/fastcomments/invoker/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/client/src/main/java/com/fastcomments/invoker/auth/ApiKeyAuth.java b/client/src/main/java/com/fastcomments/invoker/auth/ApiKeyAuth.java index c41b6c7b..d079b059 100644 --- a/client/src/main/java/com/fastcomments/invoker/auth/ApiKeyAuth.java +++ b/client/src/main/java/com/fastcomments/invoker/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/client/src/main/java/com/fastcomments/invoker/auth/Authentication.java b/client/src/main/java/com/fastcomments/invoker/auth/Authentication.java index c471d359..e5b41545 100644 --- a/client/src/main/java/com/fastcomments/invoker/auth/Authentication.java +++ b/client/src/main/java/com/fastcomments/invoker/auth/Authentication.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public interface Authentication { /** * Apply authentication settings to header and query params. diff --git a/client/src/main/java/com/fastcomments/invoker/auth/HttpBearerAuth.java b/client/src/main/java/com/fastcomments/invoker/auth/HttpBearerAuth.java index e0756bfe..fb809fd8 100644 --- a/client/src/main/java/com/fastcomments/invoker/auth/HttpBearerAuth.java +++ b/client/src/main/java/com/fastcomments/invoker/auth/HttpBearerAuth.java @@ -22,7 +22,7 @@ import java.util.Optional; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; diff --git a/client/src/main/java/com/fastcomments/model/APIAuditLog.java b/client/src/main/java/com/fastcomments/model/APIAuditLog.java index 2b743601..f40c2fd9 100644 --- a/client/src/main/java/com/fastcomments/model/APIAuditLog.java +++ b/client/src/main/java/com/fastcomments/model/APIAuditLog.java @@ -51,7 +51,7 @@ /** * APIAuditLog */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APIAuditLog { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -518,10 +518,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/APIBanUserChangeLog.java b/client/src/main/java/com/fastcomments/model/APIBanUserChangeLog.java new file mode 100644 index 00000000..3685225f --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/APIBanUserChangeLog.java @@ -0,0 +1,313 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIBanUserChangedValues; +import com.fastcomments.model.APIBannedUser; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * APIBanUserChangeLog + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class APIBanUserChangeLog { + public static final String SERIALIZED_NAME_CREATED_BANNED_USER_ID = "createdBannedUserId"; + @SerializedName(SERIALIZED_NAME_CREATED_BANNED_USER_ID) + @javax.annotation.Nullable + private String createdBannedUserId; + + public static final String SERIALIZED_NAME_UPDATED_BANNED_USER_ID = "updatedBannedUserId"; + @SerializedName(SERIALIZED_NAME_UPDATED_BANNED_USER_ID) + @javax.annotation.Nullable + private String updatedBannedUserId; + + public static final String SERIALIZED_NAME_DELETED_BANNED_USERS = "deletedBannedUsers"; + @SerializedName(SERIALIZED_NAME_DELETED_BANNED_USERS) + @javax.annotation.Nullable + private List deletedBannedUsers = new ArrayList<>(); + + public static final String SERIALIZED_NAME_CHANGED_VALUES_BEFORE = "changedValuesBefore"; + @SerializedName(SERIALIZED_NAME_CHANGED_VALUES_BEFORE) + @javax.annotation.Nullable + private APIBanUserChangedValues changedValuesBefore; + + public APIBanUserChangeLog() { + } + + public APIBanUserChangeLog createdBannedUserId(@javax.annotation.Nullable String createdBannedUserId) { + this.createdBannedUserId = createdBannedUserId; + return this; + } + + /** + * Get createdBannedUserId + * @return createdBannedUserId + */ + @javax.annotation.Nullable + public String getCreatedBannedUserId() { + return createdBannedUserId; + } + + public void setCreatedBannedUserId(@javax.annotation.Nullable String createdBannedUserId) { + this.createdBannedUserId = createdBannedUserId; + } + + + public APIBanUserChangeLog updatedBannedUserId(@javax.annotation.Nullable String updatedBannedUserId) { + this.updatedBannedUserId = updatedBannedUserId; + return this; + } + + /** + * Get updatedBannedUserId + * @return updatedBannedUserId + */ + @javax.annotation.Nullable + public String getUpdatedBannedUserId() { + return updatedBannedUserId; + } + + public void setUpdatedBannedUserId(@javax.annotation.Nullable String updatedBannedUserId) { + this.updatedBannedUserId = updatedBannedUserId; + } + + + public APIBanUserChangeLog deletedBannedUsers(@javax.annotation.Nullable List deletedBannedUsers) { + this.deletedBannedUsers = deletedBannedUsers; + return this; + } + + public APIBanUserChangeLog addDeletedBannedUsersItem(APIBannedUser deletedBannedUsersItem) { + if (this.deletedBannedUsers == null) { + this.deletedBannedUsers = new ArrayList<>(); + } + this.deletedBannedUsers.add(deletedBannedUsersItem); + return this; + } + + /** + * Get deletedBannedUsers + * @return deletedBannedUsers + */ + @javax.annotation.Nullable + public List getDeletedBannedUsers() { + return deletedBannedUsers; + } + + public void setDeletedBannedUsers(@javax.annotation.Nullable List deletedBannedUsers) { + this.deletedBannedUsers = deletedBannedUsers; + } + + + public APIBanUserChangeLog changedValuesBefore(@javax.annotation.Nullable APIBanUserChangedValues changedValuesBefore) { + this.changedValuesBefore = changedValuesBefore; + return this; + } + + /** + * Get changedValuesBefore + * @return changedValuesBefore + */ + @javax.annotation.Nullable + public APIBanUserChangedValues getChangedValuesBefore() { + return changedValuesBefore; + } + + public void setChangedValuesBefore(@javax.annotation.Nullable APIBanUserChangedValues changedValuesBefore) { + this.changedValuesBefore = changedValuesBefore; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + APIBanUserChangeLog apIBanUserChangeLog = (APIBanUserChangeLog) o; + return Objects.equals(this.createdBannedUserId, apIBanUserChangeLog.createdBannedUserId) && + Objects.equals(this.updatedBannedUserId, apIBanUserChangeLog.updatedBannedUserId) && + Objects.equals(this.deletedBannedUsers, apIBanUserChangeLog.deletedBannedUsers) && + Objects.equals(this.changedValuesBefore, apIBanUserChangeLog.changedValuesBefore); + } + + @Override + public int hashCode() { + return Objects.hash(createdBannedUserId, updatedBannedUserId, deletedBannedUsers, changedValuesBefore); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class APIBanUserChangeLog {\n"); + sb.append(" createdBannedUserId: ").append(toIndentedString(createdBannedUserId)).append("\n"); + sb.append(" updatedBannedUserId: ").append(toIndentedString(updatedBannedUserId)).append("\n"); + sb.append(" deletedBannedUsers: ").append(toIndentedString(deletedBannedUsers)).append("\n"); + sb.append(" changedValuesBefore: ").append(toIndentedString(changedValuesBefore)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("createdBannedUserId", "updatedBannedUserId", "deletedBannedUsers", "changedValuesBefore")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to APIBanUserChangeLog + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!APIBanUserChangeLog.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in APIBanUserChangeLog is not found in the empty JSON string", APIBanUserChangeLog.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!APIBanUserChangeLog.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `APIBanUserChangeLog` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("createdBannedUserId") != null && !jsonObj.get("createdBannedUserId").isJsonNull()) && !jsonObj.get("createdBannedUserId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `createdBannedUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBannedUserId").toString())); + } + if ((jsonObj.get("updatedBannedUserId") != null && !jsonObj.get("updatedBannedUserId").isJsonNull()) && !jsonObj.get("updatedBannedUserId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `updatedBannedUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedBannedUserId").toString())); + } + if (jsonObj.get("deletedBannedUsers") != null && !jsonObj.get("deletedBannedUsers").isJsonNull()) { + JsonArray jsonArraydeletedBannedUsers = jsonObj.getAsJsonArray("deletedBannedUsers"); + if (jsonArraydeletedBannedUsers != null) { + // ensure the json data is an array + if (!jsonObj.get("deletedBannedUsers").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `deletedBannedUsers` to be an array in the JSON string but got `%s`", jsonObj.get("deletedBannedUsers").toString())); + } + + // validate the optional field `deletedBannedUsers` (array) + for (int i = 0; i < jsonArraydeletedBannedUsers.size(); i++) { + APIBannedUser.validateJsonElement(jsonArraydeletedBannedUsers.get(i)); + }; + } + } + // validate the optional field `changedValuesBefore` + if (jsonObj.get("changedValuesBefore") != null && !jsonObj.get("changedValuesBefore").isJsonNull()) { + APIBanUserChangedValues.validateJsonElement(jsonObj.get("changedValuesBefore")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!APIBanUserChangeLog.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'APIBanUserChangeLog' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(APIBanUserChangeLog.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, APIBanUserChangeLog value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public APIBanUserChangeLog read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of APIBanUserChangeLog given an JSON string + * + * @param jsonString JSON string + * @return An instance of APIBanUserChangeLog + * @throws IOException if the JSON string is invalid with respect to APIBanUserChangeLog + */ + public static APIBanUserChangeLog fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, APIBanUserChangeLog.class); + } + + /** + * Convert an instance of APIBanUserChangeLog to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/APIBanUserChangedValues.java b/client/src/main/java/com/fastcomments/model/APIBanUserChangedValues.java new file mode 100644 index 00000000..aee9500e --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/APIBanUserChangedValues.java @@ -0,0 +1,542 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * APIBanUserChangedValues + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class APIBanUserChangedValues { + public static final String SERIALIZED_NAME_ID = "_id"; + @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable + private String id; + + public static final String SERIALIZED_NAME_TENANT_ID = "tenantId"; + @SerializedName(SERIALIZED_NAME_TENANT_ID) + @javax.annotation.Nullable + private String tenantId; + + public static final String SERIALIZED_NAME_USER_ID = "userId"; + @SerializedName(SERIALIZED_NAME_USER_ID) + @javax.annotation.Nullable + private String userId; + + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable + private String email; + + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable + private String username; + + public static final String SERIALIZED_NAME_IP_HASH = "ipHash"; + @SerializedName(SERIALIZED_NAME_IP_HASH) + @javax.annotation.Nullable + private String ipHash; + + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + @javax.annotation.Nullable + private OffsetDateTime createdAt; + + public static final String SERIALIZED_NAME_BANNED_BY_USER_ID = "bannedByUserId"; + @SerializedName(SERIALIZED_NAME_BANNED_BY_USER_ID) + @javax.annotation.Nullable + private String bannedByUserId; + + public static final String SERIALIZED_NAME_BANNED_COMMENT_TEXT = "bannedCommentText"; + @SerializedName(SERIALIZED_NAME_BANNED_COMMENT_TEXT) + @javax.annotation.Nullable + private String bannedCommentText; + + public static final String SERIALIZED_NAME_BAN_TYPE = "banType"; + @SerializedName(SERIALIZED_NAME_BAN_TYPE) + @javax.annotation.Nullable + private String banType; + + public static final String SERIALIZED_NAME_BANNED_UNTIL = "bannedUntil"; + @SerializedName(SERIALIZED_NAME_BANNED_UNTIL) + @javax.annotation.Nullable + private OffsetDateTime bannedUntil; + + public static final String SERIALIZED_NAME_HAS_EMAIL_WILDCARD = "hasEmailWildcard"; + @SerializedName(SERIALIZED_NAME_HAS_EMAIL_WILDCARD) + @javax.annotation.Nullable + private Boolean hasEmailWildcard; + + public static final String SERIALIZED_NAME_BAN_REASON = "banReason"; + @SerializedName(SERIALIZED_NAME_BAN_REASON) + @javax.annotation.Nullable + private String banReason; + + public APIBanUserChangedValues() { + } + + public APIBanUserChangedValues id(@javax.annotation.Nullable String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @javax.annotation.Nullable + public String getId() { + return id; + } + + public void setId(@javax.annotation.Nullable String id) { + this.id = id; + } + + + public APIBanUserChangedValues tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + + /** + * Get tenantId + * @return tenantId + */ + @javax.annotation.Nullable + public String getTenantId() { + return tenantId; + } + + public void setTenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + } + + + public APIBanUserChangedValues userId(@javax.annotation.Nullable String userId) { + this.userId = userId; + return this; + } + + /** + * Get userId + * @return userId + */ + @javax.annotation.Nullable + public String getUserId() { + return userId; + } + + public void setUserId(@javax.annotation.Nullable String userId) { + this.userId = userId; + } + + + public APIBanUserChangedValues email(@javax.annotation.Nullable String email) { + this.email = email; + return this; + } + + /** + * Get email + * @return email + */ + @javax.annotation.Nullable + public String getEmail() { + return email; + } + + public void setEmail(@javax.annotation.Nullable String email) { + this.email = email; + } + + + public APIBanUserChangedValues username(@javax.annotation.Nullable String username) { + this.username = username; + return this; + } + + /** + * Get username + * @return username + */ + @javax.annotation.Nullable + public String getUsername() { + return username; + } + + public void setUsername(@javax.annotation.Nullable String username) { + this.username = username; + } + + + public APIBanUserChangedValues ipHash(@javax.annotation.Nullable String ipHash) { + this.ipHash = ipHash; + return this; + } + + /** + * Get ipHash + * @return ipHash + */ + @javax.annotation.Nullable + public String getIpHash() { + return ipHash; + } + + public void setIpHash(@javax.annotation.Nullable String ipHash) { + this.ipHash = ipHash; + } + + + public APIBanUserChangedValues createdAt(@javax.annotation.Nullable OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + */ + @javax.annotation.Nullable + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(@javax.annotation.Nullable OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public APIBanUserChangedValues bannedByUserId(@javax.annotation.Nullable String bannedByUserId) { + this.bannedByUserId = bannedByUserId; + return this; + } + + /** + * Get bannedByUserId + * @return bannedByUserId + */ + @javax.annotation.Nullable + public String getBannedByUserId() { + return bannedByUserId; + } + + public void setBannedByUserId(@javax.annotation.Nullable String bannedByUserId) { + this.bannedByUserId = bannedByUserId; + } + + + public APIBanUserChangedValues bannedCommentText(@javax.annotation.Nullable String bannedCommentText) { + this.bannedCommentText = bannedCommentText; + return this; + } + + /** + * Get bannedCommentText + * @return bannedCommentText + */ + @javax.annotation.Nullable + public String getBannedCommentText() { + return bannedCommentText; + } + + public void setBannedCommentText(@javax.annotation.Nullable String bannedCommentText) { + this.bannedCommentText = bannedCommentText; + } + + + public APIBanUserChangedValues banType(@javax.annotation.Nullable String banType) { + this.banType = banType; + return this; + } + + /** + * Get banType + * @return banType + */ + @javax.annotation.Nullable + public String getBanType() { + return banType; + } + + public void setBanType(@javax.annotation.Nullable String banType) { + this.banType = banType; + } + + + public APIBanUserChangedValues bannedUntil(@javax.annotation.Nullable OffsetDateTime bannedUntil) { + this.bannedUntil = bannedUntil; + return this; + } + + /** + * Get bannedUntil + * @return bannedUntil + */ + @javax.annotation.Nullable + public OffsetDateTime getBannedUntil() { + return bannedUntil; + } + + public void setBannedUntil(@javax.annotation.Nullable OffsetDateTime bannedUntil) { + this.bannedUntil = bannedUntil; + } + + + public APIBanUserChangedValues hasEmailWildcard(@javax.annotation.Nullable Boolean hasEmailWildcard) { + this.hasEmailWildcard = hasEmailWildcard; + return this; + } + + /** + * Get hasEmailWildcard + * @return hasEmailWildcard + */ + @javax.annotation.Nullable + public Boolean getHasEmailWildcard() { + return hasEmailWildcard; + } + + public void setHasEmailWildcard(@javax.annotation.Nullable Boolean hasEmailWildcard) { + this.hasEmailWildcard = hasEmailWildcard; + } + + + public APIBanUserChangedValues banReason(@javax.annotation.Nullable String banReason) { + this.banReason = banReason; + return this; + } + + /** + * Get banReason + * @return banReason + */ + @javax.annotation.Nullable + public String getBanReason() { + return banReason; + } + + public void setBanReason(@javax.annotation.Nullable String banReason) { + this.banReason = banReason; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + APIBanUserChangedValues apIBanUserChangedValues = (APIBanUserChangedValues) o; + return Objects.equals(this.id, apIBanUserChangedValues.id) && + Objects.equals(this.tenantId, apIBanUserChangedValues.tenantId) && + Objects.equals(this.userId, apIBanUserChangedValues.userId) && + Objects.equals(this.email, apIBanUserChangedValues.email) && + Objects.equals(this.username, apIBanUserChangedValues.username) && + Objects.equals(this.ipHash, apIBanUserChangedValues.ipHash) && + Objects.equals(this.createdAt, apIBanUserChangedValues.createdAt) && + Objects.equals(this.bannedByUserId, apIBanUserChangedValues.bannedByUserId) && + Objects.equals(this.bannedCommentText, apIBanUserChangedValues.bannedCommentText) && + Objects.equals(this.banType, apIBanUserChangedValues.banType) && + Objects.equals(this.bannedUntil, apIBanUserChangedValues.bannedUntil) && + Objects.equals(this.hasEmailWildcard, apIBanUserChangedValues.hasEmailWildcard) && + Objects.equals(this.banReason, apIBanUserChangedValues.banReason); + } + + @Override + public int hashCode() { + return Objects.hash(id, tenantId, userId, email, username, ipHash, createdAt, bannedByUserId, bannedCommentText, banType, bannedUntil, hasEmailWildcard, banReason); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class APIBanUserChangedValues {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" ipHash: ").append(toIndentedString(ipHash)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" bannedByUserId: ").append(toIndentedString(bannedByUserId)).append("\n"); + sb.append(" bannedCommentText: ").append(toIndentedString(bannedCommentText)).append("\n"); + sb.append(" banType: ").append(toIndentedString(banType)).append("\n"); + sb.append(" bannedUntil: ").append(toIndentedString(bannedUntil)).append("\n"); + sb.append(" hasEmailWildcard: ").append(toIndentedString(hasEmailWildcard)).append("\n"); + sb.append(" banReason: ").append(toIndentedString(banReason)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("_id", "tenantId", "userId", "email", "username", "ipHash", "createdAt", "bannedByUserId", "bannedCommentText", "banType", "bannedUntil", "hasEmailWildcard", "banReason")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to APIBanUserChangedValues + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!APIBanUserChangedValues.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in APIBanUserChangedValues is not found in the empty JSON string", APIBanUserChangedValues.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!APIBanUserChangedValues.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `APIBanUserChangedValues` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("_id") != null && !jsonObj.get("_id").isJsonNull()) && !jsonObj.get("_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("_id").toString())); + } + if ((jsonObj.get("tenantId") != null && !jsonObj.get("tenantId").isJsonNull()) && !jsonObj.get("tenantId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tenantId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tenantId").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); + } + if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + } + if ((jsonObj.get("ipHash") != null && !jsonObj.get("ipHash").isJsonNull()) && !jsonObj.get("ipHash").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `ipHash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ipHash").toString())); + } + if ((jsonObj.get("bannedByUserId") != null && !jsonObj.get("bannedByUserId").isJsonNull()) && !jsonObj.get("bannedByUserId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `bannedByUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bannedByUserId").toString())); + } + if ((jsonObj.get("bannedCommentText") != null && !jsonObj.get("bannedCommentText").isJsonNull()) && !jsonObj.get("bannedCommentText").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `bannedCommentText` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bannedCommentText").toString())); + } + if ((jsonObj.get("banType") != null && !jsonObj.get("banType").isJsonNull()) && !jsonObj.get("banType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `banType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("banType").toString())); + } + if ((jsonObj.get("banReason") != null && !jsonObj.get("banReason").isJsonNull()) && !jsonObj.get("banReason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `banReason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("banReason").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!APIBanUserChangedValues.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'APIBanUserChangedValues' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(APIBanUserChangedValues.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, APIBanUserChangedValues value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public APIBanUserChangedValues read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of APIBanUserChangedValues given an JSON string + * + * @param jsonString JSON string + * @return An instance of APIBanUserChangedValues + * @throws IOException if the JSON string is invalid with respect to APIBanUserChangedValues + */ + public static APIBanUserChangedValues fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, APIBanUserChangedValues.class); + } + + /** + * Convert an instance of APIBanUserChangedValues to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/APIBannedUser.java b/client/src/main/java/com/fastcomments/model/APIBannedUser.java new file mode 100644 index 00000000..faad2cd6 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/APIBannedUser.java @@ -0,0 +1,549 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * APIBannedUser + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class APIBannedUser { + public static final String SERIALIZED_NAME_ID = "_id"; + @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nonnull + private String id; + + public static final String SERIALIZED_NAME_TENANT_ID = "tenantId"; + @SerializedName(SERIALIZED_NAME_TENANT_ID) + @javax.annotation.Nonnull + private String tenantId; + + public static final String SERIALIZED_NAME_USER_ID = "userId"; + @SerializedName(SERIALIZED_NAME_USER_ID) + @javax.annotation.Nullable + private String userId; + + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable + private String email; + + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable + private String username; + + public static final String SERIALIZED_NAME_IP_HASH = "ipHash"; + @SerializedName(SERIALIZED_NAME_IP_HASH) + @javax.annotation.Nullable + private String ipHash; + + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + @javax.annotation.Nonnull + private OffsetDateTime createdAt; + + public static final String SERIALIZED_NAME_BANNED_BY_USER_ID = "bannedByUserId"; + @SerializedName(SERIALIZED_NAME_BANNED_BY_USER_ID) + @javax.annotation.Nonnull + private String bannedByUserId; + + public static final String SERIALIZED_NAME_BANNED_COMMENT_TEXT = "bannedCommentText"; + @SerializedName(SERIALIZED_NAME_BANNED_COMMENT_TEXT) + @javax.annotation.Nonnull + private String bannedCommentText; + + public static final String SERIALIZED_NAME_BAN_TYPE = "banType"; + @SerializedName(SERIALIZED_NAME_BAN_TYPE) + @javax.annotation.Nonnull + private String banType; + + public static final String SERIALIZED_NAME_BANNED_UNTIL = "bannedUntil"; + @SerializedName(SERIALIZED_NAME_BANNED_UNTIL) + @javax.annotation.Nullable + private OffsetDateTime bannedUntil; + + public static final String SERIALIZED_NAME_HAS_EMAIL_WILDCARD = "hasEmailWildcard"; + @SerializedName(SERIALIZED_NAME_HAS_EMAIL_WILDCARD) + @javax.annotation.Nonnull + private Boolean hasEmailWildcard; + + public static final String SERIALIZED_NAME_BAN_REASON = "banReason"; + @SerializedName(SERIALIZED_NAME_BAN_REASON) + @javax.annotation.Nullable + private String banReason; + + public APIBannedUser() { + } + + public APIBannedUser id(@javax.annotation.Nonnull String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @javax.annotation.Nonnull + public String getId() { + return id; + } + + public void setId(@javax.annotation.Nonnull String id) { + this.id = id; + } + + + public APIBannedUser tenantId(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; + return this; + } + + /** + * Get tenantId + * @return tenantId + */ + @javax.annotation.Nonnull + public String getTenantId() { + return tenantId; + } + + public void setTenantId(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; + } + + + public APIBannedUser userId(@javax.annotation.Nullable String userId) { + this.userId = userId; + return this; + } + + /** + * Get userId + * @return userId + */ + @javax.annotation.Nullable + public String getUserId() { + return userId; + } + + public void setUserId(@javax.annotation.Nullable String userId) { + this.userId = userId; + } + + + public APIBannedUser email(@javax.annotation.Nullable String email) { + this.email = email; + return this; + } + + /** + * Get email + * @return email + */ + @javax.annotation.Nullable + public String getEmail() { + return email; + } + + public void setEmail(@javax.annotation.Nullable String email) { + this.email = email; + } + + + public APIBannedUser username(@javax.annotation.Nullable String username) { + this.username = username; + return this; + } + + /** + * Get username + * @return username + */ + @javax.annotation.Nullable + public String getUsername() { + return username; + } + + public void setUsername(@javax.annotation.Nullable String username) { + this.username = username; + } + + + public APIBannedUser ipHash(@javax.annotation.Nullable String ipHash) { + this.ipHash = ipHash; + return this; + } + + /** + * Get ipHash + * @return ipHash + */ + @javax.annotation.Nullable + public String getIpHash() { + return ipHash; + } + + public void setIpHash(@javax.annotation.Nullable String ipHash) { + this.ipHash = ipHash; + } + + + public APIBannedUser createdAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + */ + @javax.annotation.Nonnull + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public APIBannedUser bannedByUserId(@javax.annotation.Nonnull String bannedByUserId) { + this.bannedByUserId = bannedByUserId; + return this; + } + + /** + * Get bannedByUserId + * @return bannedByUserId + */ + @javax.annotation.Nonnull + public String getBannedByUserId() { + return bannedByUserId; + } + + public void setBannedByUserId(@javax.annotation.Nonnull String bannedByUserId) { + this.bannedByUserId = bannedByUserId; + } + + + public APIBannedUser bannedCommentText(@javax.annotation.Nonnull String bannedCommentText) { + this.bannedCommentText = bannedCommentText; + return this; + } + + /** + * Get bannedCommentText + * @return bannedCommentText + */ + @javax.annotation.Nonnull + public String getBannedCommentText() { + return bannedCommentText; + } + + public void setBannedCommentText(@javax.annotation.Nonnull String bannedCommentText) { + this.bannedCommentText = bannedCommentText; + } + + + public APIBannedUser banType(@javax.annotation.Nonnull String banType) { + this.banType = banType; + return this; + } + + /** + * Get banType + * @return banType + */ + @javax.annotation.Nonnull + public String getBanType() { + return banType; + } + + public void setBanType(@javax.annotation.Nonnull String banType) { + this.banType = banType; + } + + + public APIBannedUser bannedUntil(@javax.annotation.Nullable OffsetDateTime bannedUntil) { + this.bannedUntil = bannedUntil; + return this; + } + + /** + * Get bannedUntil + * @return bannedUntil + */ + @javax.annotation.Nullable + public OffsetDateTime getBannedUntil() { + return bannedUntil; + } + + public void setBannedUntil(@javax.annotation.Nullable OffsetDateTime bannedUntil) { + this.bannedUntil = bannedUntil; + } + + + public APIBannedUser hasEmailWildcard(@javax.annotation.Nonnull Boolean hasEmailWildcard) { + this.hasEmailWildcard = hasEmailWildcard; + return this; + } + + /** + * Get hasEmailWildcard + * @return hasEmailWildcard + */ + @javax.annotation.Nonnull + public Boolean getHasEmailWildcard() { + return hasEmailWildcard; + } + + public void setHasEmailWildcard(@javax.annotation.Nonnull Boolean hasEmailWildcard) { + this.hasEmailWildcard = hasEmailWildcard; + } + + + public APIBannedUser banReason(@javax.annotation.Nullable String banReason) { + this.banReason = banReason; + return this; + } + + /** + * Get banReason + * @return banReason + */ + @javax.annotation.Nullable + public String getBanReason() { + return banReason; + } + + public void setBanReason(@javax.annotation.Nullable String banReason) { + this.banReason = banReason; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + APIBannedUser apIBannedUser = (APIBannedUser) o; + return Objects.equals(this.id, apIBannedUser.id) && + Objects.equals(this.tenantId, apIBannedUser.tenantId) && + Objects.equals(this.userId, apIBannedUser.userId) && + Objects.equals(this.email, apIBannedUser.email) && + Objects.equals(this.username, apIBannedUser.username) && + Objects.equals(this.ipHash, apIBannedUser.ipHash) && + Objects.equals(this.createdAt, apIBannedUser.createdAt) && + Objects.equals(this.bannedByUserId, apIBannedUser.bannedByUserId) && + Objects.equals(this.bannedCommentText, apIBannedUser.bannedCommentText) && + Objects.equals(this.banType, apIBannedUser.banType) && + Objects.equals(this.bannedUntil, apIBannedUser.bannedUntil) && + Objects.equals(this.hasEmailWildcard, apIBannedUser.hasEmailWildcard) && + Objects.equals(this.banReason, apIBannedUser.banReason); + } + + @Override + public int hashCode() { + return Objects.hash(id, tenantId, userId, email, username, ipHash, createdAt, bannedByUserId, bannedCommentText, banType, bannedUntil, hasEmailWildcard, banReason); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class APIBannedUser {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" ipHash: ").append(toIndentedString(ipHash)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" bannedByUserId: ").append(toIndentedString(bannedByUserId)).append("\n"); + sb.append(" bannedCommentText: ").append(toIndentedString(bannedCommentText)).append("\n"); + sb.append(" banType: ").append(toIndentedString(banType)).append("\n"); + sb.append(" bannedUntil: ").append(toIndentedString(bannedUntil)).append("\n"); + sb.append(" hasEmailWildcard: ").append(toIndentedString(hasEmailWildcard)).append("\n"); + sb.append(" banReason: ").append(toIndentedString(banReason)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("_id", "tenantId", "userId", "email", "username", "ipHash", "createdAt", "bannedByUserId", "bannedCommentText", "banType", "bannedUntil", "hasEmailWildcard", "banReason")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("_id", "tenantId", "createdAt", "bannedByUserId", "bannedCommentText", "banType", "bannedUntil", "hasEmailWildcard")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to APIBannedUser + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!APIBannedUser.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in APIBannedUser is not found in the empty JSON string", APIBannedUser.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!APIBannedUser.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `APIBannedUser` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : APIBannedUser.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("_id").toString())); + } + if (!jsonObj.get("tenantId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tenantId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tenantId").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); + } + if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + } + if ((jsonObj.get("ipHash") != null && !jsonObj.get("ipHash").isJsonNull()) && !jsonObj.get("ipHash").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `ipHash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ipHash").toString())); + } + if (!jsonObj.get("bannedByUserId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `bannedByUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bannedByUserId").toString())); + } + if (!jsonObj.get("bannedCommentText").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `bannedCommentText` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bannedCommentText").toString())); + } + if (!jsonObj.get("banType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `banType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("banType").toString())); + } + if ((jsonObj.get("banReason") != null && !jsonObj.get("banReason").isJsonNull()) && !jsonObj.get("banReason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `banReason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("banReason").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!APIBannedUser.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'APIBannedUser' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(APIBannedUser.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, APIBannedUser value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public APIBannedUser read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of APIBannedUser given an JSON string + * + * @param jsonString JSON string + * @return An instance of APIBannedUser + * @throws IOException if the JSON string is invalid with respect to APIBannedUser + */ + public static APIBannedUser fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, APIBannedUser.class); + } + + /** + * Convert an instance of APIBannedUser to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/APIBannedUserWithMultiMatchInfo.java b/client/src/main/java/com/fastcomments/model/APIBannedUserWithMultiMatchInfo.java new file mode 100644 index 00000000..824a7e67 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/APIBannedUserWithMultiMatchInfo.java @@ -0,0 +1,535 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.BannedUserMatch; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * APIBannedUserWithMultiMatchInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class APIBannedUserWithMultiMatchInfo { + public static final String SERIALIZED_NAME_ID = "_id"; + @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nonnull + private String id; + + public static final String SERIALIZED_NAME_USER_ID = "userId"; + @SerializedName(SERIALIZED_NAME_USER_ID) + @javax.annotation.Nullable + private String userId; + + public static final String SERIALIZED_NAME_BAN_TYPE = "banType"; + @SerializedName(SERIALIZED_NAME_BAN_TYPE) + @javax.annotation.Nonnull + private String banType; + + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable + private String email; + + public static final String SERIALIZED_NAME_IP_HASH = "ipHash"; + @SerializedName(SERIALIZED_NAME_IP_HASH) + @javax.annotation.Nullable + private String ipHash; + + public static final String SERIALIZED_NAME_BANNED_UNTIL = "bannedUntil"; + @SerializedName(SERIALIZED_NAME_BANNED_UNTIL) + @javax.annotation.Nullable + private OffsetDateTime bannedUntil; + + public static final String SERIALIZED_NAME_HAS_EMAIL_WILDCARD = "hasEmailWildcard"; + @SerializedName(SERIALIZED_NAME_HAS_EMAIL_WILDCARD) + @javax.annotation.Nonnull + private Boolean hasEmailWildcard; + + public static final String SERIALIZED_NAME_BAN_REASON = "banReason"; + @SerializedName(SERIALIZED_NAME_BAN_REASON) + @javax.annotation.Nullable + private String banReason; + + public static final String SERIALIZED_NAME_MATCHES = "matches"; + @SerializedName(SERIALIZED_NAME_MATCHES) + @javax.annotation.Nonnull + private List matches = new ArrayList<>(); + + public APIBannedUserWithMultiMatchInfo() { + } + + public APIBannedUserWithMultiMatchInfo id(@javax.annotation.Nonnull String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @javax.annotation.Nonnull + public String getId() { + return id; + } + + public void setId(@javax.annotation.Nonnull String id) { + this.id = id; + } + + + public APIBannedUserWithMultiMatchInfo userId(@javax.annotation.Nullable String userId) { + this.userId = userId; + return this; + } + + /** + * Get userId + * @return userId + */ + @javax.annotation.Nullable + public String getUserId() { + return userId; + } + + public void setUserId(@javax.annotation.Nullable String userId) { + this.userId = userId; + } + + + public APIBannedUserWithMultiMatchInfo banType(@javax.annotation.Nonnull String banType) { + this.banType = banType; + return this; + } + + /** + * Get banType + * @return banType + */ + @javax.annotation.Nonnull + public String getBanType() { + return banType; + } + + public void setBanType(@javax.annotation.Nonnull String banType) { + this.banType = banType; + } + + + public APIBannedUserWithMultiMatchInfo email(@javax.annotation.Nullable String email) { + this.email = email; + return this; + } + + /** + * Get email + * @return email + */ + @javax.annotation.Nullable + public String getEmail() { + return email; + } + + public void setEmail(@javax.annotation.Nullable String email) { + this.email = email; + } + + + public APIBannedUserWithMultiMatchInfo ipHash(@javax.annotation.Nullable String ipHash) { + this.ipHash = ipHash; + return this; + } + + /** + * Get ipHash + * @return ipHash + */ + @javax.annotation.Nullable + public String getIpHash() { + return ipHash; + } + + public void setIpHash(@javax.annotation.Nullable String ipHash) { + this.ipHash = ipHash; + } + + + public APIBannedUserWithMultiMatchInfo bannedUntil(@javax.annotation.Nullable OffsetDateTime bannedUntil) { + this.bannedUntil = bannedUntil; + return this; + } + + /** + * Get bannedUntil + * @return bannedUntil + */ + @javax.annotation.Nullable + public OffsetDateTime getBannedUntil() { + return bannedUntil; + } + + public void setBannedUntil(@javax.annotation.Nullable OffsetDateTime bannedUntil) { + this.bannedUntil = bannedUntil; + } + + + public APIBannedUserWithMultiMatchInfo hasEmailWildcard(@javax.annotation.Nonnull Boolean hasEmailWildcard) { + this.hasEmailWildcard = hasEmailWildcard; + return this; + } + + /** + * Get hasEmailWildcard + * @return hasEmailWildcard + */ + @javax.annotation.Nonnull + public Boolean getHasEmailWildcard() { + return hasEmailWildcard; + } + + public void setHasEmailWildcard(@javax.annotation.Nonnull Boolean hasEmailWildcard) { + this.hasEmailWildcard = hasEmailWildcard; + } + + + public APIBannedUserWithMultiMatchInfo banReason(@javax.annotation.Nullable String banReason) { + this.banReason = banReason; + return this; + } + + /** + * Get banReason + * @return banReason + */ + @javax.annotation.Nullable + public String getBanReason() { + return banReason; + } + + public void setBanReason(@javax.annotation.Nullable String banReason) { + this.banReason = banReason; + } + + + public APIBannedUserWithMultiMatchInfo matches(@javax.annotation.Nonnull List matches) { + this.matches = matches; + return this; + } + + public APIBannedUserWithMultiMatchInfo addMatchesItem(BannedUserMatch matchesItem) { + if (this.matches == null) { + this.matches = new ArrayList<>(); + } + this.matches.add(matchesItem); + return this; + } + + /** + * Get matches + * @return matches + */ + @javax.annotation.Nonnull + public List getMatches() { + return matches; + } + + public void setMatches(@javax.annotation.Nonnull List matches) { + this.matches = matches; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the APIBannedUserWithMultiMatchInfo instance itself + */ + public APIBannedUserWithMultiMatchInfo putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + APIBannedUserWithMultiMatchInfo apIBannedUserWithMultiMatchInfo = (APIBannedUserWithMultiMatchInfo) o; + return Objects.equals(this.id, apIBannedUserWithMultiMatchInfo.id) && + Objects.equals(this.userId, apIBannedUserWithMultiMatchInfo.userId) && + Objects.equals(this.banType, apIBannedUserWithMultiMatchInfo.banType) && + Objects.equals(this.email, apIBannedUserWithMultiMatchInfo.email) && + Objects.equals(this.ipHash, apIBannedUserWithMultiMatchInfo.ipHash) && + Objects.equals(this.bannedUntil, apIBannedUserWithMultiMatchInfo.bannedUntil) && + Objects.equals(this.hasEmailWildcard, apIBannedUserWithMultiMatchInfo.hasEmailWildcard) && + Objects.equals(this.banReason, apIBannedUserWithMultiMatchInfo.banReason) && + Objects.equals(this.matches, apIBannedUserWithMultiMatchInfo.matches)&& + Objects.equals(this.additionalProperties, apIBannedUserWithMultiMatchInfo.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(id, userId, banType, email, ipHash, bannedUntil, hasEmailWildcard, banReason, matches, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class APIBannedUserWithMultiMatchInfo {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" banType: ").append(toIndentedString(banType)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" ipHash: ").append(toIndentedString(ipHash)).append("\n"); + sb.append(" bannedUntil: ").append(toIndentedString(bannedUntil)).append("\n"); + sb.append(" hasEmailWildcard: ").append(toIndentedString(hasEmailWildcard)).append("\n"); + sb.append(" banReason: ").append(toIndentedString(banReason)).append("\n"); + sb.append(" matches: ").append(toIndentedString(matches)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("_id", "userId", "banType", "email", "ipHash", "bannedUntil", "hasEmailWildcard", "banReason", "matches")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("_id", "banType", "bannedUntil", "hasEmailWildcard", "matches")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to APIBannedUserWithMultiMatchInfo + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!APIBannedUserWithMultiMatchInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in APIBannedUserWithMultiMatchInfo is not found in the empty JSON string", APIBannedUserWithMultiMatchInfo.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : APIBannedUserWithMultiMatchInfo.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("_id").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if (!jsonObj.get("banType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `banType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("banType").toString())); + } + if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); + } + if ((jsonObj.get("ipHash") != null && !jsonObj.get("ipHash").isJsonNull()) && !jsonObj.get("ipHash").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `ipHash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ipHash").toString())); + } + if ((jsonObj.get("banReason") != null && !jsonObj.get("banReason").isJsonNull()) && !jsonObj.get("banReason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `banReason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("banReason").toString())); + } + if (jsonObj.get("matches") != null) { + if (!jsonObj.get("matches").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `matches` to be an array in the JSON string but got `%s`", jsonObj.get("matches").toString())); + } + JsonArray jsonArraymatches = jsonObj.getAsJsonArray("matches"); + // validate the required field `matches` (array) + for (int i = 0; i < jsonArraymatches.size(); i++) { + BannedUserMatch.validateJsonElement(jsonArraymatches.get(i)); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!APIBannedUserWithMultiMatchInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'APIBannedUserWithMultiMatchInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(APIBannedUserWithMultiMatchInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, APIBannedUserWithMultiMatchInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public APIBannedUserWithMultiMatchInfo read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + APIBannedUserWithMultiMatchInfo instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of APIBannedUserWithMultiMatchInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of APIBannedUserWithMultiMatchInfo + * @throws IOException if the JSON string is invalid with respect to APIBannedUserWithMultiMatchInfo + */ + public static APIBannedUserWithMultiMatchInfo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, APIBannedUserWithMultiMatchInfo.class); + } + + /** + * Convert an instance of APIBannedUserWithMultiMatchInfo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/APIComment.java b/client/src/main/java/com/fastcomments/model/APIComment.java index 84c025b9..2b4b3de5 100644 --- a/client/src/main/java/com/fastcomments/model/APIComment.java +++ b/client/src/main/java/com/fastcomments/model/APIComment.java @@ -55,9 +55,9 @@ /** * APIComment */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APIComment { - public static final String SERIALIZED_NAME_ID = "_id"; + public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @javax.annotation.Nonnull private String id; @@ -1554,10 +1554,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -1566,10 +1563,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("_id", "aiDeterminedSpam", "anonUserId", "approved", "avatarSrc", "badges", "comment", "commentHTML", "commenterEmail", "commenterLink", "commenterName", "date", "displayLabel", "domain", "externalId", "externalParentId", "expireAt", "feedbackIds", "flagCount", "fromProductId", "hasCode", "hasImages", "hasLinks", "hashTags", "isByAdmin", "isByModerator", "isDeleted", "isDeletedUser", "isPinned", "isLocked", "isSpam", "localDateHours", "localDateString", "locale", "mentions", "meta", "moderationGroupIds", "notificationSentForParent", "notificationSentForParentTenant", "pageTitle", "parentId", "rating", "reviewed", "tenantId", "url", "urlId", "urlIdRaw", "userId", "verified", "verifiedDate", "votes", "votesDown", "votesUp")); + openapiFields = new HashSet(Arrays.asList("id", "aiDeterminedSpam", "anonUserId", "approved", "avatarSrc", "badges", "comment", "commentHTML", "commenterEmail", "commenterLink", "commenterName", "date", "displayLabel", "domain", "externalId", "externalParentId", "expireAt", "feedbackIds", "flagCount", "fromProductId", "hasCode", "hasImages", "hasLinks", "hashTags", "isByAdmin", "isByModerator", "isDeleted", "isDeletedUser", "isPinned", "isLocked", "isSpam", "localDateHours", "localDateString", "locale", "mentions", "meta", "moderationGroupIds", "notificationSentForParent", "notificationSentForParentTenant", "pageTitle", "parentId", "rating", "reviewed", "tenantId", "url", "urlId", "urlIdRaw", "userId", "verified", "verifiedDate", "votes", "votesDown", "votesUp")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("_id", "approved", "comment", "commentHTML", "commenterName", "date", "locale", "tenantId", "url", "urlId", "verified")); + openapiRequiredFields = new HashSet(Arrays.asList("id", "approved", "comment", "commentHTML", "commenterName", "date", "locale", "tenantId", "url", "urlId", "verified")); } /** @@ -1592,8 +1589,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("_id").toString())); + if (!jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } if ((jsonObj.get("anonUserId") != null && !jsonObj.get("anonUserId").isJsonNull()) && !jsonObj.get("anonUserId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `anonUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("anonUserId").toString())); diff --git a/client/src/main/java/com/fastcomments/model/APICommentBase.java b/client/src/main/java/com/fastcomments/model/APICommentBase.java index 1902fc7e..14a9d3ee 100644 --- a/client/src/main/java/com/fastcomments/model/APICommentBase.java +++ b/client/src/main/java/com/fastcomments/model/APICommentBase.java @@ -55,9 +55,9 @@ /** * APICommentBase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APICommentBase { - public static final String SERIALIZED_NAME_ID = "_id"; + public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @javax.annotation.Nonnull private String id; @@ -1508,10 +1508,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -1520,10 +1517,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("_id", "aiDeterminedSpam", "anonUserId", "approved", "avatarSrc", "badges", "comment", "commentHTML", "commenterEmail", "commenterLink", "commenterName", "date", "displayLabel", "domain", "externalId", "externalParentId", "expireAt", "feedbackIds", "flagCount", "fromProductId", "hasCode", "hasImages", "hasLinks", "hashTags", "isByAdmin", "isByModerator", "isDeleted", "isDeletedUser", "isPinned", "isLocked", "isSpam", "localDateHours", "localDateString", "locale", "mentions", "meta", "moderationGroupIds", "notificationSentForParent", "notificationSentForParentTenant", "pageTitle", "parentId", "rating", "reviewed", "tenantId", "url", "urlId", "urlIdRaw", "userId", "verified", "verifiedDate", "votes", "votesDown", "votesUp")); + openapiFields = new HashSet(Arrays.asList("id", "aiDeterminedSpam", "anonUserId", "approved", "avatarSrc", "badges", "comment", "commentHTML", "commenterEmail", "commenterLink", "commenterName", "date", "displayLabel", "domain", "externalId", "externalParentId", "expireAt", "feedbackIds", "flagCount", "fromProductId", "hasCode", "hasImages", "hasLinks", "hashTags", "isByAdmin", "isByModerator", "isDeleted", "isDeletedUser", "isPinned", "isLocked", "isSpam", "localDateHours", "localDateString", "locale", "mentions", "meta", "moderationGroupIds", "notificationSentForParent", "notificationSentForParentTenant", "pageTitle", "parentId", "rating", "reviewed", "tenantId", "url", "urlId", "urlIdRaw", "userId", "verified", "verifiedDate", "votes", "votesDown", "votesUp")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("_id", "approved", "comment", "commentHTML", "commenterName", "date", "locale", "tenantId", "url", "urlId", "verified")); + openapiRequiredFields = new HashSet(Arrays.asList("id", "approved", "comment", "commentHTML", "commenterName", "date", "locale", "tenantId", "url", "urlId", "verified")); } /** @@ -1554,8 +1551,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("_id").toString())); + if (!jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } if ((jsonObj.get("anonUserId") != null && !jsonObj.get("anonUserId").isJsonNull()) && !jsonObj.get("anonUserId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `anonUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("anonUserId").toString())); diff --git a/client/src/main/java/com/fastcomments/model/APICommentBaseMeta.java b/client/src/main/java/com/fastcomments/model/APICommentBaseMeta.java index dd7fa22a..4fc724c7 100644 --- a/client/src/main/java/com/fastcomments/model/APICommentBaseMeta.java +++ b/client/src/main/java/com/fastcomments/model/APICommentBaseMeta.java @@ -48,7 +48,7 @@ /** * APICommentBaseMeta */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APICommentBaseMeta { public static final String SERIALIZED_NAME_WP_USER_ID = "wpUserId"; @SerializedName(SERIALIZED_NAME_WP_USER_ID) @@ -181,10 +181,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/APICommentCommonBannedUser.java b/client/src/main/java/com/fastcomments/model/APICommentCommonBannedUser.java new file mode 100644 index 00000000..0b11dc35 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/APICommentCommonBannedUser.java @@ -0,0 +1,407 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * APICommentCommonBannedUser + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class APICommentCommonBannedUser { + public static final String SERIALIZED_NAME_ID = "_id"; + @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nonnull + private String id; + + public static final String SERIALIZED_NAME_USER_ID = "userId"; + @SerializedName(SERIALIZED_NAME_USER_ID) + @javax.annotation.Nullable + private String userId; + + public static final String SERIALIZED_NAME_BAN_TYPE = "banType"; + @SerializedName(SERIALIZED_NAME_BAN_TYPE) + @javax.annotation.Nonnull + private String banType; + + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable + private String email; + + public static final String SERIALIZED_NAME_IP_HASH = "ipHash"; + @SerializedName(SERIALIZED_NAME_IP_HASH) + @javax.annotation.Nullable + private String ipHash; + + public static final String SERIALIZED_NAME_BANNED_UNTIL = "bannedUntil"; + @SerializedName(SERIALIZED_NAME_BANNED_UNTIL) + @javax.annotation.Nullable + private OffsetDateTime bannedUntil; + + public static final String SERIALIZED_NAME_HAS_EMAIL_WILDCARD = "hasEmailWildcard"; + @SerializedName(SERIALIZED_NAME_HAS_EMAIL_WILDCARD) + @javax.annotation.Nonnull + private Boolean hasEmailWildcard; + + public static final String SERIALIZED_NAME_BAN_REASON = "banReason"; + @SerializedName(SERIALIZED_NAME_BAN_REASON) + @javax.annotation.Nullable + private String banReason; + + public APICommentCommonBannedUser() { + } + + public APICommentCommonBannedUser id(@javax.annotation.Nonnull String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @javax.annotation.Nonnull + public String getId() { + return id; + } + + public void setId(@javax.annotation.Nonnull String id) { + this.id = id; + } + + + public APICommentCommonBannedUser userId(@javax.annotation.Nullable String userId) { + this.userId = userId; + return this; + } + + /** + * Get userId + * @return userId + */ + @javax.annotation.Nullable + public String getUserId() { + return userId; + } + + public void setUserId(@javax.annotation.Nullable String userId) { + this.userId = userId; + } + + + public APICommentCommonBannedUser banType(@javax.annotation.Nonnull String banType) { + this.banType = banType; + return this; + } + + /** + * Get banType + * @return banType + */ + @javax.annotation.Nonnull + public String getBanType() { + return banType; + } + + public void setBanType(@javax.annotation.Nonnull String banType) { + this.banType = banType; + } + + + public APICommentCommonBannedUser email(@javax.annotation.Nullable String email) { + this.email = email; + return this; + } + + /** + * Get email + * @return email + */ + @javax.annotation.Nullable + public String getEmail() { + return email; + } + + public void setEmail(@javax.annotation.Nullable String email) { + this.email = email; + } + + + public APICommentCommonBannedUser ipHash(@javax.annotation.Nullable String ipHash) { + this.ipHash = ipHash; + return this; + } + + /** + * Get ipHash + * @return ipHash + */ + @javax.annotation.Nullable + public String getIpHash() { + return ipHash; + } + + public void setIpHash(@javax.annotation.Nullable String ipHash) { + this.ipHash = ipHash; + } + + + public APICommentCommonBannedUser bannedUntil(@javax.annotation.Nullable OffsetDateTime bannedUntil) { + this.bannedUntil = bannedUntil; + return this; + } + + /** + * Get bannedUntil + * @return bannedUntil + */ + @javax.annotation.Nullable + public OffsetDateTime getBannedUntil() { + return bannedUntil; + } + + public void setBannedUntil(@javax.annotation.Nullable OffsetDateTime bannedUntil) { + this.bannedUntil = bannedUntil; + } + + + public APICommentCommonBannedUser hasEmailWildcard(@javax.annotation.Nonnull Boolean hasEmailWildcard) { + this.hasEmailWildcard = hasEmailWildcard; + return this; + } + + /** + * Get hasEmailWildcard + * @return hasEmailWildcard + */ + @javax.annotation.Nonnull + public Boolean getHasEmailWildcard() { + return hasEmailWildcard; + } + + public void setHasEmailWildcard(@javax.annotation.Nonnull Boolean hasEmailWildcard) { + this.hasEmailWildcard = hasEmailWildcard; + } + + + public APICommentCommonBannedUser banReason(@javax.annotation.Nullable String banReason) { + this.banReason = banReason; + return this; + } + + /** + * Get banReason + * @return banReason + */ + @javax.annotation.Nullable + public String getBanReason() { + return banReason; + } + + public void setBanReason(@javax.annotation.Nullable String banReason) { + this.banReason = banReason; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + APICommentCommonBannedUser apICommentCommonBannedUser = (APICommentCommonBannedUser) o; + return Objects.equals(this.id, apICommentCommonBannedUser.id) && + Objects.equals(this.userId, apICommentCommonBannedUser.userId) && + Objects.equals(this.banType, apICommentCommonBannedUser.banType) && + Objects.equals(this.email, apICommentCommonBannedUser.email) && + Objects.equals(this.ipHash, apICommentCommonBannedUser.ipHash) && + Objects.equals(this.bannedUntil, apICommentCommonBannedUser.bannedUntil) && + Objects.equals(this.hasEmailWildcard, apICommentCommonBannedUser.hasEmailWildcard) && + Objects.equals(this.banReason, apICommentCommonBannedUser.banReason); + } + + @Override + public int hashCode() { + return Objects.hash(id, userId, banType, email, ipHash, bannedUntil, hasEmailWildcard, banReason); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class APICommentCommonBannedUser {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" banType: ").append(toIndentedString(banType)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" ipHash: ").append(toIndentedString(ipHash)).append("\n"); + sb.append(" bannedUntil: ").append(toIndentedString(bannedUntil)).append("\n"); + sb.append(" hasEmailWildcard: ").append(toIndentedString(hasEmailWildcard)).append("\n"); + sb.append(" banReason: ").append(toIndentedString(banReason)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("_id", "userId", "banType", "email", "ipHash", "bannedUntil", "hasEmailWildcard", "banReason")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("_id", "banType", "bannedUntil", "hasEmailWildcard")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to APICommentCommonBannedUser + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!APICommentCommonBannedUser.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in APICommentCommonBannedUser is not found in the empty JSON string", APICommentCommonBannedUser.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!APICommentCommonBannedUser.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `APICommentCommonBannedUser` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : APICommentCommonBannedUser.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("_id").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if (!jsonObj.get("banType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `banType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("banType").toString())); + } + if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); + } + if ((jsonObj.get("ipHash") != null && !jsonObj.get("ipHash").isJsonNull()) && !jsonObj.get("ipHash").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `ipHash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ipHash").toString())); + } + if ((jsonObj.get("banReason") != null && !jsonObj.get("banReason").isJsonNull()) && !jsonObj.get("banReason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `banReason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("banReason").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!APICommentCommonBannedUser.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'APICommentCommonBannedUser' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(APICommentCommonBannedUser.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, APICommentCommonBannedUser value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public APICommentCommonBannedUser read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of APICommentCommonBannedUser given an JSON string + * + * @param jsonString JSON string + * @return An instance of APICommentCommonBannedUser + * @throws IOException if the JSON string is invalid with respect to APICommentCommonBannedUser + */ + public static APICommentCommonBannedUser fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, APICommentCommonBannedUser.class); + } + + /** + * Convert an instance of APICommentCommonBannedUser to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/APICreateUserBadgeResponse.java b/client/src/main/java/com/fastcomments/model/APICreateUserBadgeResponse.java index 4c4c2ce2..cb2bcf15 100644 --- a/client/src/main/java/com/fastcomments/model/APICreateUserBadgeResponse.java +++ b/client/src/main/java/com/fastcomments/model/APICreateUserBadgeResponse.java @@ -52,7 +52,7 @@ /** * APICreateUserBadgeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APICreateUserBadgeResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -173,10 +173,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/APIDomainConfiguration.java b/client/src/main/java/com/fastcomments/model/APIDomainConfiguration.java index 4911925e..4697b7e9 100644 --- a/client/src/main/java/com/fastcomments/model/APIDomainConfiguration.java +++ b/client/src/main/java/com/fastcomments/model/APIDomainConfiguration.java @@ -52,7 +52,7 @@ /** * APIDomainConfiguration */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APIDomainConfiguration { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -485,10 +485,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/APIEmptyResponse.java b/client/src/main/java/com/fastcomments/model/APIEmptyResponse.java index 3bda78c2..b2b99c1d 100644 --- a/client/src/main/java/com/fastcomments/model/APIEmptyResponse.java +++ b/client/src/main/java/com/fastcomments/model/APIEmptyResponse.java @@ -49,7 +49,7 @@ /** * APIEmptyResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APIEmptyResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -156,10 +156,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/APIEmptySuccessResponse.java b/client/src/main/java/com/fastcomments/model/APIEmptySuccessResponse.java index 6bd870fd..9ae398dc 100644 --- a/client/src/main/java/com/fastcomments/model/APIEmptySuccessResponse.java +++ b/client/src/main/java/com/fastcomments/model/APIEmptySuccessResponse.java @@ -49,7 +49,7 @@ /** * APIEmptySuccessResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APIEmptySuccessResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -110,10 +110,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/APIError.java b/client/src/main/java/com/fastcomments/model/APIError.java index 4a3e9d18..47af126c 100644 --- a/client/src/main/java/com/fastcomments/model/APIError.java +++ b/client/src/main/java/com/fastcomments/model/APIError.java @@ -50,7 +50,7 @@ /** * APIError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APIError { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -293,10 +293,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/APIGetCommentResponse.java b/client/src/main/java/com/fastcomments/model/APIGetCommentResponse.java index ca86c109..d1cf0515 100644 --- a/client/src/main/java/com/fastcomments/model/APIGetCommentResponse.java +++ b/client/src/main/java/com/fastcomments/model/APIGetCommentResponse.java @@ -50,7 +50,7 @@ /** * APIGetCommentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APIGetCommentResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/APIGetCommentsResponse.java b/client/src/main/java/com/fastcomments/model/APIGetCommentsResponse.java index 9746c11c..de2856c1 100644 --- a/client/src/main/java/com/fastcomments/model/APIGetCommentsResponse.java +++ b/client/src/main/java/com/fastcomments/model/APIGetCommentsResponse.java @@ -52,7 +52,7 @@ /** * APIGetCommentsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APIGetCommentsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("comments").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `comments` to be an array in the JSON string but got `%s`", jsonObj.get("comments").toString())); + if (jsonObj.get("comments") != null) { + if (!jsonObj.get("comments").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `comments` to be an array in the JSON string but got `%s`", jsonObj.get("comments").toString())); + } + JsonArray jsonArraycomments = jsonObj.getAsJsonArray("comments"); + // validate the required field `comments` (array) + for (int i = 0; i < jsonArraycomments.size(); i++) { + APIComment.validateJsonElement(jsonArraycomments.get(i)); + } } - - JsonArray jsonArraycomments = jsonObj.getAsJsonArray("comments"); - // validate the required field `comments` (array) - for (int i = 0; i < jsonArraycomments.size(); i++) { - APIComment.validateJsonElement(jsonArraycomments.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/APIGetUserBadgeProgressListResponse.java b/client/src/main/java/com/fastcomments/model/APIGetUserBadgeProgressListResponse.java index b57dc7a2..b4047103 100644 --- a/client/src/main/java/com/fastcomments/model/APIGetUserBadgeProgressListResponse.java +++ b/client/src/main/java/com/fastcomments/model/APIGetUserBadgeProgressListResponse.java @@ -52,7 +52,7 @@ /** * APIGetUserBadgeProgressListResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APIGetUserBadgeProgressListResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("userBadgeProgresses").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userBadgeProgresses` to be an array in the JSON string but got `%s`", jsonObj.get("userBadgeProgresses").toString())); + if (jsonObj.get("userBadgeProgresses") != null) { + if (!jsonObj.get("userBadgeProgresses").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userBadgeProgresses` to be an array in the JSON string but got `%s`", jsonObj.get("userBadgeProgresses").toString())); + } + JsonArray jsonArrayuserBadgeProgresses = jsonObj.getAsJsonArray("userBadgeProgresses"); + // validate the required field `userBadgeProgresses` (array) + for (int i = 0; i < jsonArrayuserBadgeProgresses.size(); i++) { + UserBadgeProgress.validateJsonElement(jsonArrayuserBadgeProgresses.get(i)); + } } - - JsonArray jsonArrayuserBadgeProgresses = jsonObj.getAsJsonArray("userBadgeProgresses"); - // validate the required field `userBadgeProgresses` (array) - for (int i = 0; i < jsonArrayuserBadgeProgresses.size(); i++) { - UserBadgeProgress.validateJsonElement(jsonArrayuserBadgeProgresses.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/APIGetUserBadgeProgressResponse.java b/client/src/main/java/com/fastcomments/model/APIGetUserBadgeProgressResponse.java index ad2b689a..0461c6a7 100644 --- a/client/src/main/java/com/fastcomments/model/APIGetUserBadgeProgressResponse.java +++ b/client/src/main/java/com/fastcomments/model/APIGetUserBadgeProgressResponse.java @@ -50,7 +50,7 @@ /** * APIGetUserBadgeProgressResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APIGetUserBadgeProgressResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/APIGetUserBadgeResponse.java b/client/src/main/java/com/fastcomments/model/APIGetUserBadgeResponse.java index 3a71ef42..0cfd99cc 100644 --- a/client/src/main/java/com/fastcomments/model/APIGetUserBadgeResponse.java +++ b/client/src/main/java/com/fastcomments/model/APIGetUserBadgeResponse.java @@ -50,7 +50,7 @@ /** * APIGetUserBadgeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APIGetUserBadgeResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/APIGetUserBadgesResponse.java b/client/src/main/java/com/fastcomments/model/APIGetUserBadgesResponse.java index a736e6de..147d69b5 100644 --- a/client/src/main/java/com/fastcomments/model/APIGetUserBadgesResponse.java +++ b/client/src/main/java/com/fastcomments/model/APIGetUserBadgesResponse.java @@ -52,7 +52,7 @@ /** * APIGetUserBadgesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APIGetUserBadgesResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("userBadges").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userBadges` to be an array in the JSON string but got `%s`", jsonObj.get("userBadges").toString())); + if (jsonObj.get("userBadges") != null) { + if (!jsonObj.get("userBadges").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userBadges` to be an array in the JSON string but got `%s`", jsonObj.get("userBadges").toString())); + } + JsonArray jsonArrayuserBadges = jsonObj.getAsJsonArray("userBadges"); + // validate the required field `userBadges` (array) + for (int i = 0; i < jsonArrayuserBadges.size(); i++) { + UserBadge.validateJsonElement(jsonArrayuserBadges.get(i)); + } } - - JsonArray jsonArrayuserBadges = jsonObj.getAsJsonArray("userBadges"); - // validate the required field `userBadges` (array) - for (int i = 0; i < jsonArrayuserBadges.size(); i++) { - UserBadge.validateJsonElement(jsonArrayuserBadges.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/APIModerateGetUserBanPreferencesResponse.java b/client/src/main/java/com/fastcomments/model/APIModerateGetUserBanPreferencesResponse.java new file mode 100644 index 00000000..a85e3d16 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/APIModerateGetUserBanPreferencesResponse.java @@ -0,0 +1,321 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIModerateUserBanPreferences; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * APIModerateGetUserBanPreferencesResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class APIModerateGetUserBanPreferencesResponse { + public static final String SERIALIZED_NAME_PREFERENCES = "preferences"; + @SerializedName(SERIALIZED_NAME_PREFERENCES) + @javax.annotation.Nullable + private APIModerateUserBanPreferences preferences; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public APIModerateGetUserBanPreferencesResponse() { + } + + public APIModerateGetUserBanPreferencesResponse preferences(@javax.annotation.Nullable APIModerateUserBanPreferences preferences) { + this.preferences = preferences; + return this; + } + + /** + * Get preferences + * @return preferences + */ + @javax.annotation.Nullable + public APIModerateUserBanPreferences getPreferences() { + return preferences; + } + + public void setPreferences(@javax.annotation.Nullable APIModerateUserBanPreferences preferences) { + this.preferences = preferences; + } + + + public APIModerateGetUserBanPreferencesResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the APIModerateGetUserBanPreferencesResponse instance itself + */ + public APIModerateGetUserBanPreferencesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + APIModerateGetUserBanPreferencesResponse apIModerateGetUserBanPreferencesResponse = (APIModerateGetUserBanPreferencesResponse) o; + return Objects.equals(this.preferences, apIModerateGetUserBanPreferencesResponse.preferences) && + Objects.equals(this.status, apIModerateGetUserBanPreferencesResponse.status)&& + Objects.equals(this.additionalProperties, apIModerateGetUserBanPreferencesResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(preferences, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class APIModerateGetUserBanPreferencesResponse {\n"); + sb.append(" preferences: ").append(toIndentedString(preferences)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("preferences", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("preferences", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to APIModerateGetUserBanPreferencesResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!APIModerateGetUserBanPreferencesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in APIModerateGetUserBanPreferencesResponse is not found in the empty JSON string", APIModerateGetUserBanPreferencesResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : APIModerateGetUserBanPreferencesResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("preferences") != null && !jsonObj.get("preferences").isJsonNull()) { + // validate the required field `preferences` + APIModerateUserBanPreferences.validateJsonElement(jsonObj.get("preferences")); + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!APIModerateGetUserBanPreferencesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'APIModerateGetUserBanPreferencesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(APIModerateGetUserBanPreferencesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, APIModerateGetUserBanPreferencesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public APIModerateGetUserBanPreferencesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + APIModerateGetUserBanPreferencesResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of APIModerateGetUserBanPreferencesResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of APIModerateGetUserBanPreferencesResponse + * @throws IOException if the JSON string is invalid with respect to APIModerateGetUserBanPreferencesResponse + */ + public static APIModerateGetUserBanPreferencesResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, APIModerateGetUserBanPreferencesResponse.class); + } + + /** + * Convert an instance of APIModerateGetUserBanPreferencesResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/APIModerateUserBanPreferences.java b/client/src/main/java/com/fastcomments/model/APIModerateUserBanPreferences.java new file mode 100644 index 00000000..94bdb80f --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/APIModerateUserBanPreferences.java @@ -0,0 +1,290 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * APIModerateUserBanPreferences + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class APIModerateUserBanPreferences { + public static final String SERIALIZED_NAME_SHOULD_BAN_EMAIL = "shouldBanEmail"; + @SerializedName(SERIALIZED_NAME_SHOULD_BAN_EMAIL) + @javax.annotation.Nonnull + private Boolean shouldBanEmail; + + public static final String SERIALIZED_NAME_SHOULD_BAN_BY_I_P = "shouldBanByIP"; + @SerializedName(SERIALIZED_NAME_SHOULD_BAN_BY_I_P) + @javax.annotation.Nonnull + private Boolean shouldBanByIP; + + public static final String SERIALIZED_NAME_LAST_BAN_TYPE = "lastBanType"; + @SerializedName(SERIALIZED_NAME_LAST_BAN_TYPE) + @javax.annotation.Nonnull + private String lastBanType; + + public static final String SERIALIZED_NAME_LAST_BAN_DURATION = "lastBanDuration"; + @SerializedName(SERIALIZED_NAME_LAST_BAN_DURATION) + @javax.annotation.Nonnull + private String lastBanDuration; + + public APIModerateUserBanPreferences() { + } + + public APIModerateUserBanPreferences shouldBanEmail(@javax.annotation.Nonnull Boolean shouldBanEmail) { + this.shouldBanEmail = shouldBanEmail; + return this; + } + + /** + * Get shouldBanEmail + * @return shouldBanEmail + */ + @javax.annotation.Nonnull + public Boolean getShouldBanEmail() { + return shouldBanEmail; + } + + public void setShouldBanEmail(@javax.annotation.Nonnull Boolean shouldBanEmail) { + this.shouldBanEmail = shouldBanEmail; + } + + + public APIModerateUserBanPreferences shouldBanByIP(@javax.annotation.Nonnull Boolean shouldBanByIP) { + this.shouldBanByIP = shouldBanByIP; + return this; + } + + /** + * Get shouldBanByIP + * @return shouldBanByIP + */ + @javax.annotation.Nonnull + public Boolean getShouldBanByIP() { + return shouldBanByIP; + } + + public void setShouldBanByIP(@javax.annotation.Nonnull Boolean shouldBanByIP) { + this.shouldBanByIP = shouldBanByIP; + } + + + public APIModerateUserBanPreferences lastBanType(@javax.annotation.Nonnull String lastBanType) { + this.lastBanType = lastBanType; + return this; + } + + /** + * Get lastBanType + * @return lastBanType + */ + @javax.annotation.Nonnull + public String getLastBanType() { + return lastBanType; + } + + public void setLastBanType(@javax.annotation.Nonnull String lastBanType) { + this.lastBanType = lastBanType; + } + + + public APIModerateUserBanPreferences lastBanDuration(@javax.annotation.Nonnull String lastBanDuration) { + this.lastBanDuration = lastBanDuration; + return this; + } + + /** + * Get lastBanDuration + * @return lastBanDuration + */ + @javax.annotation.Nonnull + public String getLastBanDuration() { + return lastBanDuration; + } + + public void setLastBanDuration(@javax.annotation.Nonnull String lastBanDuration) { + this.lastBanDuration = lastBanDuration; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + APIModerateUserBanPreferences apIModerateUserBanPreferences = (APIModerateUserBanPreferences) o; + return Objects.equals(this.shouldBanEmail, apIModerateUserBanPreferences.shouldBanEmail) && + Objects.equals(this.shouldBanByIP, apIModerateUserBanPreferences.shouldBanByIP) && + Objects.equals(this.lastBanType, apIModerateUserBanPreferences.lastBanType) && + Objects.equals(this.lastBanDuration, apIModerateUserBanPreferences.lastBanDuration); + } + + @Override + public int hashCode() { + return Objects.hash(shouldBanEmail, shouldBanByIP, lastBanType, lastBanDuration); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class APIModerateUserBanPreferences {\n"); + sb.append(" shouldBanEmail: ").append(toIndentedString(shouldBanEmail)).append("\n"); + sb.append(" shouldBanByIP: ").append(toIndentedString(shouldBanByIP)).append("\n"); + sb.append(" lastBanType: ").append(toIndentedString(lastBanType)).append("\n"); + sb.append(" lastBanDuration: ").append(toIndentedString(lastBanDuration)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("shouldBanEmail", "shouldBanByIP", "lastBanType", "lastBanDuration")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("shouldBanEmail", "shouldBanByIP", "lastBanType", "lastBanDuration")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to APIModerateUserBanPreferences + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!APIModerateUserBanPreferences.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in APIModerateUserBanPreferences is not found in the empty JSON string", APIModerateUserBanPreferences.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!APIModerateUserBanPreferences.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `APIModerateUserBanPreferences` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : APIModerateUserBanPreferences.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("lastBanType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `lastBanType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastBanType").toString())); + } + if (!jsonObj.get("lastBanDuration").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `lastBanDuration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastBanDuration").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!APIModerateUserBanPreferences.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'APIModerateUserBanPreferences' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(APIModerateUserBanPreferences.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, APIModerateUserBanPreferences value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public APIModerateUserBanPreferences read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of APIModerateUserBanPreferences given an JSON string + * + * @param jsonString JSON string + * @return An instance of APIModerateUserBanPreferences + * @throws IOException if the JSON string is invalid with respect to APIModerateUserBanPreferences + */ + public static APIModerateUserBanPreferences fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, APIModerateUserBanPreferences.class); + } + + /** + * Convert an instance of APIModerateUserBanPreferences to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/APIPage.java b/client/src/main/java/com/fastcomments/model/APIPage.java index 0371a757..a3025222 100644 --- a/client/src/main/java/com/fastcomments/model/APIPage.java +++ b/client/src/main/java/com/fastcomments/model/APIPage.java @@ -51,7 +51,7 @@ /** * APIPage */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APIPage { public static final String SERIALIZED_NAME_IS_CLOSED = "isClosed"; @SerializedName(SERIALIZED_NAME_IS_CLOSED) @@ -374,10 +374,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/APISSOUser.java b/client/src/main/java/com/fastcomments/model/APISSOUser.java index 3215dcbe..dcdb61ed 100644 --- a/client/src/main/java/com/fastcomments/model/APISSOUser.java +++ b/client/src/main/java/com/fastcomments/model/APISSOUser.java @@ -50,7 +50,7 @@ /** * APISSOUser */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APISSOUser { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -613,10 +613,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/SaveCommentResponse.java b/client/src/main/java/com/fastcomments/model/APISaveCommentResponse.java similarity index 71% rename from client/src/main/java/com/fastcomments/model/SaveCommentResponse.java rename to client/src/main/java/com/fastcomments/model/APISaveCommentResponse.java index f59db257..2713014d 100644 --- a/client/src/main/java/com/fastcomments/model/SaveCommentResponse.java +++ b/client/src/main/java/com/fastcomments/model/APISaveCommentResponse.java @@ -14,8 +14,8 @@ package com.fastcomments.model; import java.util.Objects; +import com.fastcomments.model.APIComment; import com.fastcomments.model.APIStatus; -import com.fastcomments.model.FComment; import com.fastcomments.model.UserSessionInfo; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -51,10 +51,10 @@ import com.fastcomments.invoker.JSON; /** - * SaveCommentResponse + * APISaveCommentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class SaveCommentResponse { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class APISaveCommentResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nonnull @@ -63,7 +63,7 @@ public class SaveCommentResponse { public static final String SERIALIZED_NAME_COMMENT = "comment"; @SerializedName(SERIALIZED_NAME_COMMENT) @javax.annotation.Nonnull - private FComment comment; + private APIComment comment; public static final String SERIALIZED_NAME_USER = "user"; @SerializedName(SERIALIZED_NAME_USER) @@ -75,10 +75,10 @@ public class SaveCommentResponse { @javax.annotation.Nullable private Map moduleData = new HashMap<>(); - public SaveCommentResponse() { + public APISaveCommentResponse() { } - public SaveCommentResponse status(@javax.annotation.Nonnull APIStatus status) { + public APISaveCommentResponse status(@javax.annotation.Nonnull APIStatus status) { this.status = status; return this; } @@ -97,7 +97,7 @@ public void setStatus(@javax.annotation.Nonnull APIStatus status) { } - public SaveCommentResponse comment(@javax.annotation.Nonnull FComment comment) { + public APISaveCommentResponse comment(@javax.annotation.Nonnull APIComment comment) { this.comment = comment; return this; } @@ -107,16 +107,16 @@ public SaveCommentResponse comment(@javax.annotation.Nonnull FComment comment) { * @return comment */ @javax.annotation.Nonnull - public FComment getComment() { + public APIComment getComment() { return comment; } - public void setComment(@javax.annotation.Nonnull FComment comment) { + public void setComment(@javax.annotation.Nonnull APIComment comment) { this.comment = comment; } - public SaveCommentResponse user(@javax.annotation.Nullable UserSessionInfo user) { + public APISaveCommentResponse user(@javax.annotation.Nullable UserSessionInfo user) { this.user = user; return this; } @@ -135,12 +135,12 @@ public void setUser(@javax.annotation.Nullable UserSessionInfo user) { } - public SaveCommentResponse moduleData(@javax.annotation.Nullable Map moduleData) { + public APISaveCommentResponse moduleData(@javax.annotation.Nullable Map moduleData) { this.moduleData = moduleData; return this; } - public SaveCommentResponse putModuleDataItem(String key, Object moduleDataItem) { + public APISaveCommentResponse putModuleDataItem(String key, Object moduleDataItem) { if (this.moduleData == null) { this.moduleData = new HashMap<>(); } @@ -171,11 +171,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SaveCommentResponse saveCommentResponse = (SaveCommentResponse) o; - return Objects.equals(this.status, saveCommentResponse.status) && - Objects.equals(this.comment, saveCommentResponse.comment) && - Objects.equals(this.user, saveCommentResponse.user) && - Objects.equals(this.moduleData, saveCommentResponse.moduleData); + APISaveCommentResponse apISaveCommentResponse = (APISaveCommentResponse) o; + return Objects.equals(this.status, apISaveCommentResponse.status) && + Objects.equals(this.comment, apISaveCommentResponse.comment) && + Objects.equals(this.user, apISaveCommentResponse.user) && + Objects.equals(this.moduleData, apISaveCommentResponse.moduleData); } @Override @@ -186,7 +186,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SaveCommentResponse {\n"); + sb.append("class APISaveCommentResponse {\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); sb.append(" user: ").append(toIndentedString(user)).append("\n"); @@ -200,10 +200,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -222,25 +219,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SaveCommentResponse + * @throws IOException if the JSON Element is invalid with respect to APISaveCommentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!SaveCommentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in SaveCommentResponse is not found in the empty JSON string", SaveCommentResponse.openapiRequiredFields.toString())); + if (!APISaveCommentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in APISaveCommentResponse is not found in the empty JSON string", APISaveCommentResponse.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!SaveCommentResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SaveCommentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!APISaveCommentResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `APISaveCommentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : SaveCommentResponse.openapiRequiredFields) { + for (String requiredField : APISaveCommentResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -249,31 +246,33 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); // validate the required field `comment` - FComment.validateJsonElement(jsonObj.get("comment")); + APIComment.validateJsonElement(jsonObj.get("comment")); + if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { // validate the required field `user` UserSessionInfo.validateJsonElement(jsonObj.get("user")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SaveCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SaveCommentResponse' and its subtypes + if (!APISaveCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'APISaveCommentResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SaveCommentResponse.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(APISaveCommentResponse.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, SaveCommentResponse value) throws IOException { + public void write(JsonWriter out, APISaveCommentResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public SaveCommentResponse read(JsonReader in) throws IOException { + public APISaveCommentResponse read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -284,18 +283,18 @@ public SaveCommentResponse read(JsonReader in) throws IOException { } /** - * Create an instance of SaveCommentResponse given an JSON string + * Create an instance of APISaveCommentResponse given an JSON string * * @param jsonString JSON string - * @return An instance of SaveCommentResponse - * @throws IOException if the JSON string is invalid with respect to SaveCommentResponse + * @return An instance of APISaveCommentResponse + * @throws IOException if the JSON string is invalid with respect to APISaveCommentResponse */ - public static SaveCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SaveCommentResponse.class); + public static APISaveCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, APISaveCommentResponse.class); } /** - * Convert an instance of SaveCommentResponse to an JSON string + * Convert an instance of APISaveCommentResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/APITenant.java b/client/src/main/java/com/fastcomments/model/APITenant.java index 498bc1e3..49726de6 100644 --- a/client/src/main/java/com/fastcomments/model/APITenant.java +++ b/client/src/main/java/com/fastcomments/model/APITenant.java @@ -55,7 +55,7 @@ /** * APITenant */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APITenant { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -834,10 +834,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -895,16 +892,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("createdBy").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); } - // ensure the json data is an array - if (!jsonObj.get("domainConfiguration").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `domainConfiguration` to be an array in the JSON string but got `%s`", jsonObj.get("domainConfiguration").toString())); + if (jsonObj.get("domainConfiguration") != null) { + if (!jsonObj.get("domainConfiguration").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `domainConfiguration` to be an array in the JSON string but got `%s`", jsonObj.get("domainConfiguration").toString())); + } + JsonArray jsonArraydomainConfiguration = jsonObj.getAsJsonArray("domainConfiguration"); + // validate the required field `domainConfiguration` (array) + for (int i = 0; i < jsonArraydomainConfiguration.size(); i++) { + APIDomainConfiguration.validateJsonElement(jsonArraydomainConfiguration.get(i)); + } } - - JsonArray jsonArraydomainConfiguration = jsonObj.getAsJsonArray("domainConfiguration"); - // validate the required field `domainConfiguration` (array) - for (int i = 0; i < jsonArraydomainConfiguration.size(); i++) { - APIDomainConfiguration.validateJsonElement(jsonArraydomainConfiguration.get(i)); - }; // validate the optional field `billingInfo` if (jsonObj.get("billingInfo") != null && !jsonObj.get("billingInfo").isJsonNull()) { BillingInfo.validateJsonElement(jsonObj.get("billingInfo")); diff --git a/client/src/main/java/com/fastcomments/model/APITenantDailyUsage.java b/client/src/main/java/com/fastcomments/model/APITenantDailyUsage.java index dd324a49..4cbd92ee 100644 --- a/client/src/main/java/com/fastcomments/model/APITenantDailyUsage.java +++ b/client/src/main/java/com/fastcomments/model/APITenantDailyUsage.java @@ -49,7 +49,7 @@ /** * APITenantDailyUsage */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APITenantDailyUsage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -578,10 +578,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/APITicket.java b/client/src/main/java/com/fastcomments/model/APITicket.java index e1579ce8..5d04e6f1 100644 --- a/client/src/main/java/com/fastcomments/model/APITicket.java +++ b/client/src/main/java/com/fastcomments/model/APITicket.java @@ -50,7 +50,7 @@ /** * APITicket */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APITicket { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -327,10 +327,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/APITicketDetail.java b/client/src/main/java/com/fastcomments/model/APITicketDetail.java index a0f94e67..cd1f8a42 100644 --- a/client/src/main/java/com/fastcomments/model/APITicketDetail.java +++ b/client/src/main/java/com/fastcomments/model/APITicketDetail.java @@ -51,7 +51,7 @@ /** * APITicketDetail */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APITicketDetail { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -440,10 +440,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -510,16 +507,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("createdAt").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `createdAt` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdAt").toString())); } - // ensure the json data is an array - if (!jsonObj.get("files").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `files` to be an array in the JSON string but got `%s`", jsonObj.get("files").toString())); + if (jsonObj.get("files") != null) { + if (!jsonObj.get("files").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `files` to be an array in the JSON string but got `%s`", jsonObj.get("files").toString())); + } + JsonArray jsonArrayfiles = jsonObj.getAsJsonArray("files"); + // validate the required field `files` (array) + for (int i = 0; i < jsonArrayfiles.size(); i++) { + APITicketFile.validateJsonElement(jsonArrayfiles.get(i)); + } } - - JsonArray jsonArrayfiles = jsonObj.getAsJsonArray("files"); - // validate the required field `files` (array) - for (int i = 0; i < jsonArrayfiles.size(); i++) { - APITicketFile.validateJsonElement(jsonArrayfiles.get(i)); - }; if ((jsonObj.get("reopenedAt") != null && !jsonObj.get("reopenedAt").isJsonNull()) && !jsonObj.get("reopenedAt").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `reopenedAt` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reopenedAt").toString())); } diff --git a/client/src/main/java/com/fastcomments/model/APITicketFile.java b/client/src/main/java/com/fastcomments/model/APITicketFile.java index 5b8cc3ee..1d32b094 100644 --- a/client/src/main/java/com/fastcomments/model/APITicketFile.java +++ b/client/src/main/java/com/fastcomments/model/APITicketFile.java @@ -48,7 +48,7 @@ /** * APITicketFile */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APITicketFile { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -343,10 +343,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/APIUserSubscription.java b/client/src/main/java/com/fastcomments/model/APIUserSubscription.java index 2b70cea9..dac6ea8b 100644 --- a/client/src/main/java/com/fastcomments/model/APIUserSubscription.java +++ b/client/src/main/java/com/fastcomments/model/APIUserSubscription.java @@ -49,7 +49,7 @@ /** * APIUserSubscription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class APIUserSubscription { public static final String SERIALIZED_NAME_NOTIFICATION_FREQUENCY = "notificationFrequency"; @SerializedName(SERIALIZED_NAME_NOTIFICATION_FREQUENCY) @@ -338,10 +338,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/AbstractOpenApiSchema.java b/client/src/main/java/com/fastcomments/model/AbstractOpenApiSchema.java index a5f4fe51..1b3f1226 100644 --- a/client/src/main/java/com/fastcomments/model/AbstractOpenApiSchema.java +++ b/client/src/main/java/com/fastcomments/model/AbstractOpenApiSchema.java @@ -21,7 +21,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object @@ -104,10 +104,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } public boolean equals(Object o) { diff --git a/client/src/main/java/com/fastcomments/model/AddDomainConfigParams.java b/client/src/main/java/com/fastcomments/model/AddDomainConfigParams.java index b5f4fdcf..fa8df43b 100644 --- a/client/src/main/java/com/fastcomments/model/AddDomainConfigParams.java +++ b/client/src/main/java/com/fastcomments/model/AddDomainConfigParams.java @@ -50,7 +50,7 @@ /** * AddDomainConfigParams */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class AddDomainConfigParams { public static final String SERIALIZED_NAME_DOMAIN = "domain"; @SerializedName(SERIALIZED_NAME_DOMAIN) @@ -275,10 +275,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/AddDomainConfig200Response.java b/client/src/main/java/com/fastcomments/model/AddDomainConfigResponse.java similarity index 57% rename from client/src/main/java/com/fastcomments/model/AddDomainConfig200Response.java rename to client/src/main/java/com/fastcomments/model/AddDomainConfigResponse.java index 88c0da8c..f01e8f2a 100644 --- a/client/src/main/java/com/fastcomments/model/AddDomainConfig200Response.java +++ b/client/src/main/java/com/fastcomments/model/AddDomainConfigResponse.java @@ -14,8 +14,8 @@ package com.fastcomments.model; import java.util.Objects; -import com.fastcomments.model.AddDomainConfig200ResponseAnyOf; -import com.fastcomments.model.GetDomainConfigs200ResponseAnyOf1; +import com.fastcomments.model.AddDomainConfigResponseAnyOf; +import com.fastcomments.model.GetDomainConfigsResponseAnyOf1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -59,80 +59,80 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class AddDomainConfig200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AddDomainConfig200Response.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class AddDomainConfigResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(AddDomainConfigResponse.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDomainConfig200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDomainConfig200Response' and its subtypes + if (!AddDomainConfigResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDomainConfigResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetDomainConfigs200ResponseAnyOf1 = gson.getDelegateAdapter(this, TypeToken.get(GetDomainConfigs200ResponseAnyOf1.class)); - final TypeAdapter adapterAddDomainConfig200ResponseAnyOf = gson.getDelegateAdapter(this, TypeToken.get(AddDomainConfig200ResponseAnyOf.class)); + final TypeAdapter adapterGetDomainConfigsResponseAnyOf1 = gson.getDelegateAdapter(this, TypeToken.get(GetDomainConfigsResponseAnyOf1.class)); + final TypeAdapter adapterAddDomainConfigResponseAnyOf = gson.getDelegateAdapter(this, TypeToken.get(AddDomainConfigResponseAnyOf.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, AddDomainConfig200Response value) throws IOException { + public void write(JsonWriter out, AddDomainConfigResponse value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; } - // check if the actual instance is of the type `GetDomainConfigs200ResponseAnyOf1` - if (value.getActualInstance() instanceof GetDomainConfigs200ResponseAnyOf1) { - JsonElement element = adapterGetDomainConfigs200ResponseAnyOf1.toJsonTree((GetDomainConfigs200ResponseAnyOf1)value.getActualInstance()); + // check if the actual instance is of the type `GetDomainConfigsResponseAnyOf1` + if (value.getActualInstance() instanceof GetDomainConfigsResponseAnyOf1) { + JsonElement element = adapterGetDomainConfigsResponseAnyOf1.toJsonTree((GetDomainConfigsResponseAnyOf1)value.getActualInstance()); elementAdapter.write(out, element); return; } - // check if the actual instance is of the type `AddDomainConfig200ResponseAnyOf` - if (value.getActualInstance() instanceof AddDomainConfig200ResponseAnyOf) { - JsonElement element = adapterAddDomainConfig200ResponseAnyOf.toJsonTree((AddDomainConfig200ResponseAnyOf)value.getActualInstance()); + // check if the actual instance is of the type `AddDomainConfigResponseAnyOf` + if (value.getActualInstance() instanceof AddDomainConfigResponseAnyOf) { + JsonElement element = adapterAddDomainConfigResponseAnyOf.toJsonTree((AddDomainConfigResponseAnyOf)value.getActualInstance()); elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1"); } @Override - public AddDomainConfig200Response read(JsonReader in) throws IOException { + public AddDomainConfigResponse read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); ArrayList errorMessages = new ArrayList<>(); TypeAdapter actualAdapter = elementAdapter; - // deserialize GetDomainConfigs200ResponseAnyOf1 + // deserialize GetDomainConfigsResponseAnyOf1 try { // validate the JSON object to see if any exception is thrown - GetDomainConfigs200ResponseAnyOf1.validateJsonElement(jsonElement); - actualAdapter = adapterGetDomainConfigs200ResponseAnyOf1; - AddDomainConfig200Response ret = new AddDomainConfig200Response(); + GetDomainConfigsResponseAnyOf1.validateJsonElement(jsonElement); + actualAdapter = adapterGetDomainConfigsResponseAnyOf1; + AddDomainConfigResponse ret = new AddDomainConfigResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigs200ResponseAnyOf1 failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetDomainConfigs200ResponseAnyOf1'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigsResponseAnyOf1 failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetDomainConfigsResponseAnyOf1'", e); } - // deserialize AddDomainConfig200ResponseAnyOf + // deserialize AddDomainConfigResponseAnyOf try { // validate the JSON object to see if any exception is thrown - AddDomainConfig200ResponseAnyOf.validateJsonElement(jsonElement); - actualAdapter = adapterAddDomainConfig200ResponseAnyOf; - AddDomainConfig200Response ret = new AddDomainConfig200Response(); + AddDomainConfigResponseAnyOf.validateJsonElement(jsonElement); + actualAdapter = adapterAddDomainConfigResponseAnyOf; + AddDomainConfigResponse ret = new AddDomainConfigResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AddDomainConfig200ResponseAnyOf failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'AddDomainConfig200ResponseAnyOf'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AddDomainConfigResponseAnyOf failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AddDomainConfigResponseAnyOf'", e); } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for AddDomainConfig200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for AddDomainConfigResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -141,52 +141,52 @@ public AddDomainConfig200Response read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public AddDomainConfig200Response() { + public AddDomainConfigResponse() { super("anyOf", Boolean.FALSE); } - public AddDomainConfig200Response(Object o) { + public AddDomainConfigResponse(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("GetDomainConfigs200ResponseAnyOf1", GetDomainConfigs200ResponseAnyOf1.class); - schemas.put("AddDomainConfig200ResponseAnyOf", AddDomainConfig200ResponseAnyOf.class); + schemas.put("GetDomainConfigsResponseAnyOf1", GetDomainConfigsResponseAnyOf1.class); + schemas.put("AddDomainConfigResponseAnyOf", AddDomainConfigResponseAnyOf.class); } @Override public Map> getSchemas() { - return AddDomainConfig200Response.schemas; + return AddDomainConfigResponse.schemas; } /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1 + * AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1 * * It could be an instance of the 'anyOf' schemas. */ @Override public void setActualInstance(Object instance) { - if (instance instanceof GetDomainConfigs200ResponseAnyOf1) { + if (instance instanceof GetDomainConfigsResponseAnyOf1) { super.setActualInstance(instance); return; } - if (instance instanceof AddDomainConfig200ResponseAnyOf) { + if (instance instanceof AddDomainConfigResponseAnyOf) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1"); + throw new RuntimeException("Invalid instance type. Must be AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1"); } /** * Get the actual instance, which can be the following: - * AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1 + * AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1 * - * @return The actual instance (AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1) + * @return The actual instance (AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1) */ @SuppressWarnings("unchecked") @Override @@ -195,68 +195,68 @@ public Object getActualInstance() { } /** - * Get the actual instance of `GetDomainConfigs200ResponseAnyOf1`. If the actual instance is not `GetDomainConfigs200ResponseAnyOf1`, + * Get the actual instance of `GetDomainConfigsResponseAnyOf1`. If the actual instance is not `GetDomainConfigsResponseAnyOf1`, * the ClassCastException will be thrown. * - * @return The actual instance of `GetDomainConfigs200ResponseAnyOf1` - * @throws ClassCastException if the instance is not `GetDomainConfigs200ResponseAnyOf1` + * @return The actual instance of `GetDomainConfigsResponseAnyOf1` + * @throws ClassCastException if the instance is not `GetDomainConfigsResponseAnyOf1` */ - public GetDomainConfigs200ResponseAnyOf1 getGetDomainConfigs200ResponseAnyOf1() throws ClassCastException { - return (GetDomainConfigs200ResponseAnyOf1)super.getActualInstance(); + public GetDomainConfigsResponseAnyOf1 getGetDomainConfigsResponseAnyOf1() throws ClassCastException { + return (GetDomainConfigsResponseAnyOf1)super.getActualInstance(); } /** - * Get the actual instance of `AddDomainConfig200ResponseAnyOf`. If the actual instance is not `AddDomainConfig200ResponseAnyOf`, + * Get the actual instance of `AddDomainConfigResponseAnyOf`. If the actual instance is not `AddDomainConfigResponseAnyOf`, * the ClassCastException will be thrown. * - * @return The actual instance of `AddDomainConfig200ResponseAnyOf` - * @throws ClassCastException if the instance is not `AddDomainConfig200ResponseAnyOf` + * @return The actual instance of `AddDomainConfigResponseAnyOf` + * @throws ClassCastException if the instance is not `AddDomainConfigResponseAnyOf` */ - public AddDomainConfig200ResponseAnyOf getAddDomainConfig200ResponseAnyOf() throws ClassCastException { - return (AddDomainConfig200ResponseAnyOf)super.getActualInstance(); + public AddDomainConfigResponseAnyOf getAddDomainConfigResponseAnyOf() throws ClassCastException { + return (AddDomainConfigResponseAnyOf)super.getActualInstance(); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddDomainConfig200Response + * @throws IOException if the JSON Element is invalid with respect to AddDomainConfigResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetDomainConfigs200ResponseAnyOf1 + // validate the json string with GetDomainConfigsResponseAnyOf1 try { - GetDomainConfigs200ResponseAnyOf1.validateJsonElement(jsonElement); + GetDomainConfigsResponseAnyOf1.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigs200ResponseAnyOf1 failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigsResponseAnyOf1 failed with `%s`.", e.getMessage())); // continue to the next one } - // validate the json string with AddDomainConfig200ResponseAnyOf + // validate the json string with AddDomainConfigResponseAnyOf try { - AddDomainConfig200ResponseAnyOf.validateJsonElement(jsonElement); + AddDomainConfigResponseAnyOf.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AddDomainConfig200ResponseAnyOf failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AddDomainConfigResponseAnyOf failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for AddDomainConfig200Response with anyOf schemas: AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for AddDomainConfigResponse with anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of AddDomainConfig200Response given an JSON string + * Create an instance of AddDomainConfigResponse given an JSON string * * @param jsonString JSON string - * @return An instance of AddDomainConfig200Response - * @throws IOException if the JSON string is invalid with respect to AddDomainConfig200Response + * @return An instance of AddDomainConfigResponse + * @throws IOException if the JSON string is invalid with respect to AddDomainConfigResponse */ - public static AddDomainConfig200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AddDomainConfig200Response.class); + public static AddDomainConfigResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AddDomainConfigResponse.class); } /** - * Convert an instance of AddDomainConfig200Response to an JSON string + * Convert an instance of AddDomainConfigResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/AddDomainConfig200ResponseAnyOf.java b/client/src/main/java/com/fastcomments/model/AddDomainConfigResponseAnyOf.java similarity index 79% rename from client/src/main/java/com/fastcomments/model/AddDomainConfig200ResponseAnyOf.java rename to client/src/main/java/com/fastcomments/model/AddDomainConfigResponseAnyOf.java index be6d8314..8a25a99c 100644 --- a/client/src/main/java/com/fastcomments/model/AddDomainConfig200ResponseAnyOf.java +++ b/client/src/main/java/com/fastcomments/model/AddDomainConfigResponseAnyOf.java @@ -46,10 +46,10 @@ import com.fastcomments.invoker.JSON; /** - * AddDomainConfig200ResponseAnyOf + * AddDomainConfigResponseAnyOf */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class AddDomainConfig200ResponseAnyOf { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class AddDomainConfigResponseAnyOf { public static final String SERIALIZED_NAME_CONFIGURATION = "configuration"; @SerializedName(SERIALIZED_NAME_CONFIGURATION) @javax.annotation.Nullable @@ -60,10 +60,10 @@ public class AddDomainConfig200ResponseAnyOf { @javax.annotation.Nullable private Object status = null; - public AddDomainConfig200ResponseAnyOf() { + public AddDomainConfigResponseAnyOf() { } - public AddDomainConfig200ResponseAnyOf _configuration(@javax.annotation.Nullable Object _configuration) { + public AddDomainConfigResponseAnyOf _configuration(@javax.annotation.Nullable Object _configuration) { this._configuration = _configuration; return this; } @@ -82,7 +82,7 @@ public void setConfiguration(@javax.annotation.Nullable Object _configuration) { } - public AddDomainConfig200ResponseAnyOf status(@javax.annotation.Nullable Object status) { + public AddDomainConfigResponseAnyOf status(@javax.annotation.Nullable Object status) { this.status = status; return this; } @@ -113,9 +113,9 @@ public void setStatus(@javax.annotation.Nullable Object status) { * * @param key name of the property * @param value value of the property - * @return the AddDomainConfig200ResponseAnyOf instance itself + * @return the AddDomainConfigResponseAnyOf instance itself */ - public AddDomainConfig200ResponseAnyOf putAdditionalProperty(String key, Object value) { + public AddDomainConfigResponseAnyOf putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -154,10 +154,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddDomainConfig200ResponseAnyOf addDomainConfig200ResponseAnyOf = (AddDomainConfig200ResponseAnyOf) o; - return Objects.equals(this._configuration, addDomainConfig200ResponseAnyOf._configuration) && - Objects.equals(this.status, addDomainConfig200ResponseAnyOf.status)&& - Objects.equals(this.additionalProperties, addDomainConfig200ResponseAnyOf.additionalProperties); + AddDomainConfigResponseAnyOf addDomainConfigResponseAnyOf = (AddDomainConfigResponseAnyOf) o; + return Objects.equals(this._configuration, addDomainConfigResponseAnyOf._configuration) && + Objects.equals(this.status, addDomainConfigResponseAnyOf.status)&& + Objects.equals(this.additionalProperties, addDomainConfigResponseAnyOf.additionalProperties); } @Override @@ -168,7 +168,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AddDomainConfig200ResponseAnyOf {\n"); + sb.append("class AddDomainConfigResponseAnyOf {\n"); sb.append(" _configuration: ").append(toIndentedString(_configuration)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -181,10 +181,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -203,17 +200,17 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddDomainConfig200ResponseAnyOf + * @throws IOException if the JSON Element is invalid with respect to AddDomainConfigResponseAnyOf */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!AddDomainConfig200ResponseAnyOf.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in AddDomainConfig200ResponseAnyOf is not found in the empty JSON string", AddDomainConfig200ResponseAnyOf.openapiRequiredFields.toString())); + if (!AddDomainConfigResponseAnyOf.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in AddDomainConfigResponseAnyOf is not found in the empty JSON string", AddDomainConfigResponseAnyOf.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDomainConfig200ResponseAnyOf.openapiRequiredFields) { + for (String requiredField : AddDomainConfigResponseAnyOf.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -225,16 +222,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDomainConfig200ResponseAnyOf.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDomainConfig200ResponseAnyOf' and its subtypes + if (!AddDomainConfigResponseAnyOf.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDomainConfigResponseAnyOf' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDomainConfig200ResponseAnyOf.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDomainConfigResponseAnyOf.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, AddDomainConfig200ResponseAnyOf value) throws IOException { + public void write(JsonWriter out, AddDomainConfigResponseAnyOf value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -262,12 +259,12 @@ else if (entry.getValue() instanceof Character) } @Override - public AddDomainConfig200ResponseAnyOf read(JsonReader in) throws IOException { + public AddDomainConfigResponseAnyOf read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance - AddDomainConfig200ResponseAnyOf instance = thisAdapter.fromJsonTree(jsonObj); + AddDomainConfigResponseAnyOf instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -294,18 +291,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of AddDomainConfig200ResponseAnyOf given an JSON string + * Create an instance of AddDomainConfigResponseAnyOf given an JSON string * * @param jsonString JSON string - * @return An instance of AddDomainConfig200ResponseAnyOf - * @throws IOException if the JSON string is invalid with respect to AddDomainConfig200ResponseAnyOf + * @return An instance of AddDomainConfigResponseAnyOf + * @throws IOException if the JSON string is invalid with respect to AddDomainConfigResponseAnyOf */ - public static AddDomainConfig200ResponseAnyOf fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AddDomainConfig200ResponseAnyOf.class); + public static AddDomainConfigResponseAnyOf fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AddDomainConfigResponseAnyOf.class); } /** - * Convert an instance of AddDomainConfig200ResponseAnyOf to an JSON string + * Convert an instance of AddDomainConfigResponseAnyOf to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/AddHashTagsBulk200Response.java b/client/src/main/java/com/fastcomments/model/AddHashTagsBulk200Response.java deleted file mode 100644 index 2090de1b..00000000 --- a/client/src/main/java/com/fastcomments/model/AddHashTagsBulk200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.AddHashTag200Response; -import com.fastcomments.model.BulkCreateHashTagsResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class AddHashTagsBulk200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AddHashTagsBulk200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddHashTagsBulk200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddHashTagsBulk200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterBulkCreateHashTagsResponse = gson.getDelegateAdapter(this, TypeToken.get(BulkCreateHashTagsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddHashTagsBulk200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `BulkCreateHashTagsResponse` - if (value.getActualInstance() instanceof BulkCreateHashTagsResponse) { - JsonElement element = adapterBulkCreateHashTagsResponse.toJsonTree((BulkCreateHashTagsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, BulkCreateHashTagsResponse"); - } - - @Override - public AddHashTagsBulk200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize BulkCreateHashTagsResponse - try { - // validate the JSON object to see if any exception is thrown - BulkCreateHashTagsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterBulkCreateHashTagsResponse; - AddHashTagsBulk200Response ret = new AddHashTagsBulk200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for BulkCreateHashTagsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'BulkCreateHashTagsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - AddHashTagsBulk200Response ret = new AddHashTagsBulk200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for AddHashTagsBulk200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public AddHashTagsBulk200Response() { - super("anyOf", Boolean.FALSE); - } - - public AddHashTagsBulk200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("BulkCreateHashTagsResponse", BulkCreateHashTagsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return AddHashTagsBulk200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, BulkCreateHashTagsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof BulkCreateHashTagsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, BulkCreateHashTagsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, BulkCreateHashTagsResponse - * - * @return The actual instance (APIError, BulkCreateHashTagsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `BulkCreateHashTagsResponse`. If the actual instance is not `BulkCreateHashTagsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BulkCreateHashTagsResponse` - * @throws ClassCastException if the instance is not `BulkCreateHashTagsResponse` - */ - public BulkCreateHashTagsResponse getBulkCreateHashTagsResponse() throws ClassCastException { - return (BulkCreateHashTagsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddHashTagsBulk200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with BulkCreateHashTagsResponse - try { - BulkCreateHashTagsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for BulkCreateHashTagsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for AddHashTagsBulk200Response with anyOf schemas: APIError, BulkCreateHashTagsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of AddHashTagsBulk200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of AddHashTagsBulk200Response - * @throws IOException if the JSON string is invalid with respect to AddHashTagsBulk200Response - */ - public static AddHashTagsBulk200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AddHashTagsBulk200Response.class); - } - - /** - * Convert an instance of AddHashTagsBulk200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/AddPageAPIResponse.java b/client/src/main/java/com/fastcomments/model/AddPageAPIResponse.java index ef889448..47020878 100644 --- a/client/src/main/java/com/fastcomments/model/AddPageAPIResponse.java +++ b/client/src/main/java/com/fastcomments/model/AddPageAPIResponse.java @@ -49,7 +49,7 @@ /** * AddPageAPIResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class AddPageAPIResponse { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -234,10 +234,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/AddSSOUserAPIResponse.java b/client/src/main/java/com/fastcomments/model/AddSSOUserAPIResponse.java index f839abaa..7418d487 100644 --- a/client/src/main/java/com/fastcomments/model/AddSSOUserAPIResponse.java +++ b/client/src/main/java/com/fastcomments/model/AddSSOUserAPIResponse.java @@ -49,7 +49,7 @@ /** * AddSSOUserAPIResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class AddSSOUserAPIResponse { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -234,10 +234,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/AdjustCommentVotesParams.java b/client/src/main/java/com/fastcomments/model/AdjustCommentVotesParams.java new file mode 100644 index 00000000..d395f4fb --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/AdjustCommentVotesParams.java @@ -0,0 +1,206 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * AdjustCommentVotesParams + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class AdjustCommentVotesParams { + public static final String SERIALIZED_NAME_ADJUST_VOTE_AMOUNT = "adjustVoteAmount"; + @SerializedName(SERIALIZED_NAME_ADJUST_VOTE_AMOUNT) + @javax.annotation.Nonnull + private Double adjustVoteAmount; + + public AdjustCommentVotesParams() { + } + + public AdjustCommentVotesParams adjustVoteAmount(@javax.annotation.Nonnull Double adjustVoteAmount) { + this.adjustVoteAmount = adjustVoteAmount; + return this; + } + + /** + * Get adjustVoteAmount + * @return adjustVoteAmount + */ + @javax.annotation.Nonnull + public Double getAdjustVoteAmount() { + return adjustVoteAmount; + } + + public void setAdjustVoteAmount(@javax.annotation.Nonnull Double adjustVoteAmount) { + this.adjustVoteAmount = adjustVoteAmount; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AdjustCommentVotesParams adjustCommentVotesParams = (AdjustCommentVotesParams) o; + return Objects.equals(this.adjustVoteAmount, adjustCommentVotesParams.adjustVoteAmount); + } + + @Override + public int hashCode() { + return Objects.hash(adjustVoteAmount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AdjustCommentVotesParams {\n"); + sb.append(" adjustVoteAmount: ").append(toIndentedString(adjustVoteAmount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("adjustVoteAmount")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("adjustVoteAmount")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AdjustCommentVotesParams + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AdjustCommentVotesParams.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in AdjustCommentVotesParams is not found in the empty JSON string", AdjustCommentVotesParams.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AdjustCommentVotesParams.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AdjustCommentVotesParams` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AdjustCommentVotesParams.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AdjustCommentVotesParams.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AdjustCommentVotesParams' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AdjustCommentVotesParams.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AdjustCommentVotesParams value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AdjustCommentVotesParams read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AdjustCommentVotesParams given an JSON string + * + * @param jsonString JSON string + * @return An instance of AdjustCommentVotesParams + * @throws IOException if the JSON string is invalid with respect to AdjustCommentVotesParams + */ + public static AdjustCommentVotesParams fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AdjustCommentVotesParams.class); + } + + /** + * Convert an instance of AdjustCommentVotesParams to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/AdjustVotesResponse.java b/client/src/main/java/com/fastcomments/model/AdjustVotesResponse.java new file mode 100644 index 00000000..ccd28e08 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/AdjustVotesResponse.java @@ -0,0 +1,235 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * AdjustVotesResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class AdjustVotesResponse { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private String status; + + public static final String SERIALIZED_NAME_NEW_COMMENT_VOTES = "newCommentVotes"; + @SerializedName(SERIALIZED_NAME_NEW_COMMENT_VOTES) + @javax.annotation.Nonnull + private Integer newCommentVotes; + + public AdjustVotesResponse() { + } + + public AdjustVotesResponse status(@javax.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public String getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull String status) { + this.status = status; + } + + + public AdjustVotesResponse newCommentVotes(@javax.annotation.Nonnull Integer newCommentVotes) { + this.newCommentVotes = newCommentVotes; + return this; + } + + /** + * Get newCommentVotes + * @return newCommentVotes + */ + @javax.annotation.Nonnull + public Integer getNewCommentVotes() { + return newCommentVotes; + } + + public void setNewCommentVotes(@javax.annotation.Nonnull Integer newCommentVotes) { + this.newCommentVotes = newCommentVotes; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AdjustVotesResponse adjustVotesResponse = (AdjustVotesResponse) o; + return Objects.equals(this.status, adjustVotesResponse.status) && + Objects.equals(this.newCommentVotes, adjustVotesResponse.newCommentVotes); + } + + @Override + public int hashCode() { + return Objects.hash(status, newCommentVotes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AdjustVotesResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" newCommentVotes: ").append(toIndentedString(newCommentVotes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("status", "newCommentVotes")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status", "newCommentVotes")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AdjustVotesResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AdjustVotesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in AdjustVotesResponse is not found in the empty JSON string", AdjustVotesResponse.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AdjustVotesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AdjustVotesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AdjustVotesResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AdjustVotesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AdjustVotesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AdjustVotesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AdjustVotesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AdjustVotesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AdjustVotesResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of AdjustVotesResponse + * @throws IOException if the JSON string is invalid with respect to AdjustVotesResponse + */ + public static AdjustVotesResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AdjustVotesResponse.class); + } + + /** + * Convert an instance of AdjustVotesResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/AggregateQuestionResults200Response.java b/client/src/main/java/com/fastcomments/model/AggregateQuestionResults200Response.java deleted file mode 100644 index 3788af86..00000000 --- a/client/src/main/java/com/fastcomments/model/AggregateQuestionResults200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.AggregateQuestionResultsResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.QuestionResultAggregationOverall; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class AggregateQuestionResults200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AggregateQuestionResults200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AggregateQuestionResults200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AggregateQuestionResults200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAggregateQuestionResultsResponse = gson.getDelegateAdapter(this, TypeToken.get(AggregateQuestionResultsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AggregateQuestionResults200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `AggregateQuestionResultsResponse` - if (value.getActualInstance() instanceof AggregateQuestionResultsResponse) { - JsonElement element = adapterAggregateQuestionResultsResponse.toJsonTree((AggregateQuestionResultsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, AggregateQuestionResultsResponse"); - } - - @Override - public AggregateQuestionResults200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize AggregateQuestionResultsResponse - try { - // validate the JSON object to see if any exception is thrown - AggregateQuestionResultsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAggregateQuestionResultsResponse; - AggregateQuestionResults200Response ret = new AggregateQuestionResults200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AggregateQuestionResultsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'AggregateQuestionResultsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - AggregateQuestionResults200Response ret = new AggregateQuestionResults200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for AggregateQuestionResults200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public AggregateQuestionResults200Response() { - super("anyOf", Boolean.FALSE); - } - - public AggregateQuestionResults200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AggregateQuestionResultsResponse", AggregateQuestionResultsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return AggregateQuestionResults200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, AggregateQuestionResultsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof AggregateQuestionResultsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, AggregateQuestionResultsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, AggregateQuestionResultsResponse - * - * @return The actual instance (APIError, AggregateQuestionResultsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AggregateQuestionResultsResponse`. If the actual instance is not `AggregateQuestionResultsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AggregateQuestionResultsResponse` - * @throws ClassCastException if the instance is not `AggregateQuestionResultsResponse` - */ - public AggregateQuestionResultsResponse getAggregateQuestionResultsResponse() throws ClassCastException { - return (AggregateQuestionResultsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AggregateQuestionResults200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with AggregateQuestionResultsResponse - try { - AggregateQuestionResultsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AggregateQuestionResultsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for AggregateQuestionResults200Response with anyOf schemas: APIError, AggregateQuestionResultsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of AggregateQuestionResults200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of AggregateQuestionResults200Response - * @throws IOException if the JSON string is invalid with respect to AggregateQuestionResults200Response - */ - public static AggregateQuestionResults200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AggregateQuestionResults200Response.class); - } - - /** - * Convert an instance of AggregateQuestionResults200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/AggregateQuestionResultsResponse.java b/client/src/main/java/com/fastcomments/model/AggregateQuestionResultsResponse.java index d5bf0926..f2e1a7a0 100644 --- a/client/src/main/java/com/fastcomments/model/AggregateQuestionResultsResponse.java +++ b/client/src/main/java/com/fastcomments/model/AggregateQuestionResultsResponse.java @@ -50,7 +50,7 @@ /** * AggregateQuestionResultsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class AggregateQuestionResultsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetTenantUsers200Response.java b/client/src/main/java/com/fastcomments/model/AggregateResponse.java similarity index 57% rename from client/src/main/java/com/fastcomments/model/GetTenantUsers200Response.java rename to client/src/main/java/com/fastcomments/model/AggregateResponse.java index 4074025f..9808a3e6 100644 --- a/client/src/main/java/com/fastcomments/model/GetTenantUsers200Response.java +++ b/client/src/main/java/com/fastcomments/model/AggregateResponse.java @@ -14,11 +14,11 @@ package com.fastcomments.model; import java.util.Objects; -import com.fastcomments.model.APIError; import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTenantUsersResponse; -import com.fastcomments.model.User; +import com.fastcomments.model.AggregationAPIError; +import com.fastcomments.model.AggregationItem; +import com.fastcomments.model.AggregationResponse; +import com.fastcomments.model.AggregationResponseStats; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -64,80 +64,80 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetTenantUsers200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTenantUsers200Response.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class AggregateResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(AggregateResponse.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTenantUsers200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTenantUsers200Response' and its subtypes + if (!AggregateResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AggregateResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetTenantUsersResponse = gson.getDelegateAdapter(this, TypeToken.get(GetTenantUsersResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + final TypeAdapter adapterAggregationResponse = gson.getDelegateAdapter(this, TypeToken.get(AggregationResponse.class)); + final TypeAdapter adapterAggregationAPIError = gson.getDelegateAdapter(this, TypeToken.get(AggregationAPIError.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, GetTenantUsers200Response value) throws IOException { + public void write(JsonWriter out, AggregateResponse value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; } - // check if the actual instance is of the type `GetTenantUsersResponse` - if (value.getActualInstance() instanceof GetTenantUsersResponse) { - JsonElement element = adapterGetTenantUsersResponse.toJsonTree((GetTenantUsersResponse)value.getActualInstance()); + // check if the actual instance is of the type `AggregationResponse` + if (value.getActualInstance() instanceof AggregationResponse) { + JsonElement element = adapterAggregationResponse.toJsonTree((AggregationResponse)value.getActualInstance()); elementAdapter.write(out, element); return; } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); + // check if the actual instance is of the type `AggregationAPIError` + if (value.getActualInstance() instanceof AggregationAPIError) { + JsonElement element = adapterAggregationAPIError.toJsonTree((AggregationAPIError)value.getActualInstance()); elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetTenantUsersResponse"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: AggregationAPIError, AggregationResponse"); } @Override - public GetTenantUsers200Response read(JsonReader in) throws IOException { + public AggregateResponse read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); ArrayList errorMessages = new ArrayList<>(); TypeAdapter actualAdapter = elementAdapter; - // deserialize GetTenantUsersResponse + // deserialize AggregationResponse try { // validate the JSON object to see if any exception is thrown - GetTenantUsersResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetTenantUsersResponse; - GetTenantUsers200Response ret = new GetTenantUsers200Response(); + AggregationResponse.validateJsonElement(jsonElement); + actualAdapter = adapterAggregationResponse; + AggregateResponse ret = new AggregateResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantUsersResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetTenantUsersResponse'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AggregationResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AggregationResponse'", e); } - // deserialize APIError + // deserialize AggregationAPIError try { // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetTenantUsers200Response ret = new GetTenantUsers200Response(); + AggregationAPIError.validateJsonElement(jsonElement); + actualAdapter = adapterAggregationAPIError; + AggregateResponse ret = new AggregateResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AggregationAPIError failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AggregationAPIError'", e); } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetTenantUsers200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for AggregateResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -146,52 +146,52 @@ public GetTenantUsers200Response read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public GetTenantUsers200Response() { + public AggregateResponse() { super("anyOf", Boolean.FALSE); } - public GetTenantUsers200Response(Object o) { + public AggregateResponse(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("GetTenantUsersResponse", GetTenantUsersResponse.class); - schemas.put("APIError", APIError.class); + schemas.put("AggregationResponse", AggregationResponse.class); + schemas.put("AggregationAPIError", AggregationAPIError.class); } @Override public Map> getSchemas() { - return GetTenantUsers200Response.schemas; + return AggregateResponse.schemas; } /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * APIError, GetTenantUsersResponse + * AggregationAPIError, AggregationResponse * * It could be an instance of the 'anyOf' schemas. */ @Override public void setActualInstance(Object instance) { - if (instance instanceof GetTenantUsersResponse) { + if (instance instanceof AggregationResponse) { super.setActualInstance(instance); return; } - if (instance instanceof APIError) { + if (instance instanceof AggregationAPIError) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be APIError, GetTenantUsersResponse"); + throw new RuntimeException("Invalid instance type. Must be AggregationAPIError, AggregationResponse"); } /** * Get the actual instance, which can be the following: - * APIError, GetTenantUsersResponse + * AggregationAPIError, AggregationResponse * - * @return The actual instance (APIError, GetTenantUsersResponse) + * @return The actual instance (AggregationAPIError, AggregationResponse) */ @SuppressWarnings("unchecked") @Override @@ -200,68 +200,68 @@ public Object getActualInstance() { } /** - * Get the actual instance of `GetTenantUsersResponse`. If the actual instance is not `GetTenantUsersResponse`, + * Get the actual instance of `AggregationResponse`. If the actual instance is not `AggregationResponse`, * the ClassCastException will be thrown. * - * @return The actual instance of `GetTenantUsersResponse` - * @throws ClassCastException if the instance is not `GetTenantUsersResponse` + * @return The actual instance of `AggregationResponse` + * @throws ClassCastException if the instance is not `AggregationResponse` */ - public GetTenantUsersResponse getGetTenantUsersResponse() throws ClassCastException { - return (GetTenantUsersResponse)super.getActualInstance(); + public AggregationResponse getAggregationResponse() throws ClassCastException { + return (AggregationResponse)super.getActualInstance(); } /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, + * Get the actual instance of `AggregationAPIError`. If the actual instance is not `AggregationAPIError`, * the ClassCastException will be thrown. * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` + * @return The actual instance of `AggregationAPIError` + * @throws ClassCastException if the instance is not `AggregationAPIError` */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); + public AggregationAPIError getAggregationAPIError() throws ClassCastException { + return (AggregationAPIError)super.getActualInstance(); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetTenantUsers200Response + * @throws IOException if the JSON Element is invalid with respect to AggregateResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetTenantUsersResponse + // validate the json string with AggregationResponse try { - GetTenantUsersResponse.validateJsonElement(jsonElement); + AggregationResponse.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantUsersResponse failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AggregationResponse failed with `%s`.", e.getMessage())); // continue to the next one } - // validate the json string with APIError + // validate the json string with AggregationAPIError try { - APIError.validateJsonElement(jsonElement); + AggregationAPIError.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AggregationAPIError failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetTenantUsers200Response with anyOf schemas: APIError, GetTenantUsersResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for AggregateResponse with anyOf schemas: AggregationAPIError, AggregationResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of GetTenantUsers200Response given an JSON string + * Create an instance of AggregateResponse given an JSON string * * @param jsonString JSON string - * @return An instance of GetTenantUsers200Response - * @throws IOException if the JSON string is invalid with respect to GetTenantUsers200Response + * @return An instance of AggregateResponse + * @throws IOException if the JSON string is invalid with respect to AggregateResponse */ - public static GetTenantUsers200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTenantUsers200Response.class); + public static AggregateResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AggregateResponse.class); } /** - * Convert an instance of GetTenantUsers200Response to an JSON string + * Convert an instance of AggregateResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/AggregationAPIError.java b/client/src/main/java/com/fastcomments/model/AggregationAPIError.java new file mode 100644 index 00000000..69a46b3b --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/AggregationAPIError.java @@ -0,0 +1,307 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * AggregationAPIError + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class AggregationAPIError { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + @javax.annotation.Nonnull + private String reason; + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nonnull + private String code; + + public static final String SERIALIZED_NAME_VALID_RESOURCE_NAMES = "validResourceNames"; + @SerializedName(SERIALIZED_NAME_VALID_RESOURCE_NAMES) + @javax.annotation.Nullable + private List validResourceNames = new ArrayList<>(); + + public AggregationAPIError() { + } + + public AggregationAPIError status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + + public AggregationAPIError reason(@javax.annotation.Nonnull String reason) { + this.reason = reason; + return this; + } + + /** + * Get reason + * @return reason + */ + @javax.annotation.Nonnull + public String getReason() { + return reason; + } + + public void setReason(@javax.annotation.Nonnull String reason) { + this.reason = reason; + } + + + public AggregationAPIError code(@javax.annotation.Nonnull String code) { + this.code = code; + return this; + } + + /** + * Get code + * @return code + */ + @javax.annotation.Nonnull + public String getCode() { + return code; + } + + public void setCode(@javax.annotation.Nonnull String code) { + this.code = code; + } + + + public AggregationAPIError validResourceNames(@javax.annotation.Nullable List validResourceNames) { + this.validResourceNames = validResourceNames; + return this; + } + + public AggregationAPIError addValidResourceNamesItem(String validResourceNamesItem) { + if (this.validResourceNames == null) { + this.validResourceNames = new ArrayList<>(); + } + this.validResourceNames.add(validResourceNamesItem); + return this; + } + + /** + * Get validResourceNames + * @return validResourceNames + */ + @javax.annotation.Nullable + public List getValidResourceNames() { + return validResourceNames; + } + + public void setValidResourceNames(@javax.annotation.Nullable List validResourceNames) { + this.validResourceNames = validResourceNames; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AggregationAPIError aggregationAPIError = (AggregationAPIError) o; + return Objects.equals(this.status, aggregationAPIError.status) && + Objects.equals(this.reason, aggregationAPIError.reason) && + Objects.equals(this.code, aggregationAPIError.code) && + Objects.equals(this.validResourceNames, aggregationAPIError.validResourceNames); + } + + @Override + public int hashCode() { + return Objects.hash(status, reason, code, validResourceNames); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AggregationAPIError {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" validResourceNames: ").append(toIndentedString(validResourceNames)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("status", "reason", "code", "validResourceNames")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status", "reason", "code")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AggregationAPIError + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AggregationAPIError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in AggregationAPIError is not found in the empty JSON string", AggregationAPIError.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AggregationAPIError.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AggregationAPIError` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AggregationAPIError.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + if (!jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("validResourceNames") != null && !jsonObj.get("validResourceNames").isJsonNull() && !jsonObj.get("validResourceNames").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `validResourceNames` to be an array in the JSON string but got `%s`", jsonObj.get("validResourceNames").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AggregationAPIError.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AggregationAPIError' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AggregationAPIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AggregationAPIError value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AggregationAPIError read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AggregationAPIError given an JSON string + * + * @param jsonString JSON string + * @return An instance of AggregationAPIError + * @throws IOException if the JSON string is invalid with respect to AggregationAPIError + */ + public static AggregationAPIError fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AggregationAPIError.class); + } + + /** + * Convert an instance of AggregationAPIError to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/AggregationItem.java b/client/src/main/java/com/fastcomments/model/AggregationItem.java index 8e7600ad..eb6a67f1 100644 --- a/client/src/main/java/com/fastcomments/model/AggregationItem.java +++ b/client/src/main/java/com/fastcomments/model/AggregationItem.java @@ -51,7 +51,7 @@ /** * AggregationItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class AggregationItem { public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) @@ -166,10 +166,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/AggregationOperation.java b/client/src/main/java/com/fastcomments/model/AggregationOperation.java index 4dd5549e..ab20e4e5 100644 --- a/client/src/main/java/com/fastcomments/model/AggregationOperation.java +++ b/client/src/main/java/com/fastcomments/model/AggregationOperation.java @@ -49,7 +49,7 @@ /** * An operation that will be applied on a field */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class AggregationOperation { public static final String SERIALIZED_NAME_FIELD = "field"; @SerializedName(SERIALIZED_NAME_FIELD) @@ -188,10 +188,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/AggregationRequest.java b/client/src/main/java/com/fastcomments/model/AggregationRequest.java index 698eff82..560a0607 100644 --- a/client/src/main/java/com/fastcomments/model/AggregationRequest.java +++ b/client/src/main/java/com/fastcomments/model/AggregationRequest.java @@ -53,7 +53,7 @@ /** * The aggregation request accepts a resource, optional grouping keys, an array of operations, and an optional sort */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class AggregationRequest { public static final String SERIALIZED_NAME_QUERY = "query"; @SerializedName(SERIALIZED_NAME_QUERY) @@ -242,10 +242,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -309,16 +306,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("groupBy") != null && !jsonObj.get("groupBy").isJsonNull() && !jsonObj.get("groupBy").isJsonArray()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `groupBy` to be an array in the JSON string but got `%s`", jsonObj.get("groupBy").toString())); } - // ensure the json data is an array - if (!jsonObj.get("operations").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `operations` to be an array in the JSON string but got `%s`", jsonObj.get("operations").toString())); + if (jsonObj.get("operations") != null) { + if (!jsonObj.get("operations").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `operations` to be an array in the JSON string but got `%s`", jsonObj.get("operations").toString())); + } + JsonArray jsonArrayoperations = jsonObj.getAsJsonArray("operations"); + // validate the required field `operations` (array) + for (int i = 0; i < jsonArrayoperations.size(); i++) { + AggregationOperation.validateJsonElement(jsonArrayoperations.get(i)); + } } - - JsonArray jsonArrayoperations = jsonObj.getAsJsonArray("operations"); - // validate the required field `operations` (array) - for (int i = 0; i < jsonArrayoperations.size(); i++) { - AggregationOperation.validateJsonElement(jsonArrayoperations.get(i)); - }; // validate the optional field `sort` if (jsonObj.get("sort") != null && !jsonObj.get("sort").isJsonNull()) { AggregationRequestSort.validateJsonElement(jsonObj.get("sort")); diff --git a/client/src/main/java/com/fastcomments/model/AggregationRequestSort.java b/client/src/main/java/com/fastcomments/model/AggregationRequestSort.java index cff136a4..fa62f2e6 100644 --- a/client/src/main/java/com/fastcomments/model/AggregationRequestSort.java +++ b/client/src/main/java/com/fastcomments/model/AggregationRequestSort.java @@ -48,7 +48,7 @@ /** * AggregationRequestSort */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class AggregationRequestSort { /** * Gets or Sets dir @@ -233,10 +233,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/AggregationResponse.java b/client/src/main/java/com/fastcomments/model/AggregationResponse.java index d6ed2612..0c738003 100644 --- a/client/src/main/java/com/fastcomments/model/AggregationResponse.java +++ b/client/src/main/java/com/fastcomments/model/AggregationResponse.java @@ -53,7 +53,7 @@ /** * The API response returns the aggregated data along with simple stats */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class AggregationResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -174,10 +174,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -222,16 +219,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + if (jsonObj.get("data") != null) { + if (!jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + } + JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); + // validate the required field `data` (array) + for (int i = 0; i < jsonArraydata.size(); i++) { + AggregationItem.validateJsonElement(jsonArraydata.get(i)); + } } - - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - // validate the required field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - AggregationItem.validateJsonElement(jsonArraydata.get(i)); - }; // validate the optional field `stats` if (jsonObj.get("stats") != null && !jsonObj.get("stats").isJsonNull()) { AggregationResponseStats.validateJsonElement(jsonObj.get("stats")); diff --git a/client/src/main/java/com/fastcomments/model/AggregationResponseStats.java b/client/src/main/java/com/fastcomments/model/AggregationResponseStats.java index 96f5adda..86993f09 100644 --- a/client/src/main/java/com/fastcomments/model/AggregationResponseStats.java +++ b/client/src/main/java/com/fastcomments/model/AggregationResponseStats.java @@ -48,7 +48,7 @@ /** * AggregationResponseStats */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class AggregationResponseStats { public static final String SERIALIZED_NAME_TIME_M_S = "timeMS"; @SerializedName(SERIALIZED_NAME_TIME_M_S) @@ -181,10 +181,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/AggregationValue.java b/client/src/main/java/com/fastcomments/model/AggregationValue.java index ae3e3e17..96f6ebc4 100644 --- a/client/src/main/java/com/fastcomments/model/AggregationValue.java +++ b/client/src/main/java/com/fastcomments/model/AggregationValue.java @@ -50,7 +50,7 @@ /** * AggregationValue */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class AggregationValue { public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) @@ -277,10 +277,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/AwardUserBadgeResponse.java b/client/src/main/java/com/fastcomments/model/AwardUserBadgeResponse.java new file mode 100644 index 00000000..8fdd1f6d --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/AwardUserBadgeResponse.java @@ -0,0 +1,379 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CommentUserBadgeInfo; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * AwardUserBadgeResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class AwardUserBadgeResponse { + public static final String SERIALIZED_NAME_NOTES = "notes"; + @SerializedName(SERIALIZED_NAME_NOTES) + @javax.annotation.Nullable + private List notes = new ArrayList<>(); + + public static final String SERIALIZED_NAME_BADGES = "badges"; + @SerializedName(SERIALIZED_NAME_BADGES) + @javax.annotation.Nullable + private List badges = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public AwardUserBadgeResponse() { + } + + public AwardUserBadgeResponse notes(@javax.annotation.Nullable List notes) { + this.notes = notes; + return this; + } + + public AwardUserBadgeResponse addNotesItem(String notesItem) { + if (this.notes == null) { + this.notes = new ArrayList<>(); + } + this.notes.add(notesItem); + return this; + } + + /** + * Get notes + * @return notes + */ + @javax.annotation.Nullable + public List getNotes() { + return notes; + } + + public void setNotes(@javax.annotation.Nullable List notes) { + this.notes = notes; + } + + + public AwardUserBadgeResponse badges(@javax.annotation.Nullable List badges) { + this.badges = badges; + return this; + } + + public AwardUserBadgeResponse addBadgesItem(CommentUserBadgeInfo badgesItem) { + if (this.badges == null) { + this.badges = new ArrayList<>(); + } + this.badges.add(badgesItem); + return this; + } + + /** + * Get badges + * @return badges + */ + @javax.annotation.Nullable + public List getBadges() { + return badges; + } + + public void setBadges(@javax.annotation.Nullable List badges) { + this.badges = badges; + } + + + public AwardUserBadgeResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AwardUserBadgeResponse instance itself + */ + public AwardUserBadgeResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AwardUserBadgeResponse awardUserBadgeResponse = (AwardUserBadgeResponse) o; + return Objects.equals(this.notes, awardUserBadgeResponse.notes) && + Objects.equals(this.badges, awardUserBadgeResponse.badges) && + Objects.equals(this.status, awardUserBadgeResponse.status)&& + Objects.equals(this.additionalProperties, awardUserBadgeResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(notes, badges, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AwardUserBadgeResponse {\n"); + sb.append(" notes: ").append(toIndentedString(notes)).append("\n"); + sb.append(" badges: ").append(toIndentedString(badges)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("notes", "badges", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AwardUserBadgeResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AwardUserBadgeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in AwardUserBadgeResponse is not found in the empty JSON string", AwardUserBadgeResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AwardUserBadgeResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("notes") != null && !jsonObj.get("notes").isJsonNull() && !jsonObj.get("notes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `notes` to be an array in the JSON string but got `%s`", jsonObj.get("notes").toString())); + } + if (jsonObj.get("badges") != null && !jsonObj.get("badges").isJsonNull()) { + JsonArray jsonArraybadges = jsonObj.getAsJsonArray("badges"); + if (jsonArraybadges != null) { + // ensure the json data is an array + if (!jsonObj.get("badges").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `badges` to be an array in the JSON string but got `%s`", jsonObj.get("badges").toString())); + } + + // validate the optional field `badges` (array) + for (int i = 0; i < jsonArraybadges.size(); i++) { + CommentUserBadgeInfo.validateJsonElement(jsonArraybadges.get(i)); + }; + } + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AwardUserBadgeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AwardUserBadgeResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AwardUserBadgeResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AwardUserBadgeResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AwardUserBadgeResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + AwardUserBadgeResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AwardUserBadgeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of AwardUserBadgeResponse + * @throws IOException if the JSON string is invalid with respect to AwardUserBadgeResponse + */ + public static AwardUserBadgeResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AwardUserBadgeResponse.class); + } + + /** + * Convert an instance of AwardUserBadgeResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/BanUserFromCommentResult.java b/client/src/main/java/com/fastcomments/model/BanUserFromCommentResult.java new file mode 100644 index 00000000..cb879af0 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/BanUserFromCommentResult.java @@ -0,0 +1,298 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIBanUserChangeLog; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * BanUserFromCommentResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class BanUserFromCommentResult { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private String status; + + public static final String SERIALIZED_NAME_CHANGELOG = "changelog"; + @SerializedName(SERIALIZED_NAME_CHANGELOG) + @javax.annotation.Nullable + private APIBanUserChangeLog changelog; + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable + private String code; + + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + @javax.annotation.Nullable + private String reason; + + public BanUserFromCommentResult() { + } + + public BanUserFromCommentResult status(@javax.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public String getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull String status) { + this.status = status; + } + + + public BanUserFromCommentResult changelog(@javax.annotation.Nullable APIBanUserChangeLog changelog) { + this.changelog = changelog; + return this; + } + + /** + * Get changelog + * @return changelog + */ + @javax.annotation.Nullable + public APIBanUserChangeLog getChangelog() { + return changelog; + } + + public void setChangelog(@javax.annotation.Nullable APIBanUserChangeLog changelog) { + this.changelog = changelog; + } + + + public BanUserFromCommentResult code(@javax.annotation.Nullable String code) { + this.code = code; + return this; + } + + /** + * Get code + * @return code + */ + @javax.annotation.Nullable + public String getCode() { + return code; + } + + public void setCode(@javax.annotation.Nullable String code) { + this.code = code; + } + + + public BanUserFromCommentResult reason(@javax.annotation.Nullable String reason) { + this.reason = reason; + return this; + } + + /** + * Get reason + * @return reason + */ + @javax.annotation.Nullable + public String getReason() { + return reason; + } + + public void setReason(@javax.annotation.Nullable String reason) { + this.reason = reason; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BanUserFromCommentResult banUserFromCommentResult = (BanUserFromCommentResult) o; + return Objects.equals(this.status, banUserFromCommentResult.status) && + Objects.equals(this.changelog, banUserFromCommentResult.changelog) && + Objects.equals(this.code, banUserFromCommentResult.code) && + Objects.equals(this.reason, banUserFromCommentResult.reason); + } + + @Override + public int hashCode() { + return Objects.hash(status, changelog, code, reason); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BanUserFromCommentResult {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" changelog: ").append(toIndentedString(changelog)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("status", "changelog", "code", "reason")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to BanUserFromCommentResult + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!BanUserFromCommentResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in BanUserFromCommentResult is not found in the empty JSON string", BanUserFromCommentResult.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!BanUserFromCommentResult.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `BanUserFromCommentResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : BanUserFromCommentResult.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + // validate the optional field `changelog` + if (jsonObj.get("changelog") != null && !jsonObj.get("changelog").isJsonNull()) { + APIBanUserChangeLog.validateJsonElement(jsonObj.get("changelog")); + } + if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BanUserFromCommentResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BanUserFromCommentResult' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BanUserFromCommentResult.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, BanUserFromCommentResult value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public BanUserFromCommentResult read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of BanUserFromCommentResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of BanUserFromCommentResult + * @throws IOException if the JSON string is invalid with respect to BanUserFromCommentResult + */ + public static BanUserFromCommentResult fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BanUserFromCommentResult.class); + } + + /** + * Convert an instance of BanUserFromCommentResult to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/BanUserUndoParams.java b/client/src/main/java/com/fastcomments/model/BanUserUndoParams.java new file mode 100644 index 00000000..ae040e0c --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/BanUserUndoParams.java @@ -0,0 +1,209 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIBanUserChangeLog; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * BanUserUndoParams + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class BanUserUndoParams { + public static final String SERIALIZED_NAME_CHANGELOG = "changelog"; + @SerializedName(SERIALIZED_NAME_CHANGELOG) + @javax.annotation.Nonnull + private APIBanUserChangeLog changelog; + + public BanUserUndoParams() { + } + + public BanUserUndoParams changelog(@javax.annotation.Nonnull APIBanUserChangeLog changelog) { + this.changelog = changelog; + return this; + } + + /** + * Get changelog + * @return changelog + */ + @javax.annotation.Nonnull + public APIBanUserChangeLog getChangelog() { + return changelog; + } + + public void setChangelog(@javax.annotation.Nonnull APIBanUserChangeLog changelog) { + this.changelog = changelog; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BanUserUndoParams banUserUndoParams = (BanUserUndoParams) o; + return Objects.equals(this.changelog, banUserUndoParams.changelog); + } + + @Override + public int hashCode() { + return Objects.hash(changelog); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BanUserUndoParams {\n"); + sb.append(" changelog: ").append(toIndentedString(changelog)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("changelog")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("changelog")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to BanUserUndoParams + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!BanUserUndoParams.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in BanUserUndoParams is not found in the empty JSON string", BanUserUndoParams.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!BanUserUndoParams.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `BanUserUndoParams` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : BanUserUndoParams.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `changelog` + APIBanUserChangeLog.validateJsonElement(jsonObj.get("changelog")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BanUserUndoParams.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BanUserUndoParams' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BanUserUndoParams.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, BanUserUndoParams value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public BanUserUndoParams read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of BanUserUndoParams given an JSON string + * + * @param jsonString JSON string + * @return An instance of BanUserUndoParams + * @throws IOException if the JSON string is invalid with respect to BanUserUndoParams + */ + public static BanUserUndoParams fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BanUserUndoParams.class); + } + + /** + * Convert an instance of BanUserUndoParams to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/BannedUserMatch.java b/client/src/main/java/com/fastcomments/model/BannedUserMatch.java new file mode 100644 index 00000000..7d5abcec --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/BannedUserMatch.java @@ -0,0 +1,240 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.BannedUserMatchMatchedOnValue; +import com.fastcomments.model.BannedUserMatchType; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * BannedUserMatch + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class BannedUserMatch { + public static final String SERIALIZED_NAME_MATCHED_ON = "matchedOn"; + @SerializedName(SERIALIZED_NAME_MATCHED_ON) + @javax.annotation.Nonnull + private BannedUserMatchType matchedOn; + + public static final String SERIALIZED_NAME_MATCHED_ON_VALUE = "matchedOnValue"; + @SerializedName(SERIALIZED_NAME_MATCHED_ON_VALUE) + @javax.annotation.Nullable + private BannedUserMatchMatchedOnValue matchedOnValue; + + public BannedUserMatch() { + } + + public BannedUserMatch matchedOn(@javax.annotation.Nonnull BannedUserMatchType matchedOn) { + this.matchedOn = matchedOn; + return this; + } + + /** + * Get matchedOn + * @return matchedOn + */ + @javax.annotation.Nonnull + public BannedUserMatchType getMatchedOn() { + return matchedOn; + } + + public void setMatchedOn(@javax.annotation.Nonnull BannedUserMatchType matchedOn) { + this.matchedOn = matchedOn; + } + + + public BannedUserMatch matchedOnValue(@javax.annotation.Nullable BannedUserMatchMatchedOnValue matchedOnValue) { + this.matchedOnValue = matchedOnValue; + return this; + } + + /** + * Get matchedOnValue + * @return matchedOnValue + */ + @javax.annotation.Nullable + public BannedUserMatchMatchedOnValue getMatchedOnValue() { + return matchedOnValue; + } + + public void setMatchedOnValue(@javax.annotation.Nullable BannedUserMatchMatchedOnValue matchedOnValue) { + this.matchedOnValue = matchedOnValue; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BannedUserMatch bannedUserMatch = (BannedUserMatch) o; + return Objects.equals(this.matchedOn, bannedUserMatch.matchedOn) && + Objects.equals(this.matchedOnValue, bannedUserMatch.matchedOnValue); + } + + @Override + public int hashCode() { + return Objects.hash(matchedOn, matchedOnValue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BannedUserMatch {\n"); + sb.append(" matchedOn: ").append(toIndentedString(matchedOn)).append("\n"); + sb.append(" matchedOnValue: ").append(toIndentedString(matchedOnValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("matchedOn", "matchedOnValue")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("matchedOn", "matchedOnValue")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to BannedUserMatch + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!BannedUserMatch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in BannedUserMatch is not found in the empty JSON string", BannedUserMatch.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!BannedUserMatch.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `BannedUserMatch` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : BannedUserMatch.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `matchedOn` + BannedUserMatchType.validateJsonElement(jsonObj.get("matchedOn")); + if (jsonObj.get("matchedOnValue") != null && !jsonObj.get("matchedOnValue").isJsonNull()) { + // validate the required field `matchedOnValue` + BannedUserMatchMatchedOnValue.validateJsonElement(jsonObj.get("matchedOnValue")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BannedUserMatch.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BannedUserMatch' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BannedUserMatch.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, BannedUserMatch value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public BannedUserMatch read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of BannedUserMatch given an JSON string + * + * @param jsonString JSON string + * @return An instance of BannedUserMatch + * @throws IOException if the JSON string is invalid with respect to BannedUserMatch + */ + public static BannedUserMatch fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BannedUserMatch.class); + } + + /** + * Convert an instance of BannedUserMatch to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetFeedPostsPublic200Response.java b/client/src/main/java/com/fastcomments/model/BannedUserMatchMatchedOnValue.java similarity index 52% rename from client/src/main/java/com/fastcomments/model/GetFeedPostsPublic200Response.java rename to client/src/main/java/com/fastcomments/model/BannedUserMatchMatchedOnValue.java index f994870d..b763e343 100644 --- a/client/src/main/java/com/fastcomments/model/GetFeedPostsPublic200Response.java +++ b/client/src/main/java/com/fastcomments/model/BannedUserMatchMatchedOnValue.java @@ -14,23 +14,6 @@ package com.fastcomments.model; import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FeedPost; -import com.fastcomments.model.PublicFeedPostsResponse; -import com.fastcomments.model.UserSessionInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; @@ -67,80 +50,84 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetFeedPostsPublic200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetFeedPostsPublic200Response.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class BannedUserMatchMatchedOnValue extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(BannedUserMatchMatchedOnValue.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetFeedPostsPublic200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetFeedPostsPublic200Response' and its subtypes + if (!BannedUserMatchMatchedOnValue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BannedUserMatchMatchedOnValue' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterPublicFeedPostsResponse = gson.getDelegateAdapter(this, TypeToken.get(PublicFeedPostsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + final TypeAdapter adapterString = gson.getDelegateAdapter(this, TypeToken.get(String.class)); + final TypeAdapter adapterDouble = gson.getDelegateAdapter(this, TypeToken.get(Double.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, GetFeedPostsPublic200Response value) throws IOException { + public void write(JsonWriter out, BannedUserMatchMatchedOnValue value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; } - // check if the actual instance is of the type `PublicFeedPostsResponse` - if (value.getActualInstance() instanceof PublicFeedPostsResponse) { - JsonElement element = adapterPublicFeedPostsResponse.toJsonTree((PublicFeedPostsResponse)value.getActualInstance()); - elementAdapter.write(out, element); + // check if the actual instance is of the type `String` + if (value.getActualInstance() instanceof String) { + JsonPrimitive primitive = adapterString.toJsonTree((String)value.getActualInstance()).getAsJsonPrimitive(); + elementAdapter.write(out, primitive); return; } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); + // check if the actual instance is of the type `Double` + if (value.getActualInstance() instanceof Double) { + JsonPrimitive primitive = adapterDouble.toJsonTree((Double)value.getActualInstance()).getAsJsonPrimitive(); + elementAdapter.write(out, primitive); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, PublicFeedPostsResponse"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: Double, String"); } @Override - public GetFeedPostsPublic200Response read(JsonReader in) throws IOException { + public BannedUserMatchMatchedOnValue read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); ArrayList errorMessages = new ArrayList<>(); TypeAdapter actualAdapter = elementAdapter; - // deserialize PublicFeedPostsResponse + // deserialize String try { // validate the JSON object to see if any exception is thrown - PublicFeedPostsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterPublicFeedPostsResponse; - GetFeedPostsPublic200Response ret = new GetFeedPostsPublic200Response(); + if (!jsonElement.getAsJsonPrimitive().isString()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected json element to be of type String in the JSON string but got `%s`", jsonElement.toString())); + } + actualAdapter = adapterString; + BannedUserMatchMatchedOnValue ret = new BannedUserMatchMatchedOnValue(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PublicFeedPostsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'PublicFeedPostsResponse'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for String failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'String'", e); } - // deserialize APIError + // deserialize Double try { // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetFeedPostsPublic200Response ret = new GetFeedPostsPublic200Response(); + if (!jsonElement.getAsJsonPrimitive().isNumber()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString())); + } + actualAdapter = adapterDouble; + BannedUserMatchMatchedOnValue ret = new BannedUserMatchMatchedOnValue(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for Double failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'Double'", e); } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetFeedPostsPublic200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for BannedUserMatchMatchedOnValue: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -149,52 +136,57 @@ public GetFeedPostsPublic200Response read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public GetFeedPostsPublic200Response() { - super("anyOf", Boolean.FALSE); + public BannedUserMatchMatchedOnValue() { + super("anyOf", Boolean.TRUE); } - public GetFeedPostsPublic200Response(Object o) { - super("anyOf", Boolean.FALSE); + public BannedUserMatchMatchedOnValue(Object o) { + super("anyOf", Boolean.TRUE); setActualInstance(o); } static { - schemas.put("PublicFeedPostsResponse", PublicFeedPostsResponse.class); - schemas.put("APIError", APIError.class); + schemas.put("String", String.class); + schemas.put("Double", Double.class); } @Override public Map> getSchemas() { - return GetFeedPostsPublic200Response.schemas; + return BannedUserMatchMatchedOnValue.schemas; } /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * APIError, PublicFeedPostsResponse + * Double, String * * It could be an instance of the 'anyOf' schemas. */ @Override public void setActualInstance(Object instance) { - if (instance instanceof PublicFeedPostsResponse) { + if (instance == null) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof String) { super.setActualInstance(instance); return; } - if (instance instanceof APIError) { + if (instance instanceof Double) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be APIError, PublicFeedPostsResponse"); + throw new RuntimeException("Invalid instance type. Must be Double, String"); } /** * Get the actual instance, which can be the following: - * APIError, PublicFeedPostsResponse + * Double, String * - * @return The actual instance (APIError, PublicFeedPostsResponse) + * @return The actual instance (Double, String) */ @SuppressWarnings("unchecked") @Override @@ -203,68 +195,72 @@ public Object getActualInstance() { } /** - * Get the actual instance of `PublicFeedPostsResponse`. If the actual instance is not `PublicFeedPostsResponse`, + * Get the actual instance of `String`. If the actual instance is not `String`, * the ClassCastException will be thrown. * - * @return The actual instance of `PublicFeedPostsResponse` - * @throws ClassCastException if the instance is not `PublicFeedPostsResponse` + * @return The actual instance of `String` + * @throws ClassCastException if the instance is not `String` */ - public PublicFeedPostsResponse getPublicFeedPostsResponse() throws ClassCastException { - return (PublicFeedPostsResponse)super.getActualInstance(); + public String getString() throws ClassCastException { + return (String)super.getActualInstance(); } /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, + * Get the actual instance of `Double`. If the actual instance is not `Double`, * the ClassCastException will be thrown. * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` + * @return The actual instance of `Double` + * @throws ClassCastException if the instance is not `Double` */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); + public Double getDouble() throws ClassCastException { + return (Double)super.getActualInstance(); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetFeedPostsPublic200Response + * @throws IOException if the JSON Element is invalid with respect to BannedUserMatchMatchedOnValue */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one ArrayList errorMessages = new ArrayList<>(); - // validate the json string with PublicFeedPostsResponse + // validate the json string with String try { - PublicFeedPostsResponse.validateJsonElement(jsonElement); + if (!jsonElement.getAsJsonPrimitive().isString()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected json element to be of type String in the JSON string but got `%s`", jsonElement.toString())); + } return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PublicFeedPostsResponse failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for String failed with `%s`.", e.getMessage())); // continue to the next one } - // validate the json string with APIError + // validate the json string with Double try { - APIError.validateJsonElement(jsonElement); + if (!jsonElement.getAsJsonPrimitive().isNumber()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString())); + } return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for Double failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetFeedPostsPublic200Response with anyOf schemas: APIError, PublicFeedPostsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for BannedUserMatchMatchedOnValue with anyOf schemas: Double, String. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of GetFeedPostsPublic200Response given an JSON string + * Create an instance of BannedUserMatchMatchedOnValue given an JSON string * * @param jsonString JSON string - * @return An instance of GetFeedPostsPublic200Response - * @throws IOException if the JSON string is invalid with respect to GetFeedPostsPublic200Response + * @return An instance of BannedUserMatchMatchedOnValue + * @throws IOException if the JSON string is invalid with respect to BannedUserMatchMatchedOnValue */ - public static GetFeedPostsPublic200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetFeedPostsPublic200Response.class); + public static BannedUserMatchMatchedOnValue fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BannedUserMatchMatchedOnValue.class); } /** - * Convert an instance of GetFeedPostsPublic200Response to an JSON string + * Convert an instance of BannedUserMatchMatchedOnValue to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/BannedUserMatchType.java b/client/src/main/java/com/fastcomments/model/BannedUserMatchType.java new file mode 100644 index 00000000..e704eb8b --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/BannedUserMatchType.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * Gets or Sets BannedUserMatchType + */ +@JsonAdapter(BannedUserMatchType.Adapter.class) +public enum BannedUserMatchType { + + USER_ID("userId"), + + EMAIL("email"), + + EMAIL_WILDCARD("email-wildcard"), + + IP("IP"); + + private String value; + + BannedUserMatchType(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static BannedUserMatchType fromValue(String value) { + for (BannedUserMatchType b : BannedUserMatchType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final BannedUserMatchType enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public BannedUserMatchType read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return BannedUserMatchType.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + BannedUserMatchType.fromValue(value); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/BillingInfo.java b/client/src/main/java/com/fastcomments/model/BillingInfo.java index f9cab5ae..56dca02d 100644 --- a/client/src/main/java/com/fastcomments/model/BillingInfo.java +++ b/client/src/main/java/com/fastcomments/model/BillingInfo.java @@ -48,7 +48,7 @@ /** * BillingInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class BillingInfo { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -291,10 +291,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/BlockFromCommentParams.java b/client/src/main/java/com/fastcomments/model/BlockFromCommentParams.java index b888ff36..69fbd6d3 100644 --- a/client/src/main/java/com/fastcomments/model/BlockFromCommentParams.java +++ b/client/src/main/java/com/fastcomments/model/BlockFromCommentParams.java @@ -50,7 +50,7 @@ /** * BlockFromCommentParams */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class BlockFromCommentParams { public static final String SERIALIZED_NAME_COMMENT_IDS_TO_CHECK = "commentIdsToCheck"; @SerializedName(SERIALIZED_NAME_COMMENT_IDS_TO_CHECK) @@ -119,10 +119,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/BlockFromCommentPublic200Response.java b/client/src/main/java/com/fastcomments/model/BlockFromCommentPublic200Response.java deleted file mode 100644 index fcd4be41..00000000 --- a/client/src/main/java/com/fastcomments/model/BlockFromCommentPublic200Response.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.BlockSuccess; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class BlockFromCommentPublic200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(BlockFromCommentPublic200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!BlockFromCommentPublic200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'BlockFromCommentPublic200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterBlockSuccess = gson.getDelegateAdapter(this, TypeToken.get(BlockSuccess.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, BlockFromCommentPublic200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `BlockSuccess` - if (value.getActualInstance() instanceof BlockSuccess) { - JsonElement element = adapterBlockSuccess.toJsonTree((BlockSuccess)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, BlockSuccess"); - } - - @Override - public BlockFromCommentPublic200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize BlockSuccess - try { - // validate the JSON object to see if any exception is thrown - BlockSuccess.validateJsonElement(jsonElement); - actualAdapter = adapterBlockSuccess; - BlockFromCommentPublic200Response ret = new BlockFromCommentPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for BlockSuccess failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'BlockSuccess'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - BlockFromCommentPublic200Response ret = new BlockFromCommentPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for BlockFromCommentPublic200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public BlockFromCommentPublic200Response() { - super("anyOf", Boolean.FALSE); - } - - public BlockFromCommentPublic200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("BlockSuccess", BlockSuccess.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return BlockFromCommentPublic200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, BlockSuccess - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof BlockSuccess) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, BlockSuccess"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, BlockSuccess - * - * @return The actual instance (APIError, BlockSuccess) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `BlockSuccess`. If the actual instance is not `BlockSuccess`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BlockSuccess` - * @throws ClassCastException if the instance is not `BlockSuccess` - */ - public BlockSuccess getBlockSuccess() throws ClassCastException { - return (BlockSuccess)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to BlockFromCommentPublic200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with BlockSuccess - try { - BlockSuccess.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for BlockSuccess failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for BlockFromCommentPublic200Response with anyOf schemas: APIError, BlockSuccess. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of BlockFromCommentPublic200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of BlockFromCommentPublic200Response - * @throws IOException if the JSON string is invalid with respect to BlockFromCommentPublic200Response - */ - public static BlockFromCommentPublic200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, BlockFromCommentPublic200Response.class); - } - - /** - * Convert an instance of BlockFromCommentPublic200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/BlockSuccess.java b/client/src/main/java/com/fastcomments/model/BlockSuccess.java index 0b9cdb42..65957dad 100644 --- a/client/src/main/java/com/fastcomments/model/BlockSuccess.java +++ b/client/src/main/java/com/fastcomments/model/BlockSuccess.java @@ -51,7 +51,7 @@ /** * BlockSuccess */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class BlockSuccess { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -146,10 +146,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/BuildModerationFilterParams.java b/client/src/main/java/com/fastcomments/model/BuildModerationFilterParams.java new file mode 100644 index 00000000..ffc8b944 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/BuildModerationFilterParams.java @@ -0,0 +1,406 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * BuildModerationFilterParams + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class BuildModerationFilterParams { + public static final String SERIALIZED_NAME_USER_ID = "userId"; + @SerializedName(SERIALIZED_NAME_USER_ID) + @javax.annotation.Nonnull + private String userId; + + public static final String SERIALIZED_NAME_TENANT_ID = "tenantId"; + @SerializedName(SERIALIZED_NAME_TENANT_ID) + @javax.annotation.Nonnull + private String tenantId; + + public static final String SERIALIZED_NAME_FILTERS = "filters"; + @SerializedName(SERIALIZED_NAME_FILTERS) + @javax.annotation.Nullable + private String filters; + + public static final String SERIALIZED_NAME_SEARCH_FILTERS = "searchFilters"; + @SerializedName(SERIALIZED_NAME_SEARCH_FILTERS) + @javax.annotation.Nullable + private String searchFilters; + + public static final String SERIALIZED_NAME_TEXT_SEARCH = "textSearch"; + @SerializedName(SERIALIZED_NAME_TEXT_SEARCH) + @javax.annotation.Nullable + private String textSearch; + + public BuildModerationFilterParams() { + } + + public BuildModerationFilterParams userId(@javax.annotation.Nonnull String userId) { + this.userId = userId; + return this; + } + + /** + * Get userId + * @return userId + */ + @javax.annotation.Nonnull + public String getUserId() { + return userId; + } + + public void setUserId(@javax.annotation.Nonnull String userId) { + this.userId = userId; + } + + + public BuildModerationFilterParams tenantId(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; + return this; + } + + /** + * Get tenantId + * @return tenantId + */ + @javax.annotation.Nonnull + public String getTenantId() { + return tenantId; + } + + public void setTenantId(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; + } + + + public BuildModerationFilterParams filters(@javax.annotation.Nullable String filters) { + this.filters = filters; + return this; + } + + /** + * Get filters + * @return filters + */ + @javax.annotation.Nullable + public String getFilters() { + return filters; + } + + public void setFilters(@javax.annotation.Nullable String filters) { + this.filters = filters; + } + + + public BuildModerationFilterParams searchFilters(@javax.annotation.Nullable String searchFilters) { + this.searchFilters = searchFilters; + return this; + } + + /** + * Get searchFilters + * @return searchFilters + */ + @javax.annotation.Nullable + public String getSearchFilters() { + return searchFilters; + } + + public void setSearchFilters(@javax.annotation.Nullable String searchFilters) { + this.searchFilters = searchFilters; + } + + + public BuildModerationFilterParams textSearch(@javax.annotation.Nullable String textSearch) { + this.textSearch = textSearch; + return this; + } + + /** + * Get textSearch + * @return textSearch + */ + @javax.annotation.Nullable + public String getTextSearch() { + return textSearch; + } + + public void setTextSearch(@javax.annotation.Nullable String textSearch) { + this.textSearch = textSearch; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the BuildModerationFilterParams instance itself + */ + public BuildModerationFilterParams putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BuildModerationFilterParams buildModerationFilterParams = (BuildModerationFilterParams) o; + return Objects.equals(this.userId, buildModerationFilterParams.userId) && + Objects.equals(this.tenantId, buildModerationFilterParams.tenantId) && + Objects.equals(this.filters, buildModerationFilterParams.filters) && + Objects.equals(this.searchFilters, buildModerationFilterParams.searchFilters) && + Objects.equals(this.textSearch, buildModerationFilterParams.textSearch)&& + Objects.equals(this.additionalProperties, buildModerationFilterParams.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(userId, tenantId, filters, searchFilters, textSearch, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BuildModerationFilterParams {\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); + sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); + sb.append(" searchFilters: ").append(toIndentedString(searchFilters)).append("\n"); + sb.append(" textSearch: ").append(toIndentedString(textSearch)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("userId", "tenantId", "filters", "searchFilters", "textSearch")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("userId", "tenantId")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to BuildModerationFilterParams + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!BuildModerationFilterParams.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in BuildModerationFilterParams is not found in the empty JSON string", BuildModerationFilterParams.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : BuildModerationFilterParams.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if (!jsonObj.get("tenantId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tenantId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tenantId").toString())); + } + if ((jsonObj.get("filters") != null && !jsonObj.get("filters").isJsonNull()) && !jsonObj.get("filters").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `filters` to be a primitive type in the JSON string but got `%s`", jsonObj.get("filters").toString())); + } + if ((jsonObj.get("searchFilters") != null && !jsonObj.get("searchFilters").isJsonNull()) && !jsonObj.get("searchFilters").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `searchFilters` to be a primitive type in the JSON string but got `%s`", jsonObj.get("searchFilters").toString())); + } + if ((jsonObj.get("textSearch") != null && !jsonObj.get("textSearch").isJsonNull()) && !jsonObj.get("textSearch").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `textSearch` to be a primitive type in the JSON string but got `%s`", jsonObj.get("textSearch").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BuildModerationFilterParams.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BuildModerationFilterParams' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BuildModerationFilterParams.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, BuildModerationFilterParams value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public BuildModerationFilterParams read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + BuildModerationFilterParams instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of BuildModerationFilterParams given an JSON string + * + * @param jsonString JSON string + * @return An instance of BuildModerationFilterParams + * @throws IOException if the JSON string is invalid with respect to BuildModerationFilterParams + */ + public static BuildModerationFilterParams fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BuildModerationFilterParams.class); + } + + /** + * Convert an instance of BuildModerationFilterParams to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/BuildModerationFilterResponse.java b/client/src/main/java/com/fastcomments/model/BuildModerationFilterResponse.java new file mode 100644 index 00000000..7a8e52e8 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/BuildModerationFilterResponse.java @@ -0,0 +1,238 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.ModerationFilter; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * BuildModerationFilterResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class BuildModerationFilterResponse { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private String status; + + public static final String SERIALIZED_NAME_MODERATION_FILTER = "moderationFilter"; + @SerializedName(SERIALIZED_NAME_MODERATION_FILTER) + @javax.annotation.Nonnull + private ModerationFilter moderationFilter; + + public BuildModerationFilterResponse() { + } + + public BuildModerationFilterResponse status(@javax.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public String getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull String status) { + this.status = status; + } + + + public BuildModerationFilterResponse moderationFilter(@javax.annotation.Nonnull ModerationFilter moderationFilter) { + this.moderationFilter = moderationFilter; + return this; + } + + /** + * Get moderationFilter + * @return moderationFilter + */ + @javax.annotation.Nonnull + public ModerationFilter getModerationFilter() { + return moderationFilter; + } + + public void setModerationFilter(@javax.annotation.Nonnull ModerationFilter moderationFilter) { + this.moderationFilter = moderationFilter; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BuildModerationFilterResponse buildModerationFilterResponse = (BuildModerationFilterResponse) o; + return Objects.equals(this.status, buildModerationFilterResponse.status) && + Objects.equals(this.moderationFilter, buildModerationFilterResponse.moderationFilter); + } + + @Override + public int hashCode() { + return Objects.hash(status, moderationFilter); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BuildModerationFilterResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" moderationFilter: ").append(toIndentedString(moderationFilter)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("status", "moderationFilter")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status", "moderationFilter")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to BuildModerationFilterResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!BuildModerationFilterResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in BuildModerationFilterResponse is not found in the empty JSON string", BuildModerationFilterResponse.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!BuildModerationFilterResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `BuildModerationFilterResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : BuildModerationFilterResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + // validate the required field `moderationFilter` + ModerationFilter.validateJsonElement(jsonObj.get("moderationFilter")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BuildModerationFilterResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BuildModerationFilterResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BuildModerationFilterResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, BuildModerationFilterResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public BuildModerationFilterResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of BuildModerationFilterResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of BuildModerationFilterResponse + * @throws IOException if the JSON string is invalid with respect to BuildModerationFilterResponse + */ + public static BuildModerationFilterResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BuildModerationFilterResponse.class); + } + + /** + * Convert an instance of BuildModerationFilterResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionItem.java b/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionItem.java index f3def0e3..3b0af0fa 100644 --- a/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionItem.java +++ b/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionItem.java @@ -52,7 +52,7 @@ /** * BulkAggregateQuestionItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class BulkAggregateQuestionItem { public static final String SERIALIZED_NAME_AGG_ID = "aggId"; @SerializedName(SERIALIZED_NAME_AGG_ID) @@ -251,10 +251,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResults200Response.java b/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResults200Response.java deleted file mode 100644 index 337e0eb7..00000000 --- a/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResults200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.BulkAggregateQuestionResultsResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.QuestionResultAggregationOverall; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class BulkAggregateQuestionResults200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(BulkAggregateQuestionResults200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!BulkAggregateQuestionResults200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'BulkAggregateQuestionResults200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterBulkAggregateQuestionResultsResponse = gson.getDelegateAdapter(this, TypeToken.get(BulkAggregateQuestionResultsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, BulkAggregateQuestionResults200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `BulkAggregateQuestionResultsResponse` - if (value.getActualInstance() instanceof BulkAggregateQuestionResultsResponse) { - JsonElement element = adapterBulkAggregateQuestionResultsResponse.toJsonTree((BulkAggregateQuestionResultsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, BulkAggregateQuestionResultsResponse"); - } - - @Override - public BulkAggregateQuestionResults200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize BulkAggregateQuestionResultsResponse - try { - // validate the JSON object to see if any exception is thrown - BulkAggregateQuestionResultsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterBulkAggregateQuestionResultsResponse; - BulkAggregateQuestionResults200Response ret = new BulkAggregateQuestionResults200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for BulkAggregateQuestionResultsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'BulkAggregateQuestionResultsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - BulkAggregateQuestionResults200Response ret = new BulkAggregateQuestionResults200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for BulkAggregateQuestionResults200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public BulkAggregateQuestionResults200Response() { - super("anyOf", Boolean.FALSE); - } - - public BulkAggregateQuestionResults200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("BulkAggregateQuestionResultsResponse", BulkAggregateQuestionResultsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return BulkAggregateQuestionResults200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, BulkAggregateQuestionResultsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof BulkAggregateQuestionResultsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, BulkAggregateQuestionResultsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, BulkAggregateQuestionResultsResponse - * - * @return The actual instance (APIError, BulkAggregateQuestionResultsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `BulkAggregateQuestionResultsResponse`. If the actual instance is not `BulkAggregateQuestionResultsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BulkAggregateQuestionResultsResponse` - * @throws ClassCastException if the instance is not `BulkAggregateQuestionResultsResponse` - */ - public BulkAggregateQuestionResultsResponse getBulkAggregateQuestionResultsResponse() throws ClassCastException { - return (BulkAggregateQuestionResultsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to BulkAggregateQuestionResults200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with BulkAggregateQuestionResultsResponse - try { - BulkAggregateQuestionResultsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for BulkAggregateQuestionResultsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for BulkAggregateQuestionResults200Response with anyOf schemas: APIError, BulkAggregateQuestionResultsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of BulkAggregateQuestionResults200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of BulkAggregateQuestionResults200Response - * @throws IOException if the JSON string is invalid with respect to BulkAggregateQuestionResults200Response - */ - public static BulkAggregateQuestionResults200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, BulkAggregateQuestionResults200Response.class); - } - - /** - * Convert an instance of BulkAggregateQuestionResults200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsRequest.java b/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsRequest.java index 3e20629f..ebfe8924 100644 --- a/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsRequest.java +++ b/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsRequest.java @@ -51,7 +51,7 @@ /** * BulkAggregateQuestionResultsRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class BulkAggregateQuestionResultsRequest { public static final String SERIALIZED_NAME_AGGREGATIONS = "aggregations"; @SerializedName(SERIALIZED_NAME_AGGREGATIONS) @@ -120,10 +120,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -166,16 +163,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the json data is an array - if (!jsonObj.get("aggregations").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `aggregations` to be an array in the JSON string but got `%s`", jsonObj.get("aggregations").toString())); + if (jsonObj.get("aggregations") != null) { + if (!jsonObj.get("aggregations").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `aggregations` to be an array in the JSON string but got `%s`", jsonObj.get("aggregations").toString())); + } + JsonArray jsonArrayaggregations = jsonObj.getAsJsonArray("aggregations"); + // validate the required field `aggregations` (array) + for (int i = 0; i < jsonArrayaggregations.size(); i++) { + BulkAggregateQuestionItem.validateJsonElement(jsonArrayaggregations.get(i)); + } } - - JsonArray jsonArrayaggregations = jsonObj.getAsJsonArray("aggregations"); - // validate the required field `aggregations` (array) - for (int i = 0; i < jsonArrayaggregations.size(); i++) { - BulkAggregateQuestionItem.validateJsonElement(jsonArrayaggregations.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse.java b/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse.java index cd2a585a..975569f2 100644 --- a/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse.java +++ b/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse.java @@ -52,7 +52,7 @@ /** * BulkAggregateQuestionResultsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class BulkAggregateQuestionResultsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/BulkCreateHashTagsBody.java b/client/src/main/java/com/fastcomments/model/BulkCreateHashTagsBody.java index c669bc2e..f1f3854b 100644 --- a/client/src/main/java/com/fastcomments/model/BulkCreateHashTagsBody.java +++ b/client/src/main/java/com/fastcomments/model/BulkCreateHashTagsBody.java @@ -51,7 +51,7 @@ /** * BulkCreateHashTagsBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class BulkCreateHashTagsBody { public static final String SERIALIZED_NAME_TENANT_ID = "tenantId"; @SerializedName(SERIALIZED_NAME_TENANT_ID) @@ -146,10 +146,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("tenantId") != null && !jsonObj.get("tenantId").isJsonNull()) && !jsonObj.get("tenantId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tenantId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tenantId").toString())); } - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + if (jsonObj.get("tags") != null) { + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + // validate the required field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + BulkCreateHashTagsBodyTagsInner.validateJsonElement(jsonArraytags.get(i)); + } } - - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - // validate the required field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - BulkCreateHashTagsBodyTagsInner.validateJsonElement(jsonArraytags.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/BulkCreateHashTagsBodyTagsInner.java b/client/src/main/java/com/fastcomments/model/BulkCreateHashTagsBodyTagsInner.java index 38e15668..4992a24f 100644 --- a/client/src/main/java/com/fastcomments/model/BulkCreateHashTagsBodyTagsInner.java +++ b/client/src/main/java/com/fastcomments/model/BulkCreateHashTagsBodyTagsInner.java @@ -48,7 +48,7 @@ /** * BulkCreateHashTagsBodyTagsInner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class BulkCreateHashTagsBodyTagsInner { public static final String SERIALIZED_NAME_URL = "url"; @SerializedName(SERIALIZED_NAME_URL) @@ -181,10 +181,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/BulkCreateHashTagsResponse.java b/client/src/main/java/com/fastcomments/model/BulkCreateHashTagsResponse.java index 0046982b..9b514a96 100644 --- a/client/src/main/java/com/fastcomments/model/BulkCreateHashTagsResponse.java +++ b/client/src/main/java/com/fastcomments/model/BulkCreateHashTagsResponse.java @@ -15,7 +15,7 @@ import java.util.Objects; import com.fastcomments.model.APIStatus; -import com.fastcomments.model.AddHashTag200Response; +import com.fastcomments.model.BulkCreateHashTagsResponseResultsInner; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -52,7 +52,7 @@ /** * BulkCreateHashTagsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class BulkCreateHashTagsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -62,7 +62,7 @@ public class BulkCreateHashTagsResponse { public static final String SERIALIZED_NAME_RESULTS = "results"; @SerializedName(SERIALIZED_NAME_RESULTS) @javax.annotation.Nonnull - private List results = new ArrayList<>(); + private List results = new ArrayList<>(); public BulkCreateHashTagsResponse() { } @@ -86,12 +86,12 @@ public void setStatus(@javax.annotation.Nonnull APIStatus status) { } - public BulkCreateHashTagsResponse results(@javax.annotation.Nonnull List results) { + public BulkCreateHashTagsResponse results(@javax.annotation.Nonnull List results) { this.results = results; return this; } - public BulkCreateHashTagsResponse addResultsItem(AddHashTag200Response resultsItem) { + public BulkCreateHashTagsResponse addResultsItem(BulkCreateHashTagsResponseResultsInner resultsItem) { if (this.results == null) { this.results = new ArrayList<>(); } @@ -104,11 +104,11 @@ public BulkCreateHashTagsResponse addResultsItem(AddHashTag200Response resultsIt * @return results */ @javax.annotation.Nonnull - public List getResults() { + public List getResults() { return results; } - public void setResults(@javax.annotation.Nonnull List results) { + public void setResults(@javax.annotation.Nonnull List results) { this.results = results; } @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("results").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `results` to be an array in the JSON string but got `%s`", jsonObj.get("results").toString())); + if (jsonObj.get("results") != null) { + if (!jsonObj.get("results").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `results` to be an array in the JSON string but got `%s`", jsonObj.get("results").toString())); + } + JsonArray jsonArrayresults = jsonObj.getAsJsonArray("results"); + // validate the required field `results` (array) + for (int i = 0; i < jsonArrayresults.size(); i++) { + BulkCreateHashTagsResponseResultsInner.validateJsonElement(jsonArrayresults.get(i)); + } } - - JsonArray jsonArrayresults = jsonObj.getAsJsonArray("results"); - // validate the required field `results` (array) - for (int i = 0; i < jsonArrayresults.size(); i++) { - AddHashTag200Response.validateJsonElement(jsonArrayresults.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/AddHashTag200Response.java b/client/src/main/java/com/fastcomments/model/BulkCreateHashTagsResponseResultsInner.java similarity index 81% rename from client/src/main/java/com/fastcomments/model/AddHashTag200Response.java rename to client/src/main/java/com/fastcomments/model/BulkCreateHashTagsResponseResultsInner.java index 06758110..ccd8da6e 100644 --- a/client/src/main/java/com/fastcomments/model/AddHashTag200Response.java +++ b/client/src/main/java/com/fastcomments/model/BulkCreateHashTagsResponseResultsInner.java @@ -62,24 +62,24 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class AddHashTag200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AddHashTag200Response.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class BulkCreateHashTagsResponseResultsInner extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(BulkCreateHashTagsResponseResultsInner.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddHashTag200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddHashTag200Response' and its subtypes + if (!BulkCreateHashTagsResponseResultsInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BulkCreateHashTagsResponseResultsInner' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); final TypeAdapter adapterCreateHashTagResponse = gson.getDelegateAdapter(this, TypeToken.get(CreateHashTagResponse.class)); final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, AddHashTag200Response value) throws IOException { + public void write(JsonWriter out, BulkCreateHashTagsResponseResultsInner value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; @@ -101,7 +101,7 @@ public void write(JsonWriter out, AddHashTag200Response value) throws IOExceptio } @Override - public AddHashTag200Response read(JsonReader in) throws IOException { + public BulkCreateHashTagsResponseResultsInner read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); @@ -113,7 +113,7 @@ public AddHashTag200Response read(JsonReader in) throws IOException { // validate the JSON object to see if any exception is thrown CreateHashTagResponse.validateJsonElement(jsonElement); actualAdapter = adapterCreateHashTagResponse; - AddHashTag200Response ret = new AddHashTag200Response(); + BulkCreateHashTagsResponseResultsInner ret = new BulkCreateHashTagsResponseResultsInner(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { @@ -126,7 +126,7 @@ public AddHashTag200Response read(JsonReader in) throws IOException { // validate the JSON object to see if any exception is thrown APIError.validateJsonElement(jsonElement); actualAdapter = adapterAPIError; - AddHashTag200Response ret = new AddHashTag200Response(); + BulkCreateHashTagsResponseResultsInner ret = new BulkCreateHashTagsResponseResultsInner(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { @@ -135,7 +135,7 @@ public AddHashTag200Response read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data does not match schema 'APIError'", e); } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for AddHashTag200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for BulkCreateHashTagsResponseResultsInner: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -144,11 +144,11 @@ public AddHashTag200Response read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public AddHashTag200Response() { + public BulkCreateHashTagsResponseResultsInner() { super("anyOf", Boolean.FALSE); } - public AddHashTag200Response(Object o) { + public BulkCreateHashTagsResponseResultsInner(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } @@ -160,7 +160,7 @@ public AddHashTag200Response(Object o) { @Override public Map> getSchemas() { - return AddHashTag200Response.schemas; + return BulkCreateHashTagsResponseResultsInner.schemas; } /** @@ -223,7 +223,7 @@ public APIError getAPIError() throws ClassCastException { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddHashTag200Response + * @throws IOException if the JSON Element is invalid with respect to BulkCreateHashTagsResponseResultsInner */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one @@ -244,22 +244,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for AddHashTag200Response with anyOf schemas: APIError, CreateHashTagResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for BulkCreateHashTagsResponseResultsInner with anyOf schemas: APIError, CreateHashTagResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of AddHashTag200Response given an JSON string + * Create an instance of BulkCreateHashTagsResponseResultsInner given an JSON string * * @param jsonString JSON string - * @return An instance of AddHashTag200Response - * @throws IOException if the JSON string is invalid with respect to AddHashTag200Response + * @return An instance of BulkCreateHashTagsResponseResultsInner + * @throws IOException if the JSON string is invalid with respect to BulkCreateHashTagsResponseResultsInner */ - public static AddHashTag200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AddHashTag200Response.class); + public static BulkCreateHashTagsResponseResultsInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BulkCreateHashTagsResponseResultsInner.class); } /** - * Convert an instance of AddHashTag200Response to an JSON string + * Convert an instance of BulkCreateHashTagsResponseResultsInner to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/BulkPreBanParams.java b/client/src/main/java/com/fastcomments/model/BulkPreBanParams.java new file mode 100644 index 00000000..e4a4b414 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/BulkPreBanParams.java @@ -0,0 +1,222 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * BulkPreBanParams + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class BulkPreBanParams { + public static final String SERIALIZED_NAME_COMMENT_IDS = "commentIds"; + @SerializedName(SERIALIZED_NAME_COMMENT_IDS) + @javax.annotation.Nonnull + private List commentIds = new ArrayList<>(); + + public BulkPreBanParams() { + } + + public BulkPreBanParams commentIds(@javax.annotation.Nonnull List commentIds) { + this.commentIds = commentIds; + return this; + } + + public BulkPreBanParams addCommentIdsItem(String commentIdsItem) { + if (this.commentIds == null) { + this.commentIds = new ArrayList<>(); + } + this.commentIds.add(commentIdsItem); + return this; + } + + /** + * Get commentIds + * @return commentIds + */ + @javax.annotation.Nonnull + public List getCommentIds() { + return commentIds; + } + + public void setCommentIds(@javax.annotation.Nonnull List commentIds) { + this.commentIds = commentIds; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BulkPreBanParams bulkPreBanParams = (BulkPreBanParams) o; + return Objects.equals(this.commentIds, bulkPreBanParams.commentIds); + } + + @Override + public int hashCode() { + return Objects.hash(commentIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BulkPreBanParams {\n"); + sb.append(" commentIds: ").append(toIndentedString(commentIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("commentIds")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("commentIds")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to BulkPreBanParams + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!BulkPreBanParams.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in BulkPreBanParams is not found in the empty JSON string", BulkPreBanParams.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!BulkPreBanParams.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `BulkPreBanParams` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : BulkPreBanParams.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the required json array is present + if (jsonObj.get("commentIds") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("commentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `commentIds` to be an array in the JSON string but got `%s`", jsonObj.get("commentIds").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BulkPreBanParams.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BulkPreBanParams' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BulkPreBanParams.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, BulkPreBanParams value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public BulkPreBanParams read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of BulkPreBanParams given an JSON string + * + * @param jsonString JSON string + * @return An instance of BulkPreBanParams + * @throws IOException if the JSON string is invalid with respect to BulkPreBanParams + */ + public static BulkPreBanParams fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BulkPreBanParams.class); + } + + /** + * Convert an instance of BulkPreBanParams to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/BulkPreBanSummary.java b/client/src/main/java/com/fastcomments/model/BulkPreBanSummary.java new file mode 100644 index 00000000..4ba65f79 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/BulkPreBanSummary.java @@ -0,0 +1,397 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * BulkPreBanSummary + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class BulkPreBanSummary { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private String status; + + public static final String SERIALIZED_NAME_TOTAL_RELATED_COMMENT_COUNT = "totalRelatedCommentCount"; + @SerializedName(SERIALIZED_NAME_TOTAL_RELATED_COMMENT_COUNT) + @javax.annotation.Nonnull + private Integer totalRelatedCommentCount; + + public static final String SERIALIZED_NAME_EMAIL_DOMAINS = "emailDomains"; + @SerializedName(SERIALIZED_NAME_EMAIL_DOMAINS) + @javax.annotation.Nonnull + private List emailDomains = new ArrayList<>(); + + public static final String SERIALIZED_NAME_EMAILS = "emails"; + @SerializedName(SERIALIZED_NAME_EMAILS) + @javax.annotation.Nonnull + private List emails = new ArrayList<>(); + + public static final String SERIALIZED_NAME_USER_IDS = "userIds"; + @SerializedName(SERIALIZED_NAME_USER_IDS) + @javax.annotation.Nonnull + private List userIds = new ArrayList<>(); + + public static final String SERIALIZED_NAME_IP_HASHES = "ipHashes"; + @SerializedName(SERIALIZED_NAME_IP_HASHES) + @javax.annotation.Nonnull + private List ipHashes = new ArrayList<>(); + + public BulkPreBanSummary() { + } + + public BulkPreBanSummary status(@javax.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public String getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull String status) { + this.status = status; + } + + + public BulkPreBanSummary totalRelatedCommentCount(@javax.annotation.Nonnull Integer totalRelatedCommentCount) { + this.totalRelatedCommentCount = totalRelatedCommentCount; + return this; + } + + /** + * Get totalRelatedCommentCount + * @return totalRelatedCommentCount + */ + @javax.annotation.Nonnull + public Integer getTotalRelatedCommentCount() { + return totalRelatedCommentCount; + } + + public void setTotalRelatedCommentCount(@javax.annotation.Nonnull Integer totalRelatedCommentCount) { + this.totalRelatedCommentCount = totalRelatedCommentCount; + } + + + public BulkPreBanSummary emailDomains(@javax.annotation.Nonnull List emailDomains) { + this.emailDomains = emailDomains; + return this; + } + + public BulkPreBanSummary addEmailDomainsItem(String emailDomainsItem) { + if (this.emailDomains == null) { + this.emailDomains = new ArrayList<>(); + } + this.emailDomains.add(emailDomainsItem); + return this; + } + + /** + * Get emailDomains + * @return emailDomains + */ + @javax.annotation.Nonnull + public List getEmailDomains() { + return emailDomains; + } + + public void setEmailDomains(@javax.annotation.Nonnull List emailDomains) { + this.emailDomains = emailDomains; + } + + + public BulkPreBanSummary emails(@javax.annotation.Nonnull List emails) { + this.emails = emails; + return this; + } + + public BulkPreBanSummary addEmailsItem(String emailsItem) { + if (this.emails == null) { + this.emails = new ArrayList<>(); + } + this.emails.add(emailsItem); + return this; + } + + /** + * Get emails + * @return emails + */ + @javax.annotation.Nonnull + public List getEmails() { + return emails; + } + + public void setEmails(@javax.annotation.Nonnull List emails) { + this.emails = emails; + } + + + public BulkPreBanSummary userIds(@javax.annotation.Nonnull List userIds) { + this.userIds = userIds; + return this; + } + + public BulkPreBanSummary addUserIdsItem(String userIdsItem) { + if (this.userIds == null) { + this.userIds = new ArrayList<>(); + } + this.userIds.add(userIdsItem); + return this; + } + + /** + * Get userIds + * @return userIds + */ + @javax.annotation.Nonnull + public List getUserIds() { + return userIds; + } + + public void setUserIds(@javax.annotation.Nonnull List userIds) { + this.userIds = userIds; + } + + + public BulkPreBanSummary ipHashes(@javax.annotation.Nonnull List ipHashes) { + this.ipHashes = ipHashes; + return this; + } + + public BulkPreBanSummary addIpHashesItem(String ipHashesItem) { + if (this.ipHashes == null) { + this.ipHashes = new ArrayList<>(); + } + this.ipHashes.add(ipHashesItem); + return this; + } + + /** + * Get ipHashes + * @return ipHashes + */ + @javax.annotation.Nonnull + public List getIpHashes() { + return ipHashes; + } + + public void setIpHashes(@javax.annotation.Nonnull List ipHashes) { + this.ipHashes = ipHashes; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BulkPreBanSummary bulkPreBanSummary = (BulkPreBanSummary) o; + return Objects.equals(this.status, bulkPreBanSummary.status) && + Objects.equals(this.totalRelatedCommentCount, bulkPreBanSummary.totalRelatedCommentCount) && + Objects.equals(this.emailDomains, bulkPreBanSummary.emailDomains) && + Objects.equals(this.emails, bulkPreBanSummary.emails) && + Objects.equals(this.userIds, bulkPreBanSummary.userIds) && + Objects.equals(this.ipHashes, bulkPreBanSummary.ipHashes); + } + + @Override + public int hashCode() { + return Objects.hash(status, totalRelatedCommentCount, emailDomains, emails, userIds, ipHashes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BulkPreBanSummary {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" totalRelatedCommentCount: ").append(toIndentedString(totalRelatedCommentCount)).append("\n"); + sb.append(" emailDomains: ").append(toIndentedString(emailDomains)).append("\n"); + sb.append(" emails: ").append(toIndentedString(emails)).append("\n"); + sb.append(" userIds: ").append(toIndentedString(userIds)).append("\n"); + sb.append(" ipHashes: ").append(toIndentedString(ipHashes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("status", "totalRelatedCommentCount", "emailDomains", "emails", "userIds", "ipHashes")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status", "totalRelatedCommentCount", "emailDomains", "emails", "userIds", "ipHashes")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to BulkPreBanSummary + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!BulkPreBanSummary.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in BulkPreBanSummary is not found in the empty JSON string", BulkPreBanSummary.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!BulkPreBanSummary.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `BulkPreBanSummary` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : BulkPreBanSummary.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + // ensure the required json array is present + if (jsonObj.get("emailDomains") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("emailDomains").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `emailDomains` to be an array in the JSON string but got `%s`", jsonObj.get("emailDomains").toString())); + } + // ensure the required json array is present + if (jsonObj.get("emails") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("emails").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `emails` to be an array in the JSON string but got `%s`", jsonObj.get("emails").toString())); + } + // ensure the required json array is present + if (jsonObj.get("userIds") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("userIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userIds` to be an array in the JSON string but got `%s`", jsonObj.get("userIds").toString())); + } + // ensure the required json array is present + if (jsonObj.get("ipHashes") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("ipHashes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `ipHashes` to be an array in the JSON string but got `%s`", jsonObj.get("ipHashes").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BulkPreBanSummary.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BulkPreBanSummary' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BulkPreBanSummary.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, BulkPreBanSummary value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public BulkPreBanSummary read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of BulkPreBanSummary given an JSON string + * + * @param jsonString JSON string + * @return An instance of BulkPreBanSummary + * @throws IOException if the JSON string is invalid with respect to BulkPreBanSummary + */ + public static BulkPreBanSummary fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BulkPreBanSummary.class); + } + + /** + * Convert an instance of BulkPreBanSummary to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ChangeCommentPinStatusResponse.java b/client/src/main/java/com/fastcomments/model/ChangeCommentPinStatusResponse.java index 32533231..6cbdadc7 100644 --- a/client/src/main/java/com/fastcomments/model/ChangeCommentPinStatusResponse.java +++ b/client/src/main/java/com/fastcomments/model/ChangeCommentPinStatusResponse.java @@ -52,7 +52,7 @@ /** * ChangeCommentPinStatusResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class ChangeCommentPinStatusResponse { public static final String SERIALIZED_NAME_COMMENT_POSITIONS = "commentPositions"; @SerializedName(SERIALIZED_NAME_COMMENT_POSITIONS) @@ -193,10 +193,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/ChangeTicketState200Response.java b/client/src/main/java/com/fastcomments/model/ChangeTicketState200Response.java deleted file mode 100644 index 953060e4..00000000 --- a/client/src/main/java/com/fastcomments/model/ChangeTicketState200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITicket; -import com.fastcomments.model.ChangeTicketStateResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class ChangeTicketState200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(ChangeTicketState200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ChangeTicketState200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ChangeTicketState200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterChangeTicketStateResponse = gson.getDelegateAdapter(this, TypeToken.get(ChangeTicketStateResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ChangeTicketState200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ChangeTicketStateResponse` - if (value.getActualInstance() instanceof ChangeTicketStateResponse) { - JsonElement element = adapterChangeTicketStateResponse.toJsonTree((ChangeTicketStateResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, ChangeTicketStateResponse"); - } - - @Override - public ChangeTicketState200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ChangeTicketStateResponse - try { - // validate the JSON object to see if any exception is thrown - ChangeTicketStateResponse.validateJsonElement(jsonElement); - actualAdapter = adapterChangeTicketStateResponse; - ChangeTicketState200Response ret = new ChangeTicketState200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ChangeTicketStateResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ChangeTicketStateResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - ChangeTicketState200Response ret = new ChangeTicketState200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for ChangeTicketState200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public ChangeTicketState200Response() { - super("anyOf", Boolean.FALSE); - } - - public ChangeTicketState200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ChangeTicketStateResponse", ChangeTicketStateResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return ChangeTicketState200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ChangeTicketStateResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ChangeTicketStateResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ChangeTicketStateResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ChangeTicketStateResponse - * - * @return The actual instance (APIError, ChangeTicketStateResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ChangeTicketStateResponse`. If the actual instance is not `ChangeTicketStateResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ChangeTicketStateResponse` - * @throws ClassCastException if the instance is not `ChangeTicketStateResponse` - */ - public ChangeTicketStateResponse getChangeTicketStateResponse() throws ClassCastException { - return (ChangeTicketStateResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ChangeTicketState200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ChangeTicketStateResponse - try { - ChangeTicketStateResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ChangeTicketStateResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for ChangeTicketState200Response with anyOf schemas: APIError, ChangeTicketStateResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of ChangeTicketState200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of ChangeTicketState200Response - * @throws IOException if the JSON string is invalid with respect to ChangeTicketState200Response - */ - public static ChangeTicketState200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ChangeTicketState200Response.class); - } - - /** - * Convert an instance of ChangeTicketState200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/ChangeTicketStateBody.java b/client/src/main/java/com/fastcomments/model/ChangeTicketStateBody.java index 6f4630ed..c77440be 100644 --- a/client/src/main/java/com/fastcomments/model/ChangeTicketStateBody.java +++ b/client/src/main/java/com/fastcomments/model/ChangeTicketStateBody.java @@ -48,7 +48,7 @@ /** * ChangeTicketStateBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class ChangeTicketStateBody { public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) @@ -109,10 +109,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/ChangeTicketStateResponse.java b/client/src/main/java/com/fastcomments/model/ChangeTicketStateResponse.java index 81f7b7a2..f8fc4b0d 100644 --- a/client/src/main/java/com/fastcomments/model/ChangeTicketStateResponse.java +++ b/client/src/main/java/com/fastcomments/model/ChangeTicketStateResponse.java @@ -50,7 +50,7 @@ /** * ChangeTicketStateResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class ChangeTicketStateResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CheckBlockedCommentsResponse.java b/client/src/main/java/com/fastcomments/model/CheckBlockedCommentsResponse.java index 1a4e6027..200bf8ab 100644 --- a/client/src/main/java/com/fastcomments/model/CheckBlockedCommentsResponse.java +++ b/client/src/main/java/com/fastcomments/model/CheckBlockedCommentsResponse.java @@ -51,7 +51,7 @@ /** * CheckBlockedCommentsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CheckBlockedCommentsResponse { public static final String SERIALIZED_NAME_COMMENT_STATUSES = "commentStatuses"; @SerializedName(SERIALIZED_NAME_COMMENT_STATUSES) @@ -192,10 +192,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CombineCommentsWithQuestionResults200Response.java b/client/src/main/java/com/fastcomments/model/CombineCommentsWithQuestionResults200Response.java deleted file mode 100644 index 2781804d..00000000 --- a/client/src/main/java/com/fastcomments/model/CombineCommentsWithQuestionResults200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CombineQuestionResultsWithCommentsResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FindCommentsByRangeResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class CombineCommentsWithQuestionResults200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CombineCommentsWithQuestionResults200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CombineCommentsWithQuestionResults200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CombineCommentsWithQuestionResults200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCombineQuestionResultsWithCommentsResponse = gson.getDelegateAdapter(this, TypeToken.get(CombineQuestionResultsWithCommentsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CombineCommentsWithQuestionResults200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CombineQuestionResultsWithCommentsResponse` - if (value.getActualInstance() instanceof CombineQuestionResultsWithCommentsResponse) { - JsonElement element = adapterCombineQuestionResultsWithCommentsResponse.toJsonTree((CombineQuestionResultsWithCommentsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, CombineQuestionResultsWithCommentsResponse"); - } - - @Override - public CombineCommentsWithQuestionResults200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CombineQuestionResultsWithCommentsResponse - try { - // validate the JSON object to see if any exception is thrown - CombineQuestionResultsWithCommentsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterCombineQuestionResultsWithCommentsResponse; - CombineCommentsWithQuestionResults200Response ret = new CombineCommentsWithQuestionResults200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CombineQuestionResultsWithCommentsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CombineQuestionResultsWithCommentsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CombineCommentsWithQuestionResults200Response ret = new CombineCommentsWithQuestionResults200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for CombineCommentsWithQuestionResults200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public CombineCommentsWithQuestionResults200Response() { - super("anyOf", Boolean.FALSE); - } - - public CombineCommentsWithQuestionResults200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CombineQuestionResultsWithCommentsResponse", CombineQuestionResultsWithCommentsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CombineCommentsWithQuestionResults200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CombineQuestionResultsWithCommentsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CombineQuestionResultsWithCommentsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CombineQuestionResultsWithCommentsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CombineQuestionResultsWithCommentsResponse - * - * @return The actual instance (APIError, CombineQuestionResultsWithCommentsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CombineQuestionResultsWithCommentsResponse`. If the actual instance is not `CombineQuestionResultsWithCommentsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CombineQuestionResultsWithCommentsResponse` - * @throws ClassCastException if the instance is not `CombineQuestionResultsWithCommentsResponse` - */ - public CombineQuestionResultsWithCommentsResponse getCombineQuestionResultsWithCommentsResponse() throws ClassCastException { - return (CombineQuestionResultsWithCommentsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CombineCommentsWithQuestionResults200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CombineQuestionResultsWithCommentsResponse - try { - CombineQuestionResultsWithCommentsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CombineQuestionResultsWithCommentsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for CombineCommentsWithQuestionResults200Response with anyOf schemas: APIError, CombineQuestionResultsWithCommentsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of CombineCommentsWithQuestionResults200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of CombineCommentsWithQuestionResults200Response - * @throws IOException if the JSON string is invalid with respect to CombineCommentsWithQuestionResults200Response - */ - public static CombineCommentsWithQuestionResults200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CombineCommentsWithQuestionResults200Response.class); - } - - /** - * Convert an instance of CombineCommentsWithQuestionResults200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/CombineQuestionResultsWithCommentsResponse.java b/client/src/main/java/com/fastcomments/model/CombineQuestionResultsWithCommentsResponse.java index 8a93cfb0..01dfe207 100644 --- a/client/src/main/java/com/fastcomments/model/CombineQuestionResultsWithCommentsResponse.java +++ b/client/src/main/java/com/fastcomments/model/CombineQuestionResultsWithCommentsResponse.java @@ -50,7 +50,7 @@ /** * CombineQuestionResultsWithCommentsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CombineQuestionResultsWithCommentsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CommentData.java b/client/src/main/java/com/fastcomments/model/CommentData.java index 08dd0c53..349f834a 100644 --- a/client/src/main/java/com/fastcomments/model/CommentData.java +++ b/client/src/main/java/com/fastcomments/model/CommentData.java @@ -16,7 +16,7 @@ import java.util.Objects; import com.fastcomments.model.CommentUserHashTagInfo; import com.fastcomments.model.CommentUserMentionInfo; -import com.fastcomments.model.RecordStringStringOrNumberValue; +import com.fastcomments.model.GifSearchResponseImagesInnerInner; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -55,7 +55,7 @@ /** * CommentData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CommentData { public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) @@ -175,13 +175,18 @@ public class CommentData { public static final String SERIALIZED_NAME_QUESTION_VALUES = "questionValues"; @SerializedName(SERIALIZED_NAME_QUESTION_VALUES) @javax.annotation.Nullable - private Map questionValues = new HashMap<>(); + private Map questionValues = new HashMap<>(); public static final String SERIALIZED_NAME_TOS = "tos"; @SerializedName(SERIALIZED_NAME_TOS) @javax.annotation.Nullable private Boolean tos; + public static final String SERIALIZED_NAME_BOT_ID = "botId"; + @SerializedName(SERIALIZED_NAME_BOT_ID) + @javax.annotation.Nullable + private String botId; + public CommentData() { } @@ -654,12 +659,12 @@ public void setFeedbackIds(@javax.annotation.Nullable List feedbackIds) } - public CommentData questionValues(@javax.annotation.Nullable Map questionValues) { + public CommentData questionValues(@javax.annotation.Nullable Map questionValues) { this.questionValues = questionValues; return this; } - public CommentData putQuestionValuesItem(String key, RecordStringStringOrNumberValue questionValuesItem) { + public CommentData putQuestionValuesItem(String key, GifSearchResponseImagesInnerInner questionValuesItem) { if (this.questionValues == null) { this.questionValues = new HashMap<>(); } @@ -672,11 +677,11 @@ public CommentData putQuestionValuesItem(String key, RecordStringStringOrNumberV * @return questionValues */ @javax.annotation.Nullable - public Map getQuestionValues() { + public Map getQuestionValues() { return questionValues; } - public void setQuestionValues(@javax.annotation.Nullable Map questionValues) { + public void setQuestionValues(@javax.annotation.Nullable Map questionValues) { this.questionValues = questionValues; } @@ -700,6 +705,25 @@ public void setTos(@javax.annotation.Nullable Boolean tos) { } + public CommentData botId(@javax.annotation.Nullable String botId) { + this.botId = botId; + return this; + } + + /** + * Get botId + * @return botId + */ + @javax.annotation.Nullable + public String getBotId() { + return botId; + } + + public void setBotId(@javax.annotation.Nullable String botId) { + this.botId = botId; + } + + @Override public boolean equals(Object o) { @@ -734,12 +758,13 @@ public boolean equals(Object o) { Objects.equals(this.autoplayDelayMS, commentData.autoplayDelayMS) && Objects.equals(this.feedbackIds, commentData.feedbackIds) && Objects.equals(this.questionValues, commentData.questionValues) && - Objects.equals(this.tos, commentData.tos); + Objects.equals(this.tos, commentData.tos) && + Objects.equals(this.botId, commentData.botId); } @Override public int hashCode() { - return Objects.hash(date, localDateString, localDateHours, commenterName, commenterEmail, commenterLink, comment, productId, userId, avatarSrc, parentId, mentions, hashTags, pageTitle, isFromMyAccountPage, url, urlId, meta, moderationGroupIds, rating, fromOfflineRestore, autoplayDelayMS, feedbackIds, questionValues, tos); + return Objects.hash(date, localDateString, localDateHours, commenterName, commenterEmail, commenterLink, comment, productId, userId, avatarSrc, parentId, mentions, hashTags, pageTitle, isFromMyAccountPage, url, urlId, meta, moderationGroupIds, rating, fromOfflineRestore, autoplayDelayMS, feedbackIds, questionValues, tos, botId); } @Override @@ -771,6 +796,7 @@ public String toString() { sb.append(" feedbackIds: ").append(toIndentedString(feedbackIds)).append("\n"); sb.append(" questionValues: ").append(toIndentedString(questionValues)).append("\n"); sb.append(" tos: ").append(toIndentedString(tos)).append("\n"); + sb.append(" botId: ").append(toIndentedString(botId)).append("\n"); sb.append("}"); return sb.toString(); } @@ -780,10 +806,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -792,7 +815,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("date", "localDateString", "localDateHours", "commenterName", "commenterEmail", "commenterLink", "comment", "productId", "userId", "avatarSrc", "parentId", "mentions", "hashTags", "pageTitle", "isFromMyAccountPage", "url", "urlId", "meta", "moderationGroupIds", "rating", "fromOfflineRestore", "autoplayDelayMS", "feedbackIds", "questionValues", "tos")); + openapiFields = new HashSet(Arrays.asList("date", "localDateString", "localDateHours", "commenterName", "commenterEmail", "commenterLink", "comment", "productId", "userId", "avatarSrc", "parentId", "mentions", "hashTags", "pageTitle", "isFromMyAccountPage", "url", "urlId", "meta", "moderationGroupIds", "rating", "fromOfflineRestore", "autoplayDelayMS", "feedbackIds", "questionValues", "tos", "botId")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("commenterName", "comment", "url", "urlId")); @@ -895,6 +918,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("feedbackIds") != null && !jsonObj.get("feedbackIds").isJsonNull() && !jsonObj.get("feedbackIds").isJsonArray()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `feedbackIds` to be an array in the JSON string but got `%s`", jsonObj.get("feedbackIds").toString())); } + if ((jsonObj.get("botId") != null && !jsonObj.get("botId").isJsonNull()) && !jsonObj.get("botId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `botId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("botId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/CommentLogData.java b/client/src/main/java/com/fastcomments/model/CommentLogData.java index 271d5daf..f6434bfd 100644 --- a/client/src/main/java/com/fastcomments/model/CommentLogData.java +++ b/client/src/main/java/com/fastcomments/model/CommentLogData.java @@ -52,7 +52,7 @@ /** * CommentLogData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CommentLogData { public static final String SERIALIZED_NAME_CLEAR_CONTENT = "clearContent"; @SerializedName(SERIALIZED_NAME_CLEAR_CONTENT) @@ -129,6 +129,11 @@ public class CommentLogData { @javax.annotation.Nullable private Double trustFactor; + public static final String SERIALIZED_NAME_SOURCE = "source"; + @SerializedName(SERIALIZED_NAME_SOURCE) + @javax.annotation.Nullable + private String source; + public static final String SERIALIZED_NAME_RULE = "rule"; @SerializedName(SERIALIZED_NAME_RULE) @javax.annotation.Nullable @@ -622,6 +627,25 @@ public void setTrustFactor(@javax.annotation.Nullable Double trustFactor) { } + public CommentLogData source(@javax.annotation.Nullable String source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + */ + @javax.annotation.Nullable + public String getSource() { + return source; + } + + public void setSource(@javax.annotation.Nullable String source) { + this.source = source; + } + + public CommentLogData rule(@javax.annotation.Nullable SpamRule rule) { this.rule = rule; return this; @@ -1236,6 +1260,7 @@ public boolean equals(Object o) { Objects.equals(this.engineResponse, commentLogData.engineResponse) && Objects.equals(this.engineTokens, commentLogData.engineTokens) && Objects.equals(this.trustFactor, commentLogData.trustFactor) && + Objects.equals(this.source, commentLogData.source) && Objects.equals(this.rule, commentLogData.rule) && Objects.equals(this.userId, commentLogData.userId) && Objects.equals(this.subscribers, commentLogData.subscribers) && @@ -1271,7 +1296,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(clearContent, isDeletedUser, phrase, badWord, word, locale, tenantBadgeId, badgeId, wasLoggedIn, foundUser, verified, engine, engineResponse, engineTokens, trustFactor, rule, userId, subscribers, notificationCount, votesBefore, votesUpBefore, votesDownBefore, votesAfter, votesUpAfter, votesDownAfter, repeatAction, reason, otherData, spamBefore, spamAfter, permanentFlag, approvedBefore, approvedAfter, reviewedBefore, reviewedAfter, textBefore, textAfter, expireBefore, expireAfter, flagCountBefore, trustFactorBefore, trustFactorAfter, referencedCommentId, invalidLocale, detectedLocale, detectedLanguage); + return Objects.hash(clearContent, isDeletedUser, phrase, badWord, word, locale, tenantBadgeId, badgeId, wasLoggedIn, foundUser, verified, engine, engineResponse, engineTokens, trustFactor, source, rule, userId, subscribers, notificationCount, votesBefore, votesUpBefore, votesDownBefore, votesAfter, votesUpAfter, votesDownAfter, repeatAction, reason, otherData, spamBefore, spamAfter, permanentFlag, approvedBefore, approvedAfter, reviewedBefore, reviewedAfter, textBefore, textAfter, expireBefore, expireAfter, flagCountBefore, trustFactorBefore, trustFactorAfter, referencedCommentId, invalidLocale, detectedLocale, detectedLanguage); } @Override @@ -1293,6 +1318,7 @@ public String toString() { sb.append(" engineResponse: ").append(toIndentedString(engineResponse)).append("\n"); sb.append(" engineTokens: ").append(toIndentedString(engineTokens)).append("\n"); sb.append(" trustFactor: ").append(toIndentedString(trustFactor)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); sb.append(" subscribers: ").append(toIndentedString(subscribers)).append("\n"); @@ -1333,10 +1359,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -1345,7 +1368,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("clearContent", "isDeletedUser", "phrase", "badWord", "word", "locale", "tenantBadgeId", "badgeId", "wasLoggedIn", "foundUser", "verified", "engine", "engineResponse", "engineTokens", "trustFactor", "rule", "userId", "subscribers", "notificationCount", "votesBefore", "votesUpBefore", "votesDownBefore", "votesAfter", "votesUpAfter", "votesDownAfter", "repeatAction", "reason", "otherData", "spamBefore", "spamAfter", "permanentFlag", "approvedBefore", "approvedAfter", "reviewedBefore", "reviewedAfter", "textBefore", "textAfter", "expireBefore", "expireAfter", "flagCountBefore", "trustFactorBefore", "trustFactorAfter", "referencedCommentId", "invalidLocale", "detectedLocale", "detectedLanguage")); + openapiFields = new HashSet(Arrays.asList("clearContent", "isDeletedUser", "phrase", "badWord", "word", "locale", "tenantBadgeId", "badgeId", "wasLoggedIn", "foundUser", "verified", "engine", "engineResponse", "engineTokens", "trustFactor", "source", "rule", "userId", "subscribers", "notificationCount", "votesBefore", "votesUpBefore", "votesDownBefore", "votesAfter", "votesUpAfter", "votesDownAfter", "repeatAction", "reason", "otherData", "spamBefore", "spamAfter", "permanentFlag", "approvedBefore", "approvedAfter", "reviewedBefore", "reviewedAfter", "textBefore", "textAfter", "expireBefore", "expireAfter", "flagCountBefore", "trustFactorBefore", "trustFactorAfter", "referencedCommentId", "invalidLocale", "detectedLocale", "detectedLanguage")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -1396,6 +1419,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("engineResponse") != null && !jsonObj.get("engineResponse").isJsonNull()) && !jsonObj.get("engineResponse").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `engineResponse` to be a primitive type in the JSON string but got `%s`", jsonObj.get("engineResponse").toString())); } + if ((jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) && !jsonObj.get("source").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); + } // validate the optional field `rule` if (jsonObj.get("rule") != null && !jsonObj.get("rule").isJsonNull()) { SpamRule.validateJsonElement(jsonObj.get("rule")); diff --git a/client/src/main/java/com/fastcomments/model/CommentLogEntry.java b/client/src/main/java/com/fastcomments/model/CommentLogEntry.java index a4ec1667..181b40e2 100644 --- a/client/src/main/java/com/fastcomments/model/CommentLogEntry.java +++ b/client/src/main/java/com/fastcomments/model/CommentLogEntry.java @@ -51,7 +51,7 @@ /** * CommentLogEntry */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CommentLogEntry { public static final String SERIALIZED_NAME_D = "d"; @SerializedName(SERIALIZED_NAME_D) @@ -164,10 +164,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CommentTextUpdateRequest.java b/client/src/main/java/com/fastcomments/model/CommentTextUpdateRequest.java index cd2687fc..b2cc43c8 100644 --- a/client/src/main/java/com/fastcomments/model/CommentTextUpdateRequest.java +++ b/client/src/main/java/com/fastcomments/model/CommentTextUpdateRequest.java @@ -52,7 +52,7 @@ /** * CommentTextUpdateRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CommentTextUpdateRequest { public static final String SERIALIZED_NAME_COMMENT = "comment"; @SerializedName(SERIALIZED_NAME_COMMENT) @@ -181,10 +181,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CommentUserBadgeInfo.java b/client/src/main/java/com/fastcomments/model/CommentUserBadgeInfo.java index 310b54b5..5d9c8691 100644 --- a/client/src/main/java/com/fastcomments/model/CommentUserBadgeInfo.java +++ b/client/src/main/java/com/fastcomments/model/CommentUserBadgeInfo.java @@ -48,7 +48,7 @@ /** * CommentUserBadgeInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CommentUserBadgeInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -317,10 +317,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CommentUserHashTagInfo.java b/client/src/main/java/com/fastcomments/model/CommentUserHashTagInfo.java index e5e6df1a..7e79b659 100644 --- a/client/src/main/java/com/fastcomments/model/CommentUserHashTagInfo.java +++ b/client/src/main/java/com/fastcomments/model/CommentUserHashTagInfo.java @@ -48,7 +48,7 @@ /** * CommentUserHashTagInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CommentUserHashTagInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -187,10 +187,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CommentUserMentionInfo.java b/client/src/main/java/com/fastcomments/model/CommentUserMentionInfo.java index 308d63c8..2717fa28 100644 --- a/client/src/main/java/com/fastcomments/model/CommentUserMentionInfo.java +++ b/client/src/main/java/com/fastcomments/model/CommentUserMentionInfo.java @@ -48,7 +48,7 @@ /** * CommentUserMentionInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CommentUserMentionInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -265,10 +265,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CommentsByIdsParams.java b/client/src/main/java/com/fastcomments/model/CommentsByIdsParams.java new file mode 100644 index 00000000..b4e68671 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CommentsByIdsParams.java @@ -0,0 +1,222 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * CommentsByIdsParams + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class CommentsByIdsParams { + public static final String SERIALIZED_NAME_IDS = "ids"; + @SerializedName(SERIALIZED_NAME_IDS) + @javax.annotation.Nonnull + private List ids = new ArrayList<>(); + + public CommentsByIdsParams() { + } + + public CommentsByIdsParams ids(@javax.annotation.Nonnull List ids) { + this.ids = ids; + return this; + } + + public CommentsByIdsParams addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList<>(); + } + this.ids.add(idsItem); + return this; + } + + /** + * Get ids + * @return ids + */ + @javax.annotation.Nonnull + public List getIds() { + return ids; + } + + public void setIds(@javax.annotation.Nonnull List ids) { + this.ids = ids; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CommentsByIdsParams commentsByIdsParams = (CommentsByIdsParams) o; + return Objects.equals(this.ids, commentsByIdsParams.ids); + } + + @Override + public int hashCode() { + return Objects.hash(ids); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CommentsByIdsParams {\n"); + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("ids")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("ids")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CommentsByIdsParams + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!CommentsByIdsParams.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in CommentsByIdsParams is not found in the empty JSON string", CommentsByIdsParams.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!CommentsByIdsParams.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `CommentsByIdsParams` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : CommentsByIdsParams.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the required json array is present + if (jsonObj.get("ids") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("ids").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `ids` to be an array in the JSON string but got `%s`", jsonObj.get("ids").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CommentsByIdsParams.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CommentsByIdsParams' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CommentsByIdsParams.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, CommentsByIdsParams value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public CommentsByIdsParams read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of CommentsByIdsParams given an JSON string + * + * @param jsonString JSON string + * @return An instance of CommentsByIdsParams + * @throws IOException if the JSON string is invalid with respect to CommentsByIdsParams + */ + public static CommentsByIdsParams fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CommentsByIdsParams.class); + } + + /** + * Convert an instance of CommentsByIdsParams to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/CreateAPIPageData.java b/client/src/main/java/com/fastcomments/model/CreateAPIPageData.java index 880d8108..8771a67e 100644 --- a/client/src/main/java/com/fastcomments/model/CreateAPIPageData.java +++ b/client/src/main/java/com/fastcomments/model/CreateAPIPageData.java @@ -50,7 +50,7 @@ /** * CreateAPIPageData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateAPIPageData { public static final String SERIALIZED_NAME_ACCESSIBLE_BY_GROUP_IDS = "accessibleByGroupIds"; @SerializedName(SERIALIZED_NAME_ACCESSIBLE_BY_GROUP_IDS) @@ -295,10 +295,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateAPISSOUserData.java b/client/src/main/java/com/fastcomments/model/CreateAPISSOUserData.java index 4df69538..9ad6ba2a 100644 --- a/client/src/main/java/com/fastcomments/model/CreateAPISSOUserData.java +++ b/client/src/main/java/com/fastcomments/model/CreateAPISSOUserData.java @@ -50,7 +50,7 @@ /** * CreateAPISSOUserData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateAPISSOUserData { public static final String SERIALIZED_NAME_GROUP_IDS = "groupIds"; @SerializedName(SERIALIZED_NAME_GROUP_IDS) @@ -659,10 +659,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateAPIUserSubscriptionData.java b/client/src/main/java/com/fastcomments/model/CreateAPIUserSubscriptionData.java index a50b699e..d8e530e1 100644 --- a/client/src/main/java/com/fastcomments/model/CreateAPIUserSubscriptionData.java +++ b/client/src/main/java/com/fastcomments/model/CreateAPIUserSubscriptionData.java @@ -48,7 +48,7 @@ /** * CreateAPIUserSubscriptionData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateAPIUserSubscriptionData { public static final String SERIALIZED_NAME_NOTIFICATION_FREQUENCY = "notificationFrequency"; @SerializedName(SERIALIZED_NAME_NOTIFICATION_FREQUENCY) @@ -285,10 +285,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateCommentParams.java b/client/src/main/java/com/fastcomments/model/CreateCommentParams.java index fcf9488b..dc3fdaa0 100644 --- a/client/src/main/java/com/fastcomments/model/CreateCommentParams.java +++ b/client/src/main/java/com/fastcomments/model/CreateCommentParams.java @@ -16,7 +16,7 @@ import java.util.Objects; import com.fastcomments.model.CommentUserHashTagInfo; import com.fastcomments.model.CommentUserMentionInfo; -import com.fastcomments.model.RecordStringStringOrNumberValue; +import com.fastcomments.model.GifSearchResponseImagesInnerInner; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -55,7 +55,7 @@ /** * CreateCommentParams */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateCommentParams { public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) @@ -175,13 +175,18 @@ public class CreateCommentParams { public static final String SERIALIZED_NAME_QUESTION_VALUES = "questionValues"; @SerializedName(SERIALIZED_NAME_QUESTION_VALUES) @javax.annotation.Nullable - private Map questionValues = new HashMap<>(); + private Map questionValues = new HashMap<>(); public static final String SERIALIZED_NAME_TOS = "tos"; @SerializedName(SERIALIZED_NAME_TOS) @javax.annotation.Nullable private Boolean tos; + public static final String SERIALIZED_NAME_BOT_ID = "botId"; + @SerializedName(SERIALIZED_NAME_BOT_ID) + @javax.annotation.Nullable + private String botId; + public static final String SERIALIZED_NAME_APPROVED = "approved"; @SerializedName(SERIALIZED_NAME_APPROVED) @javax.annotation.Nullable @@ -704,12 +709,12 @@ public void setFeedbackIds(@javax.annotation.Nullable List feedbackIds) } - public CreateCommentParams questionValues(@javax.annotation.Nullable Map questionValues) { + public CreateCommentParams questionValues(@javax.annotation.Nullable Map questionValues) { this.questionValues = questionValues; return this; } - public CreateCommentParams putQuestionValuesItem(String key, RecordStringStringOrNumberValue questionValuesItem) { + public CreateCommentParams putQuestionValuesItem(String key, GifSearchResponseImagesInnerInner questionValuesItem) { if (this.questionValues == null) { this.questionValues = new HashMap<>(); } @@ -722,11 +727,11 @@ public CreateCommentParams putQuestionValuesItem(String key, RecordStringStringO * @return questionValues */ @javax.annotation.Nullable - public Map getQuestionValues() { + public Map getQuestionValues() { return questionValues; } - public void setQuestionValues(@javax.annotation.Nullable Map questionValues) { + public void setQuestionValues(@javax.annotation.Nullable Map questionValues) { this.questionValues = questionValues; } @@ -750,6 +755,25 @@ public void setTos(@javax.annotation.Nullable Boolean tos) { } + public CreateCommentParams botId(@javax.annotation.Nullable String botId) { + this.botId = botId; + return this; + } + + /** + * Get botId + * @return botId + */ + @javax.annotation.Nullable + public String getBotId() { + return botId; + } + + public void setBotId(@javax.annotation.Nullable String botId) { + this.botId = botId; + } + + public CreateCommentParams approved(@javax.annotation.Nullable Boolean approved) { this.approved = approved; return this; @@ -975,6 +999,7 @@ public boolean equals(Object o) { Objects.equals(this.feedbackIds, createCommentParams.feedbackIds) && Objects.equals(this.questionValues, createCommentParams.questionValues) && Objects.equals(this.tos, createCommentParams.tos) && + Objects.equals(this.botId, createCommentParams.botId) && Objects.equals(this.approved, createCommentParams.approved) && Objects.equals(this.domain, createCommentParams.domain) && Objects.equals(this.ip, createCommentParams.ip) && @@ -989,7 +1014,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(date, localDateString, localDateHours, commenterName, commenterEmail, commenterLink, comment, productId, userId, avatarSrc, parentId, mentions, hashTags, pageTitle, isFromMyAccountPage, url, urlId, meta, moderationGroupIds, rating, fromOfflineRestore, autoplayDelayMS, feedbackIds, questionValues, tos, approved, domain, ip, isPinned, locale, reviewed, verified, votes, votesDown, votesUp); + return Objects.hash(date, localDateString, localDateHours, commenterName, commenterEmail, commenterLink, comment, productId, userId, avatarSrc, parentId, mentions, hashTags, pageTitle, isFromMyAccountPage, url, urlId, meta, moderationGroupIds, rating, fromOfflineRestore, autoplayDelayMS, feedbackIds, questionValues, tos, botId, approved, domain, ip, isPinned, locale, reviewed, verified, votes, votesDown, votesUp); } @Override @@ -1021,6 +1046,7 @@ public String toString() { sb.append(" feedbackIds: ").append(toIndentedString(feedbackIds)).append("\n"); sb.append(" questionValues: ").append(toIndentedString(questionValues)).append("\n"); sb.append(" tos: ").append(toIndentedString(tos)).append("\n"); + sb.append(" botId: ").append(toIndentedString(botId)).append("\n"); sb.append(" approved: ").append(toIndentedString(approved)).append("\n"); sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); @@ -1040,10 +1066,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -1052,7 +1075,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("date", "localDateString", "localDateHours", "commenterName", "commenterEmail", "commenterLink", "comment", "productId", "userId", "avatarSrc", "parentId", "mentions", "hashTags", "pageTitle", "isFromMyAccountPage", "url", "urlId", "meta", "moderationGroupIds", "rating", "fromOfflineRestore", "autoplayDelayMS", "feedbackIds", "questionValues", "tos", "approved", "domain", "ip", "isPinned", "locale", "reviewed", "verified", "votes", "votesDown", "votesUp")); + openapiFields = new HashSet(Arrays.asList("date", "localDateString", "localDateHours", "commenterName", "commenterEmail", "commenterLink", "comment", "productId", "userId", "avatarSrc", "parentId", "mentions", "hashTags", "pageTitle", "isFromMyAccountPage", "url", "urlId", "meta", "moderationGroupIds", "rating", "fromOfflineRestore", "autoplayDelayMS", "feedbackIds", "questionValues", "tos", "botId", "approved", "domain", "ip", "isPinned", "locale", "reviewed", "verified", "votes", "votesDown", "votesUp")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("commenterName", "comment", "url", "urlId", "locale")); @@ -1155,6 +1178,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("feedbackIds") != null && !jsonObj.get("feedbackIds").isJsonNull() && !jsonObj.get("feedbackIds").isJsonArray()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `feedbackIds` to be an array in the JSON string but got `%s`", jsonObj.get("feedbackIds").toString())); } + if ((jsonObj.get("botId") != null && !jsonObj.get("botId").isJsonNull()) && !jsonObj.get("botId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `botId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("botId").toString())); + } if ((jsonObj.get("domain") != null && !jsonObj.get("domain").isJsonNull()) && !jsonObj.get("domain").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `domain` to be a primitive type in the JSON string but got `%s`", jsonObj.get("domain").toString())); } diff --git a/client/src/main/java/com/fastcomments/model/CreateCommentPublic200Response.java b/client/src/main/java/com/fastcomments/model/CreateCommentPublic200Response.java deleted file mode 100644 index d6185d0d..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateCommentPublic200Response.java +++ /dev/null @@ -1,273 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.PublicComment; -import com.fastcomments.model.SaveCommentsResponseWithPresence; -import com.fastcomments.model.UserSessionInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class CreateCommentPublic200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateCommentPublic200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateCommentPublic200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateCommentPublic200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterSaveCommentsResponseWithPresence = gson.getDelegateAdapter(this, TypeToken.get(SaveCommentsResponseWithPresence.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateCommentPublic200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `SaveCommentsResponseWithPresence` - if (value.getActualInstance() instanceof SaveCommentsResponseWithPresence) { - JsonElement element = adapterSaveCommentsResponseWithPresence.toJsonTree((SaveCommentsResponseWithPresence)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, SaveCommentsResponseWithPresence"); - } - - @Override - public CreateCommentPublic200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize SaveCommentsResponseWithPresence - try { - // validate the JSON object to see if any exception is thrown - SaveCommentsResponseWithPresence.validateJsonElement(jsonElement); - actualAdapter = adapterSaveCommentsResponseWithPresence; - CreateCommentPublic200Response ret = new CreateCommentPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SaveCommentsResponseWithPresence failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'SaveCommentsResponseWithPresence'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CreateCommentPublic200Response ret = new CreateCommentPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for CreateCommentPublic200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public CreateCommentPublic200Response() { - super("anyOf", Boolean.FALSE); - } - - public CreateCommentPublic200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("SaveCommentsResponseWithPresence", SaveCommentsResponseWithPresence.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateCommentPublic200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, SaveCommentsResponseWithPresence - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof SaveCommentsResponseWithPresence) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, SaveCommentsResponseWithPresence"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, SaveCommentsResponseWithPresence - * - * @return The actual instance (APIError, SaveCommentsResponseWithPresence) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `SaveCommentsResponseWithPresence`. If the actual instance is not `SaveCommentsResponseWithPresence`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SaveCommentsResponseWithPresence` - * @throws ClassCastException if the instance is not `SaveCommentsResponseWithPresence` - */ - public SaveCommentsResponseWithPresence getSaveCommentsResponseWithPresence() throws ClassCastException { - return (SaveCommentsResponseWithPresence)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateCommentPublic200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with SaveCommentsResponseWithPresence - try { - SaveCommentsResponseWithPresence.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SaveCommentsResponseWithPresence failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for CreateCommentPublic200Response with anyOf schemas: APIError, SaveCommentsResponseWithPresence. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of CreateCommentPublic200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateCommentPublic200Response - * @throws IOException if the JSON string is invalid with respect to CreateCommentPublic200Response - */ - public static CreateCommentPublic200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateCommentPublic200Response.class); - } - - /** - * Convert an instance of CreateCommentPublic200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/CreateEmailTemplate200Response.java b/client/src/main/java/com/fastcomments/model/CreateEmailTemplate200Response.java deleted file mode 100644 index b095bcc6..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateEmailTemplate200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateEmailTemplateResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.CustomEmailTemplate; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class CreateEmailTemplate200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateEmailTemplate200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateEmailTemplate200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateEmailTemplate200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCreateEmailTemplateResponse = gson.getDelegateAdapter(this, TypeToken.get(CreateEmailTemplateResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateEmailTemplate200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CreateEmailTemplateResponse` - if (value.getActualInstance() instanceof CreateEmailTemplateResponse) { - JsonElement element = adapterCreateEmailTemplateResponse.toJsonTree((CreateEmailTemplateResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, CreateEmailTemplateResponse"); - } - - @Override - public CreateEmailTemplate200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CreateEmailTemplateResponse - try { - // validate the JSON object to see if any exception is thrown - CreateEmailTemplateResponse.validateJsonElement(jsonElement); - actualAdapter = adapterCreateEmailTemplateResponse; - CreateEmailTemplate200Response ret = new CreateEmailTemplate200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateEmailTemplateResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CreateEmailTemplateResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CreateEmailTemplate200Response ret = new CreateEmailTemplate200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for CreateEmailTemplate200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public CreateEmailTemplate200Response() { - super("anyOf", Boolean.FALSE); - } - - public CreateEmailTemplate200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateEmailTemplateResponse", CreateEmailTemplateResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateEmailTemplate200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CreateEmailTemplateResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CreateEmailTemplateResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CreateEmailTemplateResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CreateEmailTemplateResponse - * - * @return The actual instance (APIError, CreateEmailTemplateResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CreateEmailTemplateResponse`. If the actual instance is not `CreateEmailTemplateResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CreateEmailTemplateResponse` - * @throws ClassCastException if the instance is not `CreateEmailTemplateResponse` - */ - public CreateEmailTemplateResponse getCreateEmailTemplateResponse() throws ClassCastException { - return (CreateEmailTemplateResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateEmailTemplate200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CreateEmailTemplateResponse - try { - CreateEmailTemplateResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateEmailTemplateResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for CreateEmailTemplate200Response with anyOf schemas: APIError, CreateEmailTemplateResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of CreateEmailTemplate200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateEmailTemplate200Response - * @throws IOException if the JSON string is invalid with respect to CreateEmailTemplate200Response - */ - public static CreateEmailTemplate200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateEmailTemplate200Response.class); - } - - /** - * Convert an instance of CreateEmailTemplate200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/CreateEmailTemplateBody.java b/client/src/main/java/com/fastcomments/model/CreateEmailTemplateBody.java index 2626c22d..25254cbb 100644 --- a/client/src/main/java/com/fastcomments/model/CreateEmailTemplateBody.java +++ b/client/src/main/java/com/fastcomments/model/CreateEmailTemplateBody.java @@ -50,7 +50,7 @@ /** * CreateEmailTemplateBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateEmailTemplateBody { public static final String SERIALIZED_NAME_EMAIL_TEMPLATE_ID = "emailTemplateId"; @SerializedName(SERIALIZED_NAME_EMAIL_TEMPLATE_ID) @@ -257,10 +257,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateEmailTemplateResponse.java b/client/src/main/java/com/fastcomments/model/CreateEmailTemplateResponse.java index ecb0752e..0b5014c6 100644 --- a/client/src/main/java/com/fastcomments/model/CreateEmailTemplateResponse.java +++ b/client/src/main/java/com/fastcomments/model/CreateEmailTemplateResponse.java @@ -50,7 +50,7 @@ /** * CreateEmailTemplateResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateEmailTemplateResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateFeedPost200Response.java b/client/src/main/java/com/fastcomments/model/CreateFeedPost200Response.java deleted file mode 100644 index 3c5e3bc8..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateFeedPost200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateFeedPostsResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FeedPost; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class CreateFeedPost200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateFeedPost200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateFeedPost200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateFeedPost200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCreateFeedPostsResponse = gson.getDelegateAdapter(this, TypeToken.get(CreateFeedPostsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateFeedPost200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CreateFeedPostsResponse` - if (value.getActualInstance() instanceof CreateFeedPostsResponse) { - JsonElement element = adapterCreateFeedPostsResponse.toJsonTree((CreateFeedPostsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, CreateFeedPostsResponse"); - } - - @Override - public CreateFeedPost200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CreateFeedPostsResponse - try { - // validate the JSON object to see if any exception is thrown - CreateFeedPostsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterCreateFeedPostsResponse; - CreateFeedPost200Response ret = new CreateFeedPost200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateFeedPostsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CreateFeedPostsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CreateFeedPost200Response ret = new CreateFeedPost200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for CreateFeedPost200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public CreateFeedPost200Response() { - super("anyOf", Boolean.FALSE); - } - - public CreateFeedPost200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateFeedPostsResponse", CreateFeedPostsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateFeedPost200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CreateFeedPostsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CreateFeedPostsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CreateFeedPostsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CreateFeedPostsResponse - * - * @return The actual instance (APIError, CreateFeedPostsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CreateFeedPostsResponse`. If the actual instance is not `CreateFeedPostsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CreateFeedPostsResponse` - * @throws ClassCastException if the instance is not `CreateFeedPostsResponse` - */ - public CreateFeedPostsResponse getCreateFeedPostsResponse() throws ClassCastException { - return (CreateFeedPostsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateFeedPost200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CreateFeedPostsResponse - try { - CreateFeedPostsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateFeedPostsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for CreateFeedPost200Response with anyOf schemas: APIError, CreateFeedPostsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of CreateFeedPost200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateFeedPost200Response - * @throws IOException if the JSON string is invalid with respect to CreateFeedPost200Response - */ - public static CreateFeedPost200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateFeedPost200Response.class); - } - - /** - * Convert an instance of CreateFeedPost200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/CreateFeedPostParams.java b/client/src/main/java/com/fastcomments/model/CreateFeedPostParams.java index b9596ef7..3dd9421a 100644 --- a/client/src/main/java/com/fastcomments/model/CreateFeedPostParams.java +++ b/client/src/main/java/com/fastcomments/model/CreateFeedPostParams.java @@ -54,7 +54,7 @@ /** * CreateFeedPostParams */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateFeedPostParams { public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -329,10 +329,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateFeedPostPublic200Response.java b/client/src/main/java/com/fastcomments/model/CreateFeedPostPublic200Response.java deleted file mode 100644 index a9ac4a00..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateFeedPostPublic200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateFeedPostResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FeedPost; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class CreateFeedPostPublic200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateFeedPostPublic200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateFeedPostPublic200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateFeedPostPublic200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCreateFeedPostResponse = gson.getDelegateAdapter(this, TypeToken.get(CreateFeedPostResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateFeedPostPublic200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CreateFeedPostResponse` - if (value.getActualInstance() instanceof CreateFeedPostResponse) { - JsonElement element = adapterCreateFeedPostResponse.toJsonTree((CreateFeedPostResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, CreateFeedPostResponse"); - } - - @Override - public CreateFeedPostPublic200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CreateFeedPostResponse - try { - // validate the JSON object to see if any exception is thrown - CreateFeedPostResponse.validateJsonElement(jsonElement); - actualAdapter = adapterCreateFeedPostResponse; - CreateFeedPostPublic200Response ret = new CreateFeedPostPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateFeedPostResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CreateFeedPostResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CreateFeedPostPublic200Response ret = new CreateFeedPostPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for CreateFeedPostPublic200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public CreateFeedPostPublic200Response() { - super("anyOf", Boolean.FALSE); - } - - public CreateFeedPostPublic200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateFeedPostResponse", CreateFeedPostResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateFeedPostPublic200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CreateFeedPostResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CreateFeedPostResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CreateFeedPostResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CreateFeedPostResponse - * - * @return The actual instance (APIError, CreateFeedPostResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CreateFeedPostResponse`. If the actual instance is not `CreateFeedPostResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CreateFeedPostResponse` - * @throws ClassCastException if the instance is not `CreateFeedPostResponse` - */ - public CreateFeedPostResponse getCreateFeedPostResponse() throws ClassCastException { - return (CreateFeedPostResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateFeedPostPublic200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CreateFeedPostResponse - try { - CreateFeedPostResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateFeedPostResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for CreateFeedPostPublic200Response with anyOf schemas: APIError, CreateFeedPostResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of CreateFeedPostPublic200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateFeedPostPublic200Response - * @throws IOException if the JSON string is invalid with respect to CreateFeedPostPublic200Response - */ - public static CreateFeedPostPublic200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateFeedPostPublic200Response.class); - } - - /** - * Convert an instance of CreateFeedPostPublic200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/CreateFeedPostResponse.java b/client/src/main/java/com/fastcomments/model/CreateFeedPostResponse.java index efc1b0fd..af29b945 100644 --- a/client/src/main/java/com/fastcomments/model/CreateFeedPostResponse.java +++ b/client/src/main/java/com/fastcomments/model/CreateFeedPostResponse.java @@ -50,7 +50,7 @@ /** * CreateFeedPostResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateFeedPostResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateFeedPostsResponse.java b/client/src/main/java/com/fastcomments/model/CreateFeedPostsResponse.java index de1c54f2..df23fd28 100644 --- a/client/src/main/java/com/fastcomments/model/CreateFeedPostsResponse.java +++ b/client/src/main/java/com/fastcomments/model/CreateFeedPostsResponse.java @@ -50,7 +50,7 @@ /** * CreateFeedPostsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateFeedPostsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateHashTagBody.java b/client/src/main/java/com/fastcomments/model/CreateHashTagBody.java index 4b6b1fb0..f9438edb 100644 --- a/client/src/main/java/com/fastcomments/model/CreateHashTagBody.java +++ b/client/src/main/java/com/fastcomments/model/CreateHashTagBody.java @@ -48,7 +48,7 @@ /** * CreateHashTagBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateHashTagBody { public static final String SERIALIZED_NAME_TENANT_ID = "tenantId"; @SerializedName(SERIALIZED_NAME_TENANT_ID) @@ -161,10 +161,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateHashTagResponse.java b/client/src/main/java/com/fastcomments/model/CreateHashTagResponse.java index eeafe3d6..1b304810 100644 --- a/client/src/main/java/com/fastcomments/model/CreateHashTagResponse.java +++ b/client/src/main/java/com/fastcomments/model/CreateHashTagResponse.java @@ -50,7 +50,7 @@ /** * CreateHashTagResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateHashTagResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateModerator200Response.java b/client/src/main/java/com/fastcomments/model/CreateModerator200Response.java deleted file mode 100644 index 6fbf4398..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateModerator200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateModeratorResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.Moderator; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class CreateModerator200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateModerator200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateModerator200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateModerator200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCreateModeratorResponse = gson.getDelegateAdapter(this, TypeToken.get(CreateModeratorResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateModerator200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CreateModeratorResponse` - if (value.getActualInstance() instanceof CreateModeratorResponse) { - JsonElement element = adapterCreateModeratorResponse.toJsonTree((CreateModeratorResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, CreateModeratorResponse"); - } - - @Override - public CreateModerator200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CreateModeratorResponse - try { - // validate the JSON object to see if any exception is thrown - CreateModeratorResponse.validateJsonElement(jsonElement); - actualAdapter = adapterCreateModeratorResponse; - CreateModerator200Response ret = new CreateModerator200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateModeratorResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CreateModeratorResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CreateModerator200Response ret = new CreateModerator200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for CreateModerator200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public CreateModerator200Response() { - super("anyOf", Boolean.FALSE); - } - - public CreateModerator200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateModeratorResponse", CreateModeratorResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateModerator200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CreateModeratorResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CreateModeratorResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CreateModeratorResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CreateModeratorResponse - * - * @return The actual instance (APIError, CreateModeratorResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CreateModeratorResponse`. If the actual instance is not `CreateModeratorResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CreateModeratorResponse` - * @throws ClassCastException if the instance is not `CreateModeratorResponse` - */ - public CreateModeratorResponse getCreateModeratorResponse() throws ClassCastException { - return (CreateModeratorResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateModerator200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CreateModeratorResponse - try { - CreateModeratorResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateModeratorResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for CreateModerator200Response with anyOf schemas: APIError, CreateModeratorResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of CreateModerator200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateModerator200Response - * @throws IOException if the JSON string is invalid with respect to CreateModerator200Response - */ - public static CreateModerator200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateModerator200Response.class); - } - - /** - * Convert an instance of CreateModerator200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/CreateModeratorBody.java b/client/src/main/java/com/fastcomments/model/CreateModeratorBody.java index fb9e817e..d312c1d0 100644 --- a/client/src/main/java/com/fastcomments/model/CreateModeratorBody.java +++ b/client/src/main/java/com/fastcomments/model/CreateModeratorBody.java @@ -50,7 +50,7 @@ /** * CreateModeratorBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateModeratorBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -243,10 +243,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateModeratorResponse.java b/client/src/main/java/com/fastcomments/model/CreateModeratorResponse.java index 62aa5ed6..cc185ee1 100644 --- a/client/src/main/java/com/fastcomments/model/CreateModeratorResponse.java +++ b/client/src/main/java/com/fastcomments/model/CreateModeratorResponse.java @@ -50,7 +50,7 @@ /** * CreateModeratorResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateModeratorResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateQuestionConfig200Response.java b/client/src/main/java/com/fastcomments/model/CreateQuestionConfig200Response.java deleted file mode 100644 index 5489991d..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateQuestionConfig200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateQuestionConfigResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.QuestionConfig; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class CreateQuestionConfig200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateQuestionConfig200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateQuestionConfig200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateQuestionConfig200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCreateQuestionConfigResponse = gson.getDelegateAdapter(this, TypeToken.get(CreateQuestionConfigResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateQuestionConfig200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CreateQuestionConfigResponse` - if (value.getActualInstance() instanceof CreateQuestionConfigResponse) { - JsonElement element = adapterCreateQuestionConfigResponse.toJsonTree((CreateQuestionConfigResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, CreateQuestionConfigResponse"); - } - - @Override - public CreateQuestionConfig200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CreateQuestionConfigResponse - try { - // validate the JSON object to see if any exception is thrown - CreateQuestionConfigResponse.validateJsonElement(jsonElement); - actualAdapter = adapterCreateQuestionConfigResponse; - CreateQuestionConfig200Response ret = new CreateQuestionConfig200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateQuestionConfigResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CreateQuestionConfigResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CreateQuestionConfig200Response ret = new CreateQuestionConfig200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for CreateQuestionConfig200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public CreateQuestionConfig200Response() { - super("anyOf", Boolean.FALSE); - } - - public CreateQuestionConfig200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateQuestionConfigResponse", CreateQuestionConfigResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateQuestionConfig200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CreateQuestionConfigResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CreateQuestionConfigResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CreateQuestionConfigResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CreateQuestionConfigResponse - * - * @return The actual instance (APIError, CreateQuestionConfigResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CreateQuestionConfigResponse`. If the actual instance is not `CreateQuestionConfigResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CreateQuestionConfigResponse` - * @throws ClassCastException if the instance is not `CreateQuestionConfigResponse` - */ - public CreateQuestionConfigResponse getCreateQuestionConfigResponse() throws ClassCastException { - return (CreateQuestionConfigResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateQuestionConfig200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CreateQuestionConfigResponse - try { - CreateQuestionConfigResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateQuestionConfigResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for CreateQuestionConfig200Response with anyOf schemas: APIError, CreateQuestionConfigResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of CreateQuestionConfig200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateQuestionConfig200Response - * @throws IOException if the JSON string is invalid with respect to CreateQuestionConfig200Response - */ - public static CreateQuestionConfig200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateQuestionConfig200Response.class); - } - - /** - * Convert an instance of CreateQuestionConfig200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/CreateQuestionConfigBody.java b/client/src/main/java/com/fastcomments/model/CreateQuestionConfigBody.java index 14ddc12a..2d1530ee 100644 --- a/client/src/main/java/com/fastcomments/model/CreateQuestionConfigBody.java +++ b/client/src/main/java/com/fastcomments/model/CreateQuestionConfigBody.java @@ -51,7 +51,7 @@ /** * CreateQuestionConfigBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateQuestionConfigBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -512,10 +512,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateQuestionConfigResponse.java b/client/src/main/java/com/fastcomments/model/CreateQuestionConfigResponse.java index 6a679380..66507d44 100644 --- a/client/src/main/java/com/fastcomments/model/CreateQuestionConfigResponse.java +++ b/client/src/main/java/com/fastcomments/model/CreateQuestionConfigResponse.java @@ -50,7 +50,7 @@ /** * CreateQuestionConfigResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateQuestionConfigResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateQuestionResult200Response.java b/client/src/main/java/com/fastcomments/model/CreateQuestionResult200Response.java deleted file mode 100644 index 3fb7450e..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateQuestionResult200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateQuestionResultResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.QuestionResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class CreateQuestionResult200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateQuestionResult200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateQuestionResult200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateQuestionResult200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCreateQuestionResultResponse = gson.getDelegateAdapter(this, TypeToken.get(CreateQuestionResultResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateQuestionResult200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CreateQuestionResultResponse` - if (value.getActualInstance() instanceof CreateQuestionResultResponse) { - JsonElement element = adapterCreateQuestionResultResponse.toJsonTree((CreateQuestionResultResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, CreateQuestionResultResponse"); - } - - @Override - public CreateQuestionResult200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CreateQuestionResultResponse - try { - // validate the JSON object to see if any exception is thrown - CreateQuestionResultResponse.validateJsonElement(jsonElement); - actualAdapter = adapterCreateQuestionResultResponse; - CreateQuestionResult200Response ret = new CreateQuestionResult200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateQuestionResultResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CreateQuestionResultResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CreateQuestionResult200Response ret = new CreateQuestionResult200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for CreateQuestionResult200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public CreateQuestionResult200Response() { - super("anyOf", Boolean.FALSE); - } - - public CreateQuestionResult200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateQuestionResultResponse", CreateQuestionResultResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateQuestionResult200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CreateQuestionResultResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CreateQuestionResultResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CreateQuestionResultResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CreateQuestionResultResponse - * - * @return The actual instance (APIError, CreateQuestionResultResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CreateQuestionResultResponse`. If the actual instance is not `CreateQuestionResultResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CreateQuestionResultResponse` - * @throws ClassCastException if the instance is not `CreateQuestionResultResponse` - */ - public CreateQuestionResultResponse getCreateQuestionResultResponse() throws ClassCastException { - return (CreateQuestionResultResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateQuestionResult200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CreateQuestionResultResponse - try { - CreateQuestionResultResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateQuestionResultResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for CreateQuestionResult200Response with anyOf schemas: APIError, CreateQuestionResultResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of CreateQuestionResult200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateQuestionResult200Response - * @throws IOException if the JSON string is invalid with respect to CreateQuestionResult200Response - */ - public static CreateQuestionResult200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateQuestionResult200Response.class); - } - - /** - * Convert an instance of CreateQuestionResult200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/CreateQuestionResultBody.java b/client/src/main/java/com/fastcomments/model/CreateQuestionResultBody.java index 86b8be5b..0f6e6078 100644 --- a/client/src/main/java/com/fastcomments/model/CreateQuestionResultBody.java +++ b/client/src/main/java/com/fastcomments/model/CreateQuestionResultBody.java @@ -51,7 +51,7 @@ /** * CreateQuestionResultBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateQuestionResultBody { public static final String SERIALIZED_NAME_URL_ID = "urlId"; @SerializedName(SERIALIZED_NAME_URL_ID) @@ -322,10 +322,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateQuestionResultResponse.java b/client/src/main/java/com/fastcomments/model/CreateQuestionResultResponse.java index e1e69bb7..a0591fc9 100644 --- a/client/src/main/java/com/fastcomments/model/CreateQuestionResultResponse.java +++ b/client/src/main/java/com/fastcomments/model/CreateQuestionResultResponse.java @@ -50,7 +50,7 @@ /** * CreateQuestionResultResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateQuestionResultResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateSubscriptionAPIResponse.java b/client/src/main/java/com/fastcomments/model/CreateSubscriptionAPIResponse.java index 4a088ae3..9667fc92 100644 --- a/client/src/main/java/com/fastcomments/model/CreateSubscriptionAPIResponse.java +++ b/client/src/main/java/com/fastcomments/model/CreateSubscriptionAPIResponse.java @@ -49,7 +49,7 @@ /** * CreateSubscriptionAPIResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateSubscriptionAPIResponse { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -234,10 +234,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateTenant200Response.java b/client/src/main/java/com/fastcomments/model/CreateTenant200Response.java deleted file mode 100644 index fd6c5644..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateTenant200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITenant; -import com.fastcomments.model.CreateTenantResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class CreateTenant200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateTenant200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateTenant200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateTenant200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCreateTenantResponse = gson.getDelegateAdapter(this, TypeToken.get(CreateTenantResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateTenant200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CreateTenantResponse` - if (value.getActualInstance() instanceof CreateTenantResponse) { - JsonElement element = adapterCreateTenantResponse.toJsonTree((CreateTenantResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, CreateTenantResponse"); - } - - @Override - public CreateTenant200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CreateTenantResponse - try { - // validate the JSON object to see if any exception is thrown - CreateTenantResponse.validateJsonElement(jsonElement); - actualAdapter = adapterCreateTenantResponse; - CreateTenant200Response ret = new CreateTenant200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateTenantResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CreateTenantResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CreateTenant200Response ret = new CreateTenant200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for CreateTenant200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public CreateTenant200Response() { - super("anyOf", Boolean.FALSE); - } - - public CreateTenant200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateTenantResponse", CreateTenantResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateTenant200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CreateTenantResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CreateTenantResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CreateTenantResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CreateTenantResponse - * - * @return The actual instance (APIError, CreateTenantResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CreateTenantResponse`. If the actual instance is not `CreateTenantResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CreateTenantResponse` - * @throws ClassCastException if the instance is not `CreateTenantResponse` - */ - public CreateTenantResponse getCreateTenantResponse() throws ClassCastException { - return (CreateTenantResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateTenant200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CreateTenantResponse - try { - CreateTenantResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateTenantResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for CreateTenant200Response with anyOf schemas: APIError, CreateTenantResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of CreateTenant200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateTenant200Response - * @throws IOException if the JSON string is invalid with respect to CreateTenant200Response - */ - public static CreateTenant200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateTenant200Response.class); - } - - /** - * Convert an instance of CreateTenant200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/CreateTenantBody.java b/client/src/main/java/com/fastcomments/model/CreateTenantBody.java index be4914f1..6a58a47f 100644 --- a/client/src/main/java/com/fastcomments/model/CreateTenantBody.java +++ b/client/src/main/java/com/fastcomments/model/CreateTenantBody.java @@ -54,7 +54,7 @@ /** * CreateTenantBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateTenantBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -703,10 +703,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -752,16 +749,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - // ensure the json data is an array - if (!jsonObj.get("domainConfiguration").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `domainConfiguration` to be an array in the JSON string but got `%s`", jsonObj.get("domainConfiguration").toString())); + if (jsonObj.get("domainConfiguration") != null) { + if (!jsonObj.get("domainConfiguration").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `domainConfiguration` to be an array in the JSON string but got `%s`", jsonObj.get("domainConfiguration").toString())); + } + JsonArray jsonArraydomainConfiguration = jsonObj.getAsJsonArray("domainConfiguration"); + // validate the required field `domainConfiguration` (array) + for (int i = 0; i < jsonArraydomainConfiguration.size(); i++) { + APIDomainConfiguration.validateJsonElement(jsonArraydomainConfiguration.get(i)); + } } - - JsonArray jsonArraydomainConfiguration = jsonObj.getAsJsonArray("domainConfiguration"); - // validate the required field `domainConfiguration` (array) - for (int i = 0; i < jsonArraydomainConfiguration.size(); i++) { - APIDomainConfiguration.validateJsonElement(jsonArraydomainConfiguration.get(i)); - }; if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); } diff --git a/client/src/main/java/com/fastcomments/model/CreateTenantPackage200Response.java b/client/src/main/java/com/fastcomments/model/CreateTenantPackage200Response.java deleted file mode 100644 index 5753774d..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateTenantPackage200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateTenantPackageResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.TenantPackage; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class CreateTenantPackage200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateTenantPackage200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateTenantPackage200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateTenantPackage200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCreateTenantPackageResponse = gson.getDelegateAdapter(this, TypeToken.get(CreateTenantPackageResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateTenantPackage200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CreateTenantPackageResponse` - if (value.getActualInstance() instanceof CreateTenantPackageResponse) { - JsonElement element = adapterCreateTenantPackageResponse.toJsonTree((CreateTenantPackageResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, CreateTenantPackageResponse"); - } - - @Override - public CreateTenantPackage200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CreateTenantPackageResponse - try { - // validate the JSON object to see if any exception is thrown - CreateTenantPackageResponse.validateJsonElement(jsonElement); - actualAdapter = adapterCreateTenantPackageResponse; - CreateTenantPackage200Response ret = new CreateTenantPackage200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateTenantPackageResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CreateTenantPackageResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CreateTenantPackage200Response ret = new CreateTenantPackage200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for CreateTenantPackage200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public CreateTenantPackage200Response() { - super("anyOf", Boolean.FALSE); - } - - public CreateTenantPackage200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateTenantPackageResponse", CreateTenantPackageResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateTenantPackage200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CreateTenantPackageResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CreateTenantPackageResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CreateTenantPackageResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CreateTenantPackageResponse - * - * @return The actual instance (APIError, CreateTenantPackageResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CreateTenantPackageResponse`. If the actual instance is not `CreateTenantPackageResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CreateTenantPackageResponse` - * @throws ClassCastException if the instance is not `CreateTenantPackageResponse` - */ - public CreateTenantPackageResponse getCreateTenantPackageResponse() throws ClassCastException { - return (CreateTenantPackageResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateTenantPackage200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CreateTenantPackageResponse - try { - CreateTenantPackageResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateTenantPackageResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for CreateTenantPackage200Response with anyOf schemas: APIError, CreateTenantPackageResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of CreateTenantPackage200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateTenantPackage200Response - * @throws IOException if the JSON string is invalid with respect to CreateTenantPackage200Response - */ - public static CreateTenantPackage200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateTenantPackage200Response.class); - } - - /** - * Convert an instance of CreateTenantPackage200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/CreateTenantPackageBody.java b/client/src/main/java/com/fastcomments/model/CreateTenantPackageBody.java index 66414605..1cc9fb1a 100644 --- a/client/src/main/java/com/fastcomments/model/CreateTenantPackageBody.java +++ b/client/src/main/java/com/fastcomments/model/CreateTenantPackageBody.java @@ -50,7 +50,7 @@ /** * CreateTenantPackageBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateTenantPackageBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -1367,10 +1367,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateTenantPackageResponse.java b/client/src/main/java/com/fastcomments/model/CreateTenantPackageResponse.java index 15a7cebd..a5e9c70d 100644 --- a/client/src/main/java/com/fastcomments/model/CreateTenantPackageResponse.java +++ b/client/src/main/java/com/fastcomments/model/CreateTenantPackageResponse.java @@ -50,7 +50,7 @@ /** * CreateTenantPackageResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateTenantPackageResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateTenantResponse.java b/client/src/main/java/com/fastcomments/model/CreateTenantResponse.java index c027c4e9..b5730387 100644 --- a/client/src/main/java/com/fastcomments/model/CreateTenantResponse.java +++ b/client/src/main/java/com/fastcomments/model/CreateTenantResponse.java @@ -50,7 +50,7 @@ /** * CreateTenantResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateTenantResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateTenantUser200Response.java b/client/src/main/java/com/fastcomments/model/CreateTenantUser200Response.java deleted file mode 100644 index dfa5d620..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateTenantUser200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateTenantUserResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.User; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class CreateTenantUser200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateTenantUser200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateTenantUser200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateTenantUser200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCreateTenantUserResponse = gson.getDelegateAdapter(this, TypeToken.get(CreateTenantUserResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateTenantUser200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CreateTenantUserResponse` - if (value.getActualInstance() instanceof CreateTenantUserResponse) { - JsonElement element = adapterCreateTenantUserResponse.toJsonTree((CreateTenantUserResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, CreateTenantUserResponse"); - } - - @Override - public CreateTenantUser200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CreateTenantUserResponse - try { - // validate the JSON object to see if any exception is thrown - CreateTenantUserResponse.validateJsonElement(jsonElement); - actualAdapter = adapterCreateTenantUserResponse; - CreateTenantUser200Response ret = new CreateTenantUser200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateTenantUserResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CreateTenantUserResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CreateTenantUser200Response ret = new CreateTenantUser200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for CreateTenantUser200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public CreateTenantUser200Response() { - super("anyOf", Boolean.FALSE); - } - - public CreateTenantUser200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateTenantUserResponse", CreateTenantUserResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateTenantUser200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CreateTenantUserResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CreateTenantUserResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CreateTenantUserResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CreateTenantUserResponse - * - * @return The actual instance (APIError, CreateTenantUserResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CreateTenantUserResponse`. If the actual instance is not `CreateTenantUserResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CreateTenantUserResponse` - * @throws ClassCastException if the instance is not `CreateTenantUserResponse` - */ - public CreateTenantUserResponse getCreateTenantUserResponse() throws ClassCastException { - return (CreateTenantUserResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateTenantUser200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CreateTenantUserResponse - try { - CreateTenantUserResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateTenantUserResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for CreateTenantUser200Response with anyOf schemas: APIError, CreateTenantUserResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of CreateTenantUser200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateTenantUser200Response - * @throws IOException if the JSON string is invalid with respect to CreateTenantUser200Response - */ - public static CreateTenantUser200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateTenantUser200Response.class); - } - - /** - * Convert an instance of CreateTenantUser200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/CreateTenantUserBody.java b/client/src/main/java/com/fastcomments/model/CreateTenantUserBody.java index 6c8fbaae..734e605f 100644 --- a/client/src/main/java/com/fastcomments/model/CreateTenantUserBody.java +++ b/client/src/main/java/com/fastcomments/model/CreateTenantUserBody.java @@ -50,7 +50,7 @@ /** * CreateTenantUserBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateTenantUserBody { public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) @@ -717,10 +717,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateTenantUserResponse.java b/client/src/main/java/com/fastcomments/model/CreateTenantUserResponse.java index 1ed1352f..fdde7ddd 100644 --- a/client/src/main/java/com/fastcomments/model/CreateTenantUserResponse.java +++ b/client/src/main/java/com/fastcomments/model/CreateTenantUserResponse.java @@ -50,7 +50,7 @@ /** * CreateTenantUserResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateTenantUserResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateTicket200Response.java b/client/src/main/java/com/fastcomments/model/CreateTicket200Response.java deleted file mode 100644 index 2bccbe9e..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateTicket200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITicket; -import com.fastcomments.model.CreateTicketResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class CreateTicket200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateTicket200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateTicket200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateTicket200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCreateTicketResponse = gson.getDelegateAdapter(this, TypeToken.get(CreateTicketResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateTicket200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CreateTicketResponse` - if (value.getActualInstance() instanceof CreateTicketResponse) { - JsonElement element = adapterCreateTicketResponse.toJsonTree((CreateTicketResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, CreateTicketResponse"); - } - - @Override - public CreateTicket200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CreateTicketResponse - try { - // validate the JSON object to see if any exception is thrown - CreateTicketResponse.validateJsonElement(jsonElement); - actualAdapter = adapterCreateTicketResponse; - CreateTicket200Response ret = new CreateTicket200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateTicketResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CreateTicketResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CreateTicket200Response ret = new CreateTicket200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for CreateTicket200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public CreateTicket200Response() { - super("anyOf", Boolean.FALSE); - } - - public CreateTicket200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateTicketResponse", CreateTicketResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateTicket200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CreateTicketResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CreateTicketResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CreateTicketResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CreateTicketResponse - * - * @return The actual instance (APIError, CreateTicketResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CreateTicketResponse`. If the actual instance is not `CreateTicketResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CreateTicketResponse` - * @throws ClassCastException if the instance is not `CreateTicketResponse` - */ - public CreateTicketResponse getCreateTicketResponse() throws ClassCastException { - return (CreateTicketResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateTicket200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CreateTicketResponse - try { - CreateTicketResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateTicketResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for CreateTicket200Response with anyOf schemas: APIError, CreateTicketResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of CreateTicket200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateTicket200Response - * @throws IOException if the JSON string is invalid with respect to CreateTicket200Response - */ - public static CreateTicket200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateTicket200Response.class); - } - - /** - * Convert an instance of CreateTicket200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/CreateTicketBody.java b/client/src/main/java/com/fastcomments/model/CreateTicketBody.java index 39e71d5d..2fbce0df 100644 --- a/client/src/main/java/com/fastcomments/model/CreateTicketBody.java +++ b/client/src/main/java/com/fastcomments/model/CreateTicketBody.java @@ -48,7 +48,7 @@ /** * CreateTicketBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateTicketBody { public static final String SERIALIZED_NAME_SUBJECT = "subject"; @SerializedName(SERIALIZED_NAME_SUBJECT) @@ -109,10 +109,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateTicketResponse.java b/client/src/main/java/com/fastcomments/model/CreateTicketResponse.java index da949aae..bee53254 100644 --- a/client/src/main/java/com/fastcomments/model/CreateTicketResponse.java +++ b/client/src/main/java/com/fastcomments/model/CreateTicketResponse.java @@ -50,7 +50,7 @@ /** * CreateTicketResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateTicketResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateUserBadge200Response.java b/client/src/main/java/com/fastcomments/model/CreateUserBadge200Response.java deleted file mode 100644 index 52715e76..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateUserBadge200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APICreateUserBadgeResponse; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.UserBadge; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class CreateUserBadge200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateUserBadge200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateUserBadge200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateUserBadge200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAPICreateUserBadgeResponse = gson.getDelegateAdapter(this, TypeToken.get(APICreateUserBadgeResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateUserBadge200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `APICreateUserBadgeResponse` - if (value.getActualInstance() instanceof APICreateUserBadgeResponse) { - JsonElement element = adapterAPICreateUserBadgeResponse.toJsonTree((APICreateUserBadgeResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APICreateUserBadgeResponse, APIError"); - } - - @Override - public CreateUserBadge200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize APICreateUserBadgeResponse - try { - // validate the JSON object to see if any exception is thrown - APICreateUserBadgeResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAPICreateUserBadgeResponse; - CreateUserBadge200Response ret = new CreateUserBadge200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APICreateUserBadgeResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APICreateUserBadgeResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CreateUserBadge200Response ret = new CreateUserBadge200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for CreateUserBadge200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public CreateUserBadge200Response() { - super("anyOf", Boolean.FALSE); - } - - public CreateUserBadge200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APICreateUserBadgeResponse", APICreateUserBadgeResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateUserBadge200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APICreateUserBadgeResponse, APIError - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof APICreateUserBadgeResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APICreateUserBadgeResponse, APIError"); - } - - /** - * Get the actual instance, which can be the following: - * APICreateUserBadgeResponse, APIError - * - * @return The actual instance (APICreateUserBadgeResponse, APIError) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `APICreateUserBadgeResponse`. If the actual instance is not `APICreateUserBadgeResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APICreateUserBadgeResponse` - * @throws ClassCastException if the instance is not `APICreateUserBadgeResponse` - */ - public APICreateUserBadgeResponse getAPICreateUserBadgeResponse() throws ClassCastException { - return (APICreateUserBadgeResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateUserBadge200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with APICreateUserBadgeResponse - try { - APICreateUserBadgeResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APICreateUserBadgeResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for CreateUserBadge200Response with anyOf schemas: APICreateUserBadgeResponse, APIError. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of CreateUserBadge200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateUserBadge200Response - * @throws IOException if the JSON string is invalid with respect to CreateUserBadge200Response - */ - public static CreateUserBadge200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateUserBadge200Response.class); - } - - /** - * Convert an instance of CreateUserBadge200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/CreateUserBadgeParams.java b/client/src/main/java/com/fastcomments/model/CreateUserBadgeParams.java index f7eaa458..34a52dae 100644 --- a/client/src/main/java/com/fastcomments/model/CreateUserBadgeParams.java +++ b/client/src/main/java/com/fastcomments/model/CreateUserBadgeParams.java @@ -48,7 +48,7 @@ /** * CreateUserBadgeParams */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CreateUserBadgeParams { public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) @@ -161,10 +161,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/CreateV1PageReact.java b/client/src/main/java/com/fastcomments/model/CreateV1PageReact.java new file mode 100644 index 00000000..8521e0ea --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateV1PageReact.java @@ -0,0 +1,319 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * CreateV1PageReact + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class CreateV1PageReact { + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable + private String code; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public CreateV1PageReact() { + } + + public CreateV1PageReact code(@javax.annotation.Nullable String code) { + this.code = code; + return this; + } + + /** + * Get code + * @return code + */ + @javax.annotation.Nullable + public String getCode() { + return code; + } + + public void setCode(@javax.annotation.Nullable String code) { + this.code = code; + } + + + public CreateV1PageReact status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the CreateV1PageReact instance itself + */ + public CreateV1PageReact putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateV1PageReact createV1PageReact = (CreateV1PageReact) o; + return Objects.equals(this.code, createV1PageReact.code) && + Objects.equals(this.status, createV1PageReact.status)&& + Objects.equals(this.additionalProperties, createV1PageReact.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(code, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateV1PageReact {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("code", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CreateV1PageReact + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!CreateV1PageReact.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in CreateV1PageReact is not found in the empty JSON string", CreateV1PageReact.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : CreateV1PageReact.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateV1PageReact.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateV1PageReact' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreateV1PageReact.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, CreateV1PageReact value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public CreateV1PageReact read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + CreateV1PageReact instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of CreateV1PageReact given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateV1PageReact + * @throws IOException if the JSON string is invalid with respect to CreateV1PageReact + */ + public static CreateV1PageReact fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateV1PageReact.class); + } + + /** + * Convert an instance of CreateV1PageReact to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/CustomConfigParameters.java b/client/src/main/java/com/fastcomments/model/CustomConfigParameters.java index a3d6c96c..4a0abca6 100644 --- a/client/src/main/java/com/fastcomments/model/CustomConfigParameters.java +++ b/client/src/main/java/com/fastcomments/model/CustomConfigParameters.java @@ -29,6 +29,7 @@ import com.fastcomments.model.SortDirections; import com.fastcomments.model.SpamRule; import com.fastcomments.model.TOSConfig; +import com.fastcomments.model.UsersListLocation; import com.fastcomments.model.VoteStyle; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -68,7 +69,7 @@ /** * CustomConfigParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CustomConfigParameters { public static final String SERIALIZED_NAME_ABSOLUTE_AND_RELATIVE_DATES = "absoluteAndRelativeDates"; @SerializedName(SERIALIZED_NAME_ABSOLUTE_AND_RELATIVE_DATES) @@ -330,6 +331,16 @@ public class CustomConfigParameters { @javax.annotation.Nullable private Boolean noImageUploads; + public static final String SERIALIZED_NAME_ALLOW_EMBEDS = "allowEmbeds"; + @SerializedName(SERIALIZED_NAME_ALLOW_EMBEDS) + @javax.annotation.Nullable + private Boolean allowEmbeds; + + public static final String SERIALIZED_NAME_ALLOWED_EMBED_DOMAINS = "allowedEmbedDomains"; + @SerializedName(SERIALIZED_NAME_ALLOWED_EMBED_DOMAINS) + @javax.annotation.Nullable + private List allowedEmbedDomains; + public static final String SERIALIZED_NAME_NO_STYLES = "noStyles"; @SerializedName(SERIALIZED_NAME_NO_STYLES) @javax.annotation.Nullable @@ -355,6 +366,11 @@ public class CustomConfigParameters { @javax.annotation.Nullable private Boolean requireSSO; + public static final String SERIALIZED_NAME_ENABLE_F_CHAT = "enableFChat"; + @SerializedName(SERIALIZED_NAME_ENABLE_F_CHAT) + @javax.annotation.Nullable + private Boolean enableFChat; + public static final String SERIALIZED_NAME_ENABLE_RESIZE_HANDLE = "enableResizeHandle"; @SerializedName(SERIALIZED_NAME_ENABLE_RESIZE_HANDLE) @javax.annotation.Nullable @@ -455,6 +471,16 @@ public class CustomConfigParameters { @javax.annotation.Nullable private Boolean wrap; + public static final String SERIALIZED_NAME_USERS_LIST_LOCATION = "usersListLocation"; + @SerializedName(SERIALIZED_NAME_USERS_LIST_LOCATION) + @javax.annotation.Nullable + private UsersListLocation usersListLocation; + + public static final String SERIALIZED_NAME_USERS_LIST_INCLUDE_OFFLINE = "usersListIncludeOffline"; + @SerializedName(SERIALIZED_NAME_USERS_LIST_INCLUDE_OFFLINE) + @javax.annotation.Nullable + private Boolean usersListIncludeOffline; + public static final String SERIALIZED_NAME_TICKET_BASE_URL = "ticketBaseUrl"; @SerializedName(SERIALIZED_NAME_TICKET_BASE_URL) @javax.annotation.Nullable @@ -1484,6 +1510,52 @@ public void setNoImageUploads(@javax.annotation.Nullable Boolean noImageUploads) } + public CustomConfigParameters allowEmbeds(@javax.annotation.Nullable Boolean allowEmbeds) { + this.allowEmbeds = allowEmbeds; + return this; + } + + /** + * Get allowEmbeds + * @return allowEmbeds + */ + @javax.annotation.Nullable + public Boolean getAllowEmbeds() { + return allowEmbeds; + } + + public void setAllowEmbeds(@javax.annotation.Nullable Boolean allowEmbeds) { + this.allowEmbeds = allowEmbeds; + } + + + public CustomConfigParameters allowedEmbedDomains(@javax.annotation.Nullable List allowedEmbedDomains) { + this.allowedEmbedDomains = allowedEmbedDomains; + return this; + } + + public CustomConfigParameters addAllowedEmbedDomainsItem(String allowedEmbedDomainsItem) { + if (this.allowedEmbedDomains == null) { + this.allowedEmbedDomains = new ArrayList<>(); + } + this.allowedEmbedDomains.add(allowedEmbedDomainsItem); + return this; + } + + /** + * Get allowedEmbedDomains + * @return allowedEmbedDomains + */ + @javax.annotation.Nullable + public List getAllowedEmbedDomains() { + return allowedEmbedDomains; + } + + public void setAllowedEmbedDomains(@javax.annotation.Nullable List allowedEmbedDomains) { + this.allowedEmbedDomains = allowedEmbedDomains; + } + + public CustomConfigParameters noStyles(@javax.annotation.Nullable Boolean noStyles) { this.noStyles = noStyles; return this; @@ -1579,6 +1651,25 @@ public void setRequireSSO(@javax.annotation.Nullable Boolean requireSSO) { } + public CustomConfigParameters enableFChat(@javax.annotation.Nullable Boolean enableFChat) { + this.enableFChat = enableFChat; + return this; + } + + /** + * Get enableFChat + * @return enableFChat + */ + @javax.annotation.Nullable + public Boolean getEnableFChat() { + return enableFChat; + } + + public void setEnableFChat(@javax.annotation.Nullable Boolean enableFChat) { + this.enableFChat = enableFChat; + } + + public CustomConfigParameters enableResizeHandle(@javax.annotation.Nullable Boolean enableResizeHandle) { this.enableResizeHandle = enableResizeHandle; return this; @@ -1983,6 +2074,44 @@ public void setWrap(@javax.annotation.Nullable Boolean wrap) { } + public CustomConfigParameters usersListLocation(@javax.annotation.Nullable UsersListLocation usersListLocation) { + this.usersListLocation = usersListLocation; + return this; + } + + /** + * Get usersListLocation + * @return usersListLocation + */ + @javax.annotation.Nullable + public UsersListLocation getUsersListLocation() { + return usersListLocation; + } + + public void setUsersListLocation(@javax.annotation.Nullable UsersListLocation usersListLocation) { + this.usersListLocation = usersListLocation; + } + + + public CustomConfigParameters usersListIncludeOffline(@javax.annotation.Nullable Boolean usersListIncludeOffline) { + this.usersListIncludeOffline = usersListIncludeOffline; + return this; + } + + /** + * Get usersListIncludeOffline + * @return usersListIncludeOffline + */ + @javax.annotation.Nullable + public Boolean getUsersListIncludeOffline() { + return usersListIncludeOffline; + } + + public void setUsersListIncludeOffline(@javax.annotation.Nullable Boolean usersListIncludeOffline) { + this.usersListIncludeOffline = usersListIncludeOffline; + } + + public CustomConfigParameters ticketBaseUrl(@javax.annotation.Nullable String ticketBaseUrl) { this.ticketBaseUrl = ticketBaseUrl; return this; @@ -2167,11 +2296,14 @@ public boolean equals(Object o) { Objects.equals(this.noCustomConfig, customConfigParameters.noCustomConfig) && Objects.equals(this.mentionAutoCompleteMode, customConfigParameters.mentionAutoCompleteMode) && Objects.equals(this.noImageUploads, customConfigParameters.noImageUploads) && + Objects.equals(this.allowEmbeds, customConfigParameters.allowEmbeds) && + Objects.equals(this.allowedEmbedDomains, customConfigParameters.allowedEmbedDomains) && Objects.equals(this.noStyles, customConfigParameters.noStyles) && Objects.equals(this.pageSize, customConfigParameters.pageSize) && Objects.equals(this.readonly, customConfigParameters.readonly) && Objects.equals(this.noNewRootComments, customConfigParameters.noNewRootComments) && Objects.equals(this.requireSSO, customConfigParameters.requireSSO) && + Objects.equals(this.enableFChat, customConfigParameters.enableFChat) && Objects.equals(this.enableResizeHandle, customConfigParameters.enableResizeHandle) && Objects.equals(this.restrictedLinkDomains, customConfigParameters.restrictedLinkDomains) && Objects.equals(this.showBadgesInTopBar, customConfigParameters.showBadgesInTopBar) && @@ -2192,6 +2324,8 @@ public boolean equals(Object o) { Objects.equals(this.widgetQuestionsRequired, customConfigParameters.widgetQuestionsRequired) && Objects.equals(this.widgetSubQuestionVisibility, customConfigParameters.widgetSubQuestionVisibility) && Objects.equals(this.wrap, customConfigParameters.wrap) && + Objects.equals(this.usersListLocation, customConfigParameters.usersListLocation) && + Objects.equals(this.usersListIncludeOffline, customConfigParameters.usersListIncludeOffline) && Objects.equals(this.ticketBaseUrl, customConfigParameters.ticketBaseUrl) && Objects.equals(this.ticketKBSearchEndpoint, customConfigParameters.ticketKBSearchEndpoint) && Objects.equals(this.ticketFileUploadsEnabled, customConfigParameters.ticketFileUploadsEnabled) && @@ -2202,7 +2336,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(absoluteAndRelativeDates, absoluteDates, allowAnon, allowAnonFlag, allowAnonVotes, allowedLanguages, collapseReplies, commentCountFormat, commentHTMLRenderingMode, commentThreadDeleteMode, commenterNameFormat, countAboveToggle, customCSS, defaultAvatarSrc, defaultSortDirection, defaultUsername, disableAutoAdminMigration, disableAutoHashTagCreation, disableBlocking, disableCommenterCommentDelete, disableCommenterCommentEdit, disableEmailInputs, disableLiveCommenting, disableNotificationBell, disableProfileComments, disableProfileDirectMessages, disableProfiles, disableSuccessMessage, disableToolbar, disableUnverifiedLabel, disableVoting, enableCommenterLinks, enableSearch, enableSpoilers, enableThirdPartyCookieBypass, enableViewCounts, enableVoteList, enableWYSIWYG, gifRating, hasDarkBackground, headerHTML, hideAvatars, hideCommentsUnderCountTextFormat, imageContentProfanityLevel, inputAfterComments, limitCommentsByGroups, locale, maxCommentCharacterLength, maxCommentCreatedCountPUPM, noCustomConfig, mentionAutoCompleteMode, noImageUploads, noStyles, pageSize, readonly, noNewRootComments, requireSSO, enableResizeHandle, restrictedLinkDomains, showBadgesInTopBar, showCommentSaveSuccess, showLiveRightAway, showQuestion, spamRules, ssoSecLvl, translations, useShowCommentsToggle, useSingleLineCommentInput, voteStyle, widgetQuestionId, widgetQuestionResultsStyle, widgetQuestionShowBreakdown, widgetQuestionStyle, widgetQuestionWhenToSave, widgetQuestionsRequired, widgetSubQuestionVisibility, wrap, ticketBaseUrl, ticketKBSearchEndpoint, ticketFileUploadsEnabled, ticketMaxFileSize, ticketAutoAssignUserIds, tos); + return Objects.hash(absoluteAndRelativeDates, absoluteDates, allowAnon, allowAnonFlag, allowAnonVotes, allowedLanguages, collapseReplies, commentCountFormat, commentHTMLRenderingMode, commentThreadDeleteMode, commenterNameFormat, countAboveToggle, customCSS, defaultAvatarSrc, defaultSortDirection, defaultUsername, disableAutoAdminMigration, disableAutoHashTagCreation, disableBlocking, disableCommenterCommentDelete, disableCommenterCommentEdit, disableEmailInputs, disableLiveCommenting, disableNotificationBell, disableProfileComments, disableProfileDirectMessages, disableProfiles, disableSuccessMessage, disableToolbar, disableUnverifiedLabel, disableVoting, enableCommenterLinks, enableSearch, enableSpoilers, enableThirdPartyCookieBypass, enableViewCounts, enableVoteList, enableWYSIWYG, gifRating, hasDarkBackground, headerHTML, hideAvatars, hideCommentsUnderCountTextFormat, imageContentProfanityLevel, inputAfterComments, limitCommentsByGroups, locale, maxCommentCharacterLength, maxCommentCreatedCountPUPM, noCustomConfig, mentionAutoCompleteMode, noImageUploads, allowEmbeds, allowedEmbedDomains, noStyles, pageSize, readonly, noNewRootComments, requireSSO, enableFChat, enableResizeHandle, restrictedLinkDomains, showBadgesInTopBar, showCommentSaveSuccess, showLiveRightAway, showQuestion, spamRules, ssoSecLvl, translations, useShowCommentsToggle, useSingleLineCommentInput, voteStyle, widgetQuestionId, widgetQuestionResultsStyle, widgetQuestionShowBreakdown, widgetQuestionStyle, widgetQuestionWhenToSave, widgetQuestionsRequired, widgetSubQuestionVisibility, wrap, usersListLocation, usersListIncludeOffline, ticketBaseUrl, ticketKBSearchEndpoint, ticketFileUploadsEnabled, ticketMaxFileSize, ticketAutoAssignUserIds, tos); } @Override @@ -2261,11 +2395,14 @@ public String toString() { sb.append(" noCustomConfig: ").append(toIndentedString(noCustomConfig)).append("\n"); sb.append(" mentionAutoCompleteMode: ").append(toIndentedString(mentionAutoCompleteMode)).append("\n"); sb.append(" noImageUploads: ").append(toIndentedString(noImageUploads)).append("\n"); + sb.append(" allowEmbeds: ").append(toIndentedString(allowEmbeds)).append("\n"); + sb.append(" allowedEmbedDomains: ").append(toIndentedString(allowedEmbedDomains)).append("\n"); sb.append(" noStyles: ").append(toIndentedString(noStyles)).append("\n"); sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); sb.append(" readonly: ").append(toIndentedString(readonly)).append("\n"); sb.append(" noNewRootComments: ").append(toIndentedString(noNewRootComments)).append("\n"); sb.append(" requireSSO: ").append(toIndentedString(requireSSO)).append("\n"); + sb.append(" enableFChat: ").append(toIndentedString(enableFChat)).append("\n"); sb.append(" enableResizeHandle: ").append(toIndentedString(enableResizeHandle)).append("\n"); sb.append(" restrictedLinkDomains: ").append(toIndentedString(restrictedLinkDomains)).append("\n"); sb.append(" showBadgesInTopBar: ").append(toIndentedString(showBadgesInTopBar)).append("\n"); @@ -2286,6 +2423,8 @@ public String toString() { sb.append(" widgetQuestionsRequired: ").append(toIndentedString(widgetQuestionsRequired)).append("\n"); sb.append(" widgetSubQuestionVisibility: ").append(toIndentedString(widgetSubQuestionVisibility)).append("\n"); sb.append(" wrap: ").append(toIndentedString(wrap)).append("\n"); + sb.append(" usersListLocation: ").append(toIndentedString(usersListLocation)).append("\n"); + sb.append(" usersListIncludeOffline: ").append(toIndentedString(usersListIncludeOffline)).append("\n"); sb.append(" ticketBaseUrl: ").append(toIndentedString(ticketBaseUrl)).append("\n"); sb.append(" ticketKBSearchEndpoint: ").append(toIndentedString(ticketKBSearchEndpoint)).append("\n"); sb.append(" ticketFileUploadsEnabled: ").append(toIndentedString(ticketFileUploadsEnabled)).append("\n"); @@ -2301,10 +2440,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -2313,7 +2449,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("absoluteAndRelativeDates", "absoluteDates", "allowAnon", "allowAnonFlag", "allowAnonVotes", "allowedLanguages", "collapseReplies", "commentCountFormat", "commentHTMLRenderingMode", "commentThreadDeleteMode", "commenterNameFormat", "countAboveToggle", "customCSS", "defaultAvatarSrc", "defaultSortDirection", "defaultUsername", "disableAutoAdminMigration", "disableAutoHashTagCreation", "disableBlocking", "disableCommenterCommentDelete", "disableCommenterCommentEdit", "disableEmailInputs", "disableLiveCommenting", "disableNotificationBell", "disableProfileComments", "disableProfileDirectMessages", "disableProfiles", "disableSuccessMessage", "disableToolbar", "disableUnverifiedLabel", "disableVoting", "enableCommenterLinks", "enableSearch", "enableSpoilers", "enableThirdPartyCookieBypass", "enableViewCounts", "enableVoteList", "enableWYSIWYG", "gifRating", "hasDarkBackground", "headerHTML", "hideAvatars", "hideCommentsUnderCountTextFormat", "imageContentProfanityLevel", "inputAfterComments", "limitCommentsByGroups", "locale", "maxCommentCharacterLength", "maxCommentCreatedCountPUPM", "noCustomConfig", "mentionAutoCompleteMode", "noImageUploads", "noStyles", "pageSize", "readonly", "noNewRootComments", "requireSSO", "enableResizeHandle", "restrictedLinkDomains", "showBadgesInTopBar", "showCommentSaveSuccess", "showLiveRightAway", "showQuestion", "spamRules", "ssoSecLvl", "translations", "useShowCommentsToggle", "useSingleLineCommentInput", "voteStyle", "widgetQuestionId", "widgetQuestionResultsStyle", "widgetQuestionShowBreakdown", "widgetQuestionStyle", "widgetQuestionWhenToSave", "widgetQuestionsRequired", "widgetSubQuestionVisibility", "wrap", "ticketBaseUrl", "ticketKBSearchEndpoint", "ticketFileUploadsEnabled", "ticketMaxFileSize", "ticketAutoAssignUserIds", "tos")); + openapiFields = new HashSet(Arrays.asList("absoluteAndRelativeDates", "absoluteDates", "allowAnon", "allowAnonFlag", "allowAnonVotes", "allowedLanguages", "collapseReplies", "commentCountFormat", "commentHTMLRenderingMode", "commentThreadDeleteMode", "commenterNameFormat", "countAboveToggle", "customCSS", "defaultAvatarSrc", "defaultSortDirection", "defaultUsername", "disableAutoAdminMigration", "disableAutoHashTagCreation", "disableBlocking", "disableCommenterCommentDelete", "disableCommenterCommentEdit", "disableEmailInputs", "disableLiveCommenting", "disableNotificationBell", "disableProfileComments", "disableProfileDirectMessages", "disableProfiles", "disableSuccessMessage", "disableToolbar", "disableUnverifiedLabel", "disableVoting", "enableCommenterLinks", "enableSearch", "enableSpoilers", "enableThirdPartyCookieBypass", "enableViewCounts", "enableVoteList", "enableWYSIWYG", "gifRating", "hasDarkBackground", "headerHTML", "hideAvatars", "hideCommentsUnderCountTextFormat", "imageContentProfanityLevel", "inputAfterComments", "limitCommentsByGroups", "locale", "maxCommentCharacterLength", "maxCommentCreatedCountPUPM", "noCustomConfig", "mentionAutoCompleteMode", "noImageUploads", "allowEmbeds", "allowedEmbedDomains", "noStyles", "pageSize", "readonly", "noNewRootComments", "requireSSO", "enableFChat", "enableResizeHandle", "restrictedLinkDomains", "showBadgesInTopBar", "showCommentSaveSuccess", "showLiveRightAway", "showQuestion", "spamRules", "ssoSecLvl", "translations", "useShowCommentsToggle", "useSingleLineCommentInput", "voteStyle", "widgetQuestionId", "widgetQuestionResultsStyle", "widgetQuestionShowBreakdown", "widgetQuestionStyle", "widgetQuestionWhenToSave", "widgetQuestionsRequired", "widgetSubQuestionVisibility", "wrap", "usersListLocation", "usersListIncludeOffline", "ticketBaseUrl", "ticketKBSearchEndpoint", "ticketFileUploadsEnabled", "ticketMaxFileSize", "ticketAutoAssignUserIds", "tos")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -2394,6 +2530,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti MentionAutoCompleteMode.validateJsonElement(jsonObj.get("mentionAutoCompleteMode")); } // ensure the optional json data is an array if present + if (jsonObj.get("allowedEmbedDomains") != null && !jsonObj.get("allowedEmbedDomains").isJsonNull() && !jsonObj.get("allowedEmbedDomains").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `allowedEmbedDomains` to be an array in the JSON string but got `%s`", jsonObj.get("allowedEmbedDomains").toString())); + } + // ensure the optional json data is an array if present if (jsonObj.get("restrictedLinkDomains") != null && !jsonObj.get("restrictedLinkDomains").isJsonNull() && !jsonObj.get("restrictedLinkDomains").isJsonArray()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `restrictedLinkDomains` to be an array in the JSON string but got `%s`", jsonObj.get("restrictedLinkDomains").toString())); } @@ -2442,6 +2582,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("widgetSubQuestionVisibility") != null && !jsonObj.get("widgetSubQuestionVisibility").isJsonNull()) { QuestionSubQuestionVisibility.validateJsonElement(jsonObj.get("widgetSubQuestionVisibility")); } + // validate the optional field `usersListLocation` + if (jsonObj.get("usersListLocation") != null && !jsonObj.get("usersListLocation").isJsonNull()) { + UsersListLocation.validateJsonElement(jsonObj.get("usersListLocation")); + } if ((jsonObj.get("ticketBaseUrl") != null && !jsonObj.get("ticketBaseUrl").isJsonNull()) && !jsonObj.get("ticketBaseUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `ticketBaseUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ticketBaseUrl").toString())); } diff --git a/client/src/main/java/com/fastcomments/model/CustomEmailTemplate.java b/client/src/main/java/com/fastcomments/model/CustomEmailTemplate.java index c587e113..1d0d2052 100644 --- a/client/src/main/java/com/fastcomments/model/CustomEmailTemplate.java +++ b/client/src/main/java/com/fastcomments/model/CustomEmailTemplate.java @@ -51,7 +51,7 @@ /** * CustomEmailTemplate */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class CustomEmailTemplate { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -380,10 +380,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/DeleteCommentPublic200Response.java b/client/src/main/java/com/fastcomments/model/DeleteCommentPublic200Response.java deleted file mode 100644 index 6daab049..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteCommentPublic200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.DeletedCommentResultComment; -import com.fastcomments.model.PublicAPIDeleteCommentResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class DeleteCommentPublic200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteCommentPublic200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCommentPublic200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCommentPublic200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterPublicAPIDeleteCommentResponse = gson.getDelegateAdapter(this, TypeToken.get(PublicAPIDeleteCommentResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteCommentPublic200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `PublicAPIDeleteCommentResponse` - if (value.getActualInstance() instanceof PublicAPIDeleteCommentResponse) { - JsonElement element = adapterPublicAPIDeleteCommentResponse.toJsonTree((PublicAPIDeleteCommentResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, PublicAPIDeleteCommentResponse"); - } - - @Override - public DeleteCommentPublic200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize PublicAPIDeleteCommentResponse - try { - // validate the JSON object to see if any exception is thrown - PublicAPIDeleteCommentResponse.validateJsonElement(jsonElement); - actualAdapter = adapterPublicAPIDeleteCommentResponse; - DeleteCommentPublic200Response ret = new DeleteCommentPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PublicAPIDeleteCommentResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'PublicAPIDeleteCommentResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - DeleteCommentPublic200Response ret = new DeleteCommentPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for DeleteCommentPublic200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public DeleteCommentPublic200Response() { - super("anyOf", Boolean.FALSE); - } - - public DeleteCommentPublic200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("PublicAPIDeleteCommentResponse", PublicAPIDeleteCommentResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteCommentPublic200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, PublicAPIDeleteCommentResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof PublicAPIDeleteCommentResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, PublicAPIDeleteCommentResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, PublicAPIDeleteCommentResponse - * - * @return The actual instance (APIError, PublicAPIDeleteCommentResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `PublicAPIDeleteCommentResponse`. If the actual instance is not `PublicAPIDeleteCommentResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PublicAPIDeleteCommentResponse` - * @throws ClassCastException if the instance is not `PublicAPIDeleteCommentResponse` - */ - public PublicAPIDeleteCommentResponse getPublicAPIDeleteCommentResponse() throws ClassCastException { - return (PublicAPIDeleteCommentResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DeleteCommentPublic200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with PublicAPIDeleteCommentResponse - try { - PublicAPIDeleteCommentResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PublicAPIDeleteCommentResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for DeleteCommentPublic200Response with anyOf schemas: APIError, PublicAPIDeleteCommentResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of DeleteCommentPublic200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteCommentPublic200Response - * @throws IOException if the JSON string is invalid with respect to DeleteCommentPublic200Response - */ - public static DeleteCommentPublic200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteCommentPublic200Response.class); - } - - /** - * Convert an instance of DeleteCommentPublic200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/DeleteCommentResult.java b/client/src/main/java/com/fastcomments/model/DeleteCommentResult.java index 6b67a753..c5798a05 100644 --- a/client/src/main/java/com/fastcomments/model/DeleteCommentResult.java +++ b/client/src/main/java/com/fastcomments/model/DeleteCommentResult.java @@ -50,7 +50,7 @@ /** * DeleteCommentResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class DeleteCommentResult { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) @@ -183,10 +183,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/DeleteCommentVote200Response.java b/client/src/main/java/com/fastcomments/model/DeleteCommentVote200Response.java deleted file mode 100644 index b870a404..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteCommentVote200Response.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.VoteDeleteResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class DeleteCommentVote200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteCommentVote200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCommentVote200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCommentVote200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterVoteDeleteResponse = gson.getDelegateAdapter(this, TypeToken.get(VoteDeleteResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteCommentVote200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `VoteDeleteResponse` - if (value.getActualInstance() instanceof VoteDeleteResponse) { - JsonElement element = adapterVoteDeleteResponse.toJsonTree((VoteDeleteResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, VoteDeleteResponse"); - } - - @Override - public DeleteCommentVote200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize VoteDeleteResponse - try { - // validate the JSON object to see if any exception is thrown - VoteDeleteResponse.validateJsonElement(jsonElement); - actualAdapter = adapterVoteDeleteResponse; - DeleteCommentVote200Response ret = new DeleteCommentVote200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for VoteDeleteResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'VoteDeleteResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - DeleteCommentVote200Response ret = new DeleteCommentVote200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for DeleteCommentVote200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public DeleteCommentVote200Response() { - super("anyOf", Boolean.FALSE); - } - - public DeleteCommentVote200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("VoteDeleteResponse", VoteDeleteResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteCommentVote200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, VoteDeleteResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof VoteDeleteResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, VoteDeleteResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, VoteDeleteResponse - * - * @return The actual instance (APIError, VoteDeleteResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `VoteDeleteResponse`. If the actual instance is not `VoteDeleteResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `VoteDeleteResponse` - * @throws ClassCastException if the instance is not `VoteDeleteResponse` - */ - public VoteDeleteResponse getVoteDeleteResponse() throws ClassCastException { - return (VoteDeleteResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DeleteCommentVote200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with VoteDeleteResponse - try { - VoteDeleteResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for VoteDeleteResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for DeleteCommentVote200Response with anyOf schemas: APIError, VoteDeleteResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of DeleteCommentVote200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteCommentVote200Response - * @throws IOException if the JSON string is invalid with respect to DeleteCommentVote200Response - */ - public static DeleteCommentVote200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteCommentVote200Response.class); - } - - /** - * Convert an instance of DeleteCommentVote200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/DeleteDomainConfig200Response.java b/client/src/main/java/com/fastcomments/model/DeleteDomainConfigResponse.java similarity index 81% rename from client/src/main/java/com/fastcomments/model/DeleteDomainConfig200Response.java rename to client/src/main/java/com/fastcomments/model/DeleteDomainConfigResponse.java index 2f179206..6f02414e 100644 --- a/client/src/main/java/com/fastcomments/model/DeleteDomainConfig200Response.java +++ b/client/src/main/java/com/fastcomments/model/DeleteDomainConfigResponse.java @@ -46,19 +46,19 @@ import com.fastcomments.invoker.JSON; /** - * DeleteDomainConfig200Response + * DeleteDomainConfigResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class DeleteDomainConfig200Response { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class DeleteDomainConfigResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable private Object status = null; - public DeleteDomainConfig200Response() { + public DeleteDomainConfigResponse() { } - public DeleteDomainConfig200Response status(@javax.annotation.Nullable Object status) { + public DeleteDomainConfigResponse status(@javax.annotation.Nullable Object status) { this.status = status; return this; } @@ -89,9 +89,9 @@ public void setStatus(@javax.annotation.Nullable Object status) { * * @param key name of the property * @param value value of the property - * @return the DeleteDomainConfig200Response instance itself + * @return the DeleteDomainConfigResponse instance itself */ - public DeleteDomainConfig200Response putAdditionalProperty(String key, Object value) { + public DeleteDomainConfigResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -130,9 +130,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DeleteDomainConfig200Response deleteDomainConfig200Response = (DeleteDomainConfig200Response) o; - return Objects.equals(this.status, deleteDomainConfig200Response.status)&& - Objects.equals(this.additionalProperties, deleteDomainConfig200Response.additionalProperties); + DeleteDomainConfigResponse deleteDomainConfigResponse = (DeleteDomainConfigResponse) o; + return Objects.equals(this.status, deleteDomainConfigResponse.status)&& + Objects.equals(this.additionalProperties, deleteDomainConfigResponse.additionalProperties); } @Override @@ -143,7 +143,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DeleteDomainConfig200Response {\n"); + sb.append("class DeleteDomainConfigResponse {\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -155,10 +155,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -177,17 +174,17 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DeleteDomainConfig200Response + * @throws IOException if the JSON Element is invalid with respect to DeleteDomainConfigResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!DeleteDomainConfig200Response.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in DeleteDomainConfig200Response is not found in the empty JSON string", DeleteDomainConfig200Response.openapiRequiredFields.toString())); + if (!DeleteDomainConfigResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in DeleteDomainConfigResponse is not found in the empty JSON string", DeleteDomainConfigResponse.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DeleteDomainConfig200Response.openapiRequiredFields) { + for (String requiredField : DeleteDomainConfigResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -199,16 +196,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteDomainConfig200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteDomainConfig200Response' and its subtypes + if (!DeleteDomainConfigResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteDomainConfigResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteDomainConfig200Response.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteDomainConfigResponse.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, DeleteDomainConfig200Response value) throws IOException { + public void write(JsonWriter out, DeleteDomainConfigResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -236,12 +233,12 @@ else if (entry.getValue() instanceof Character) } @Override - public DeleteDomainConfig200Response read(JsonReader in) throws IOException { + public DeleteDomainConfigResponse read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance - DeleteDomainConfig200Response instance = thisAdapter.fromJsonTree(jsonObj); + DeleteDomainConfigResponse instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -268,18 +265,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of DeleteDomainConfig200Response given an JSON string + * Create an instance of DeleteDomainConfigResponse given an JSON string * * @param jsonString JSON string - * @return An instance of DeleteDomainConfig200Response - * @throws IOException if the JSON string is invalid with respect to DeleteDomainConfig200Response + * @return An instance of DeleteDomainConfigResponse + * @throws IOException if the JSON string is invalid with respect to DeleteDomainConfigResponse */ - public static DeleteDomainConfig200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteDomainConfig200Response.class); + public static DeleteDomainConfigResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteDomainConfigResponse.class); } /** - * Convert an instance of DeleteDomainConfig200Response to an JSON string + * Convert an instance of DeleteDomainConfigResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublic200Response.java b/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublic200Response.java deleted file mode 100644 index f1d9df9d..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublic200Response.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.DeleteFeedPostPublic200ResponseAnyOf; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class DeleteFeedPostPublic200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteFeedPostPublic200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteFeedPostPublic200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteFeedPostPublic200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterDeleteFeedPostPublic200ResponseAnyOf = gson.getDelegateAdapter(this, TypeToken.get(DeleteFeedPostPublic200ResponseAnyOf.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteFeedPostPublic200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `DeleteFeedPostPublic200ResponseAnyOf` - if (value.getActualInstance() instanceof DeleteFeedPostPublic200ResponseAnyOf) { - JsonElement element = adapterDeleteFeedPostPublic200ResponseAnyOf.toJsonTree((DeleteFeedPostPublic200ResponseAnyOf)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, DeleteFeedPostPublic200ResponseAnyOf"); - } - - @Override - public DeleteFeedPostPublic200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize DeleteFeedPostPublic200ResponseAnyOf - try { - // validate the JSON object to see if any exception is thrown - DeleteFeedPostPublic200ResponseAnyOf.validateJsonElement(jsonElement); - actualAdapter = adapterDeleteFeedPostPublic200ResponseAnyOf; - DeleteFeedPostPublic200Response ret = new DeleteFeedPostPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for DeleteFeedPostPublic200ResponseAnyOf failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'DeleteFeedPostPublic200ResponseAnyOf'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - DeleteFeedPostPublic200Response ret = new DeleteFeedPostPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for DeleteFeedPostPublic200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public DeleteFeedPostPublic200Response() { - super("anyOf", Boolean.FALSE); - } - - public DeleteFeedPostPublic200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("DeleteFeedPostPublic200ResponseAnyOf", DeleteFeedPostPublic200ResponseAnyOf.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteFeedPostPublic200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, DeleteFeedPostPublic200ResponseAnyOf - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof DeleteFeedPostPublic200ResponseAnyOf) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, DeleteFeedPostPublic200ResponseAnyOf"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, DeleteFeedPostPublic200ResponseAnyOf - * - * @return The actual instance (APIError, DeleteFeedPostPublic200ResponseAnyOf) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `DeleteFeedPostPublic200ResponseAnyOf`. If the actual instance is not `DeleteFeedPostPublic200ResponseAnyOf`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `DeleteFeedPostPublic200ResponseAnyOf` - * @throws ClassCastException if the instance is not `DeleteFeedPostPublic200ResponseAnyOf` - */ - public DeleteFeedPostPublic200ResponseAnyOf getDeleteFeedPostPublic200ResponseAnyOf() throws ClassCastException { - return (DeleteFeedPostPublic200ResponseAnyOf)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DeleteFeedPostPublic200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with DeleteFeedPostPublic200ResponseAnyOf - try { - DeleteFeedPostPublic200ResponseAnyOf.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for DeleteFeedPostPublic200ResponseAnyOf failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for DeleteFeedPostPublic200Response with anyOf schemas: APIError, DeleteFeedPostPublic200ResponseAnyOf. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of DeleteFeedPostPublic200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteFeedPostPublic200Response - * @throws IOException if the JSON string is invalid with respect to DeleteFeedPostPublic200Response - */ - public static DeleteFeedPostPublic200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteFeedPostPublic200Response.class); - } - - /** - * Convert an instance of DeleteFeedPostPublic200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublic200ResponseAnyOf.java b/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponse.java similarity index 80% rename from client/src/main/java/com/fastcomments/model/DeleteFeedPostPublic200ResponseAnyOf.java rename to client/src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponse.java index 40903e05..320d9a6f 100644 --- a/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublic200ResponseAnyOf.java +++ b/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponse.java @@ -47,19 +47,19 @@ import com.fastcomments.invoker.JSON; /** - * DeleteFeedPostPublic200ResponseAnyOf + * DeleteFeedPostPublicResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class DeleteFeedPostPublic200ResponseAnyOf { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class DeleteFeedPostPublicResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nonnull private APIStatus status; - public DeleteFeedPostPublic200ResponseAnyOf() { + public DeleteFeedPostPublicResponse() { } - public DeleteFeedPostPublic200ResponseAnyOf status(@javax.annotation.Nonnull APIStatus status) { + public DeleteFeedPostPublicResponse status(@javax.annotation.Nonnull APIStatus status) { this.status = status; return this; } @@ -90,9 +90,9 @@ public void setStatus(@javax.annotation.Nonnull APIStatus status) { * * @param key name of the property * @param value value of the property - * @return the DeleteFeedPostPublic200ResponseAnyOf instance itself + * @return the DeleteFeedPostPublicResponse instance itself */ - public DeleteFeedPostPublic200ResponseAnyOf putAdditionalProperty(String key, Object value) { + public DeleteFeedPostPublicResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -131,9 +131,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DeleteFeedPostPublic200ResponseAnyOf deleteFeedPostPublic200ResponseAnyOf = (DeleteFeedPostPublic200ResponseAnyOf) o; - return Objects.equals(this.status, deleteFeedPostPublic200ResponseAnyOf.status)&& - Objects.equals(this.additionalProperties, deleteFeedPostPublic200ResponseAnyOf.additionalProperties); + DeleteFeedPostPublicResponse deleteFeedPostPublicResponse = (DeleteFeedPostPublicResponse) o; + return Objects.equals(this.status, deleteFeedPostPublicResponse.status)&& + Objects.equals(this.additionalProperties, deleteFeedPostPublicResponse.additionalProperties); } @Override @@ -144,7 +144,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DeleteFeedPostPublic200ResponseAnyOf {\n"); + sb.append("class DeleteFeedPostPublicResponse {\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -156,10 +156,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -178,17 +175,17 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DeleteFeedPostPublic200ResponseAnyOf + * @throws IOException if the JSON Element is invalid with respect to DeleteFeedPostPublicResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!DeleteFeedPostPublic200ResponseAnyOf.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in DeleteFeedPostPublic200ResponseAnyOf is not found in the empty JSON string", DeleteFeedPostPublic200ResponseAnyOf.openapiRequiredFields.toString())); + if (!DeleteFeedPostPublicResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in DeleteFeedPostPublicResponse is not found in the empty JSON string", DeleteFeedPostPublicResponse.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DeleteFeedPostPublic200ResponseAnyOf.openapiRequiredFields) { + for (String requiredField : DeleteFeedPostPublicResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -202,16 +199,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteFeedPostPublic200ResponseAnyOf.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteFeedPostPublic200ResponseAnyOf' and its subtypes + if (!DeleteFeedPostPublicResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteFeedPostPublicResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteFeedPostPublic200ResponseAnyOf.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteFeedPostPublicResponse.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, DeleteFeedPostPublic200ResponseAnyOf value) throws IOException { + public void write(JsonWriter out, DeleteFeedPostPublicResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -239,12 +236,12 @@ else if (entry.getValue() instanceof Character) } @Override - public DeleteFeedPostPublic200ResponseAnyOf read(JsonReader in) throws IOException { + public DeleteFeedPostPublicResponse read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance - DeleteFeedPostPublic200ResponseAnyOf instance = thisAdapter.fromJsonTree(jsonObj); + DeleteFeedPostPublicResponse instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -271,18 +268,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of DeleteFeedPostPublic200ResponseAnyOf given an JSON string + * Create an instance of DeleteFeedPostPublicResponse given an JSON string * * @param jsonString JSON string - * @return An instance of DeleteFeedPostPublic200ResponseAnyOf - * @throws IOException if the JSON string is invalid with respect to DeleteFeedPostPublic200ResponseAnyOf + * @return An instance of DeleteFeedPostPublicResponse + * @throws IOException if the JSON string is invalid with respect to DeleteFeedPostPublicResponse */ - public static DeleteFeedPostPublic200ResponseAnyOf fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteFeedPostPublic200ResponseAnyOf.class); + public static DeleteFeedPostPublicResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteFeedPostPublicResponse.class); } /** - * Convert an instance of DeleteFeedPostPublic200ResponseAnyOf to an JSON string + * Convert an instance of DeleteFeedPostPublicResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/DeleteHashTagRequest.java b/client/src/main/java/com/fastcomments/model/DeleteHashTagRequestBody.java similarity index 83% rename from client/src/main/java/com/fastcomments/model/DeleteHashTagRequest.java rename to client/src/main/java/com/fastcomments/model/DeleteHashTagRequestBody.java index 22441b02..b6bc8a98 100644 --- a/client/src/main/java/com/fastcomments/model/DeleteHashTagRequest.java +++ b/client/src/main/java/com/fastcomments/model/DeleteHashTagRequestBody.java @@ -46,19 +46,19 @@ import com.fastcomments.invoker.JSON; /** - * DeleteHashTagRequest + * DeleteHashTagRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class DeleteHashTagRequest { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class DeleteHashTagRequestBody { public static final String SERIALIZED_NAME_TENANT_ID = "tenantId"; @SerializedName(SERIALIZED_NAME_TENANT_ID) @javax.annotation.Nullable private String tenantId; - public DeleteHashTagRequest() { + public DeleteHashTagRequestBody() { } - public DeleteHashTagRequest tenantId(@javax.annotation.Nullable String tenantId) { + public DeleteHashTagRequestBody tenantId(@javax.annotation.Nullable String tenantId) { this.tenantId = tenantId; return this; } @@ -89,9 +89,9 @@ public void setTenantId(@javax.annotation.Nullable String tenantId) { * * @param key name of the property * @param value value of the property - * @return the DeleteHashTagRequest instance itself + * @return the DeleteHashTagRequestBody instance itself */ - public DeleteHashTagRequest putAdditionalProperty(String key, Object value) { + public DeleteHashTagRequestBody putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -130,9 +130,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DeleteHashTagRequest deleteHashTagRequest = (DeleteHashTagRequest) o; - return Objects.equals(this.tenantId, deleteHashTagRequest.tenantId)&& - Objects.equals(this.additionalProperties, deleteHashTagRequest.additionalProperties); + DeleteHashTagRequestBody deleteHashTagRequestBody = (DeleteHashTagRequestBody) o; + return Objects.equals(this.tenantId, deleteHashTagRequestBody.tenantId)&& + Objects.equals(this.additionalProperties, deleteHashTagRequestBody.additionalProperties); } @Override @@ -143,7 +143,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DeleteHashTagRequest {\n"); + sb.append("class DeleteHashTagRequestBody {\n"); sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -155,10 +155,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -177,12 +174,12 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DeleteHashTagRequest + * @throws IOException if the JSON Element is invalid with respect to DeleteHashTagRequestBody */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!DeleteHashTagRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in DeleteHashTagRequest is not found in the empty JSON string", DeleteHashTagRequest.openapiRequiredFields.toString())); + if (!DeleteHashTagRequestBody.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in DeleteHashTagRequestBody is not found in the empty JSON string", DeleteHashTagRequestBody.openapiRequiredFields.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -195,16 +192,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteHashTagRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteHashTagRequest' and its subtypes + if (!DeleteHashTagRequestBody.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteHashTagRequestBody' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteHashTagRequest.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteHashTagRequestBody.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, DeleteHashTagRequest value) throws IOException { + public void write(JsonWriter out, DeleteHashTagRequestBody value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -232,12 +229,12 @@ else if (entry.getValue() instanceof Character) } @Override - public DeleteHashTagRequest read(JsonReader in) throws IOException { + public DeleteHashTagRequestBody read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance - DeleteHashTagRequest instance = thisAdapter.fromJsonTree(jsonObj); + DeleteHashTagRequestBody instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -264,18 +261,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of DeleteHashTagRequest given an JSON string + * Create an instance of DeleteHashTagRequestBody given an JSON string * * @param jsonString JSON string - * @return An instance of DeleteHashTagRequest - * @throws IOException if the JSON string is invalid with respect to DeleteHashTagRequest + * @return An instance of DeleteHashTagRequestBody + * @throws IOException if the JSON string is invalid with respect to DeleteHashTagRequestBody */ - public static DeleteHashTagRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteHashTagRequest.class); + public static DeleteHashTagRequestBody fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteHashTagRequestBody.class); } /** - * Convert an instance of DeleteHashTagRequest to an JSON string + * Convert an instance of DeleteHashTagRequestBody to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/DeletePageAPIResponse.java b/client/src/main/java/com/fastcomments/model/DeletePageAPIResponse.java index b148505a..8c6b9a72 100644 --- a/client/src/main/java/com/fastcomments/model/DeletePageAPIResponse.java +++ b/client/src/main/java/com/fastcomments/model/DeletePageAPIResponse.java @@ -48,7 +48,7 @@ /** * DeletePageAPIResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class DeletePageAPIResponse { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -207,10 +207,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/DeleteSSOUserAPIResponse.java b/client/src/main/java/com/fastcomments/model/DeleteSSOUserAPIResponse.java index 85874e90..e65fa506 100644 --- a/client/src/main/java/com/fastcomments/model/DeleteSSOUserAPIResponse.java +++ b/client/src/main/java/com/fastcomments/model/DeleteSSOUserAPIResponse.java @@ -49,7 +49,7 @@ /** * DeleteSSOUserAPIResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class DeleteSSOUserAPIResponse { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -234,10 +234,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/DeleteSubscriptionAPIResponse.java b/client/src/main/java/com/fastcomments/model/DeleteSubscriptionAPIResponse.java index 4ee999fe..5817d654 100644 --- a/client/src/main/java/com/fastcomments/model/DeleteSubscriptionAPIResponse.java +++ b/client/src/main/java/com/fastcomments/model/DeleteSubscriptionAPIResponse.java @@ -48,7 +48,7 @@ /** * DeleteSubscriptionAPIResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class DeleteSubscriptionAPIResponse { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -207,10 +207,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/DeletedCommentResultComment.java b/client/src/main/java/com/fastcomments/model/DeletedCommentResultComment.java index a55b514f..f03dde6f 100644 --- a/client/src/main/java/com/fastcomments/model/DeletedCommentResultComment.java +++ b/client/src/main/java/com/fastcomments/model/DeletedCommentResultComment.java @@ -48,7 +48,7 @@ /** * DeletedCommentResultComment */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class DeletedCommentResultComment { public static final String SERIALIZED_NAME_IS_DELETED = "isDeleted"; @SerializedName(SERIALIZED_NAME_IS_DELETED) @@ -187,10 +187,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/EmailTemplateDefinition.java b/client/src/main/java/com/fastcomments/model/EmailTemplateDefinition.java index bd68f03b..d9316e21 100644 --- a/client/src/main/java/com/fastcomments/model/EmailTemplateDefinition.java +++ b/client/src/main/java/com/fastcomments/model/EmailTemplateDefinition.java @@ -50,7 +50,7 @@ /** * EmailTemplateDefinition */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class EmailTemplateDefinition { public static final String SERIALIZED_NAME_EMAIL_TEMPLATE_ID = "emailTemplateId"; @SerializedName(SERIALIZED_NAME_EMAIL_TEMPLATE_ID) @@ -205,10 +205,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/EmailTemplateRenderErrorResponse.java b/client/src/main/java/com/fastcomments/model/EmailTemplateRenderErrorResponse.java index a06c893f..516a5bfb 100644 --- a/client/src/main/java/com/fastcomments/model/EmailTemplateRenderErrorResponse.java +++ b/client/src/main/java/com/fastcomments/model/EmailTemplateRenderErrorResponse.java @@ -49,7 +49,7 @@ /** * EmailTemplateRenderErrorResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class EmailTemplateRenderErrorResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -266,10 +266,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/EventLogEntry.java b/client/src/main/java/com/fastcomments/model/EventLogEntry.java index 31d1b39e..dfcbce83 100644 --- a/client/src/main/java/com/fastcomments/model/EventLogEntry.java +++ b/client/src/main/java/com/fastcomments/model/EventLogEntry.java @@ -49,7 +49,7 @@ /** * EventLogEntry */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class EventLogEntry { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -240,10 +240,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/FComment.java b/client/src/main/java/com/fastcomments/model/FComment.java index 9230e059..41ae6d6c 100644 --- a/client/src/main/java/com/fastcomments/model/FComment.java +++ b/client/src/main/java/com/fastcomments/model/FComment.java @@ -56,7 +56,7 @@ /** * FComment */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class FComment { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -418,6 +418,11 @@ public class FComment { @javax.annotation.Nullable private OffsetDateTime tosAcceptedAt; + public static final String SERIALIZED_NAME_BOT_ID = "botId"; + @SerializedName(SERIALIZED_NAME_BOT_ID) + @javax.annotation.Nullable + private String botId; + public FComment() { } @@ -1845,6 +1850,25 @@ public void setTosAcceptedAt(@javax.annotation.Nullable OffsetDateTime tosAccept } + public FComment botId(@javax.annotation.Nullable String botId) { + this.botId = botId; + return this; + } + + /** + * Get botId + * @return botId + */ + @javax.annotation.Nullable + public String getBotId() { + return botId; + } + + public void setBotId(@javax.annotation.Nullable String botId) { + this.botId = botId; + } + + @Override public boolean equals(Object o) { @@ -1926,12 +1950,13 @@ public boolean equals(Object o) { Objects.equals(this.viewCount, fcomment.viewCount) && Objects.equals(this.requiresVerification, fcomment.requiresVerification) && Objects.equals(this.editKey, fcomment.editKey) && - Objects.equals(this.tosAcceptedAt, fcomment.tosAcceptedAt); + Objects.equals(this.tosAcceptedAt, fcomment.tosAcceptedAt) && + Objects.equals(this.botId, fcomment.botId); } @Override public int hashCode() { - return Objects.hash(id, tenantId, urlId, urlIdRaw, url, pageTitle, userId, anonUserId, commenterEmail, commenterName, commenterLink, comment, commentHTML, parentId, date, localDateString, localDateHours, votes, votesUp, votesDown, expireAt, verified, verifiedDate, verificationId, notificationSentForParent, notificationSentForParentTenant, reviewed, imported, externalId, externalParentId, avatarSrc, isSpam, permNotSpam, aiDeterminedSpam, hasImages, pageNumber, pageNumberOF, pageNumberNF, hasLinks, hasCode, approved, locale, isDeleted, isDeletedUser, isBannedUser, isByAdmin, isByModerator, isPinned, isLocked, flagCount, rating, displayLabel, fromProductId, meta, ipHash, mentions, hashTags, badges, domain, veteranBadgeProcessed, moderationGroupIds, didProcessBadges, fromOfflineRestore, autoplayJobId, autoplayDelayMS, feedbackIds, logs, groupIds, viewCount, requiresVerification, editKey, tosAcceptedAt); + return Objects.hash(id, tenantId, urlId, urlIdRaw, url, pageTitle, userId, anonUserId, commenterEmail, commenterName, commenterLink, comment, commentHTML, parentId, date, localDateString, localDateHours, votes, votesUp, votesDown, expireAt, verified, verifiedDate, verificationId, notificationSentForParent, notificationSentForParentTenant, reviewed, imported, externalId, externalParentId, avatarSrc, isSpam, permNotSpam, aiDeterminedSpam, hasImages, pageNumber, pageNumberOF, pageNumberNF, hasLinks, hasCode, approved, locale, isDeleted, isDeletedUser, isBannedUser, isByAdmin, isByModerator, isPinned, isLocked, flagCount, rating, displayLabel, fromProductId, meta, ipHash, mentions, hashTags, badges, domain, veteranBadgeProcessed, moderationGroupIds, didProcessBadges, fromOfflineRestore, autoplayJobId, autoplayDelayMS, feedbackIds, logs, groupIds, viewCount, requiresVerification, editKey, tosAcceptedAt, botId); } @Override @@ -2010,6 +2035,7 @@ public String toString() { sb.append(" requiresVerification: ").append(toIndentedString(requiresVerification)).append("\n"); sb.append(" editKey: ").append(toIndentedString(editKey)).append("\n"); sb.append(" tosAcceptedAt: ").append(toIndentedString(tosAcceptedAt)).append("\n"); + sb.append(" botId: ").append(toIndentedString(botId)).append("\n"); sb.append("}"); return sb.toString(); } @@ -2019,10 +2045,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -2031,7 +2054,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("_id", "tenantId", "urlId", "urlIdRaw", "url", "pageTitle", "userId", "anonUserId", "commenterEmail", "commenterName", "commenterLink", "comment", "commentHTML", "parentId", "date", "localDateString", "localDateHours", "votes", "votesUp", "votesDown", "expireAt", "verified", "verifiedDate", "verificationId", "notificationSentForParent", "notificationSentForParentTenant", "reviewed", "imported", "externalId", "externalParentId", "avatarSrc", "isSpam", "permNotSpam", "aiDeterminedSpam", "hasImages", "pageNumber", "pageNumberOF", "pageNumberNF", "hasLinks", "hasCode", "approved", "locale", "isDeleted", "isDeletedUser", "isBannedUser", "isByAdmin", "isByModerator", "isPinned", "isLocked", "flagCount", "rating", "displayLabel", "fromProductId", "meta", "ipHash", "mentions", "hashTags", "badges", "domain", "veteranBadgeProcessed", "moderationGroupIds", "didProcessBadges", "fromOfflineRestore", "autoplayJobId", "autoplayDelayMS", "feedbackIds", "logs", "groupIds", "viewCount", "requiresVerification", "editKey", "tosAcceptedAt")); + openapiFields = new HashSet(Arrays.asList("_id", "tenantId", "urlId", "urlIdRaw", "url", "pageTitle", "userId", "anonUserId", "commenterEmail", "commenterName", "commenterLink", "comment", "commentHTML", "parentId", "date", "localDateString", "localDateHours", "votes", "votesUp", "votesDown", "expireAt", "verified", "verifiedDate", "verificationId", "notificationSentForParent", "notificationSentForParentTenant", "reviewed", "imported", "externalId", "externalParentId", "avatarSrc", "isSpam", "permNotSpam", "aiDeterminedSpam", "hasImages", "pageNumber", "pageNumberOF", "pageNumberNF", "hasLinks", "hasCode", "approved", "locale", "isDeleted", "isDeletedUser", "isBannedUser", "isByAdmin", "isByModerator", "isPinned", "isLocked", "flagCount", "rating", "displayLabel", "fromProductId", "meta", "ipHash", "mentions", "hashTags", "badges", "domain", "veteranBadgeProcessed", "moderationGroupIds", "didProcessBadges", "fromOfflineRestore", "autoplayJobId", "autoplayDelayMS", "feedbackIds", "logs", "groupIds", "viewCount", "requiresVerification", "editKey", "tosAcceptedAt", "botId")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("_id", "tenantId", "urlId", "url", "commenterName", "comment", "commentHTML", "date", "verified", "approved", "locale")); @@ -2211,6 +2234,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("editKey") != null && !jsonObj.get("editKey").isJsonNull()) && !jsonObj.get("editKey").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `editKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("editKey").toString())); } + if ((jsonObj.get("botId") != null && !jsonObj.get("botId").isJsonNull()) && !jsonObj.get("botId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `botId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("botId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/FCommentMeta.java b/client/src/main/java/com/fastcomments/model/FCommentMeta.java index 589d91ff..2fefca1a 100644 --- a/client/src/main/java/com/fastcomments/model/FCommentMeta.java +++ b/client/src/main/java/com/fastcomments/model/FCommentMeta.java @@ -48,7 +48,7 @@ /** * FCommentMeta */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class FCommentMeta { public static final String SERIALIZED_NAME_WP_ID = "wpId"; @SerializedName(SERIALIZED_NAME_WP_ID) @@ -207,10 +207,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/FeedPost.java b/client/src/main/java/com/fastcomments/model/FeedPost.java index 3ce78512..82d79dd5 100644 --- a/client/src/main/java/com/fastcomments/model/FeedPost.java +++ b/client/src/main/java/com/fastcomments/model/FeedPost.java @@ -55,7 +55,7 @@ /** * FeedPost */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class FeedPost { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -546,10 +546,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/FeedPostLink.java b/client/src/main/java/com/fastcomments/model/FeedPostLink.java index 95b173c0..60ca14b0 100644 --- a/client/src/main/java/com/fastcomments/model/FeedPostLink.java +++ b/client/src/main/java/com/fastcomments/model/FeedPostLink.java @@ -48,7 +48,7 @@ /** * FeedPostLink */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class FeedPostLink { public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) @@ -187,10 +187,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/FeedPostMediaItem.java b/client/src/main/java/com/fastcomments/model/FeedPostMediaItem.java index 5fbb0a53..9527b569 100644 --- a/client/src/main/java/com/fastcomments/model/FeedPostMediaItem.java +++ b/client/src/main/java/com/fastcomments/model/FeedPostMediaItem.java @@ -51,7 +51,7 @@ /** * FeedPostMediaItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class FeedPostMediaItem { public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -172,10 +172,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -224,16 +221,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("linkUrl") != null && !jsonObj.get("linkUrl").isJsonNull()) && !jsonObj.get("linkUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `linkUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("linkUrl").toString())); } - // ensure the json data is an array - if (!jsonObj.get("sizes").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `sizes` to be an array in the JSON string but got `%s`", jsonObj.get("sizes").toString())); + if (jsonObj.get("sizes") != null) { + if (!jsonObj.get("sizes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `sizes` to be an array in the JSON string but got `%s`", jsonObj.get("sizes").toString())); + } + JsonArray jsonArraysizes = jsonObj.getAsJsonArray("sizes"); + // validate the required field `sizes` (array) + for (int i = 0; i < jsonArraysizes.size(); i++) { + FeedPostMediaItemAsset.validateJsonElement(jsonArraysizes.get(i)); + } } - - JsonArray jsonArraysizes = jsonObj.getAsJsonArray("sizes"); - // validate the required field `sizes` (array) - for (int i = 0; i < jsonArraysizes.size(); i++) { - FeedPostMediaItemAsset.validateJsonElement(jsonArraysizes.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/FeedPostMediaItemAsset.java b/client/src/main/java/com/fastcomments/model/FeedPostMediaItemAsset.java index 797f52e4..0865a4db 100644 --- a/client/src/main/java/com/fastcomments/model/FeedPostMediaItemAsset.java +++ b/client/src/main/java/com/fastcomments/model/FeedPostMediaItemAsset.java @@ -48,7 +48,7 @@ /** * FeedPostMediaItemAsset */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class FeedPostMediaItemAsset { public static final String SERIALIZED_NAME_W = "w"; @SerializedName(SERIALIZED_NAME_W) @@ -161,10 +161,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/FeedPostStats.java b/client/src/main/java/com/fastcomments/model/FeedPostStats.java index dc7c75a4..a0db647d 100644 --- a/client/src/main/java/com/fastcomments/model/FeedPostStats.java +++ b/client/src/main/java/com/fastcomments/model/FeedPostStats.java @@ -50,7 +50,7 @@ /** * FeedPostStats */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class FeedPostStats { public static final String SERIALIZED_NAME_REACTS = "reacts"; @SerializedName(SERIALIZED_NAME_REACTS) @@ -145,10 +145,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/FeedPostsStatsResponse.java b/client/src/main/java/com/fastcomments/model/FeedPostsStatsResponse.java index 459e2ecd..2d1d3698 100644 --- a/client/src/main/java/com/fastcomments/model/FeedPostsStatsResponse.java +++ b/client/src/main/java/com/fastcomments/model/FeedPostsStatsResponse.java @@ -52,7 +52,7 @@ /** * FeedPostsStatsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class FeedPostsStatsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/FindCommentsByRangeItem.java b/client/src/main/java/com/fastcomments/model/FindCommentsByRangeItem.java index c0d3a0e3..29674807 100644 --- a/client/src/main/java/com/fastcomments/model/FindCommentsByRangeItem.java +++ b/client/src/main/java/com/fastcomments/model/FindCommentsByRangeItem.java @@ -50,7 +50,7 @@ /** * FindCommentsByRangeItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class FindCommentsByRangeItem { public static final String SERIALIZED_NAME_COMMENT = "comment"; @SerializedName(SERIALIZED_NAME_COMMENT) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -183,8 +180,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("comment") != null && !jsonObj.get("comment").isJsonNull()) { // validate the required field `comment` FComment.validateJsonElement(jsonObj.get("comment")); + } // validate the required field `result` QuestionResult.validateJsonElement(jsonObj.get("result")); } diff --git a/client/src/main/java/com/fastcomments/model/FindCommentsByRangeResponse.java b/client/src/main/java/com/fastcomments/model/FindCommentsByRangeResponse.java index d771577b..259b36db 100644 --- a/client/src/main/java/com/fastcomments/model/FindCommentsByRangeResponse.java +++ b/client/src/main/java/com/fastcomments/model/FindCommentsByRangeResponse.java @@ -52,7 +52,7 @@ /** * FindCommentsByRangeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class FindCommentsByRangeResponse { public static final String SERIALIZED_NAME_RESULTS = "results"; @SerializedName(SERIALIZED_NAME_RESULTS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -193,16 +190,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the json data is an array - if (!jsonObj.get("results").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `results` to be an array in the JSON string but got `%s`", jsonObj.get("results").toString())); + if (jsonObj.get("results") != null) { + if (!jsonObj.get("results").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `results` to be an array in the JSON string but got `%s`", jsonObj.get("results").toString())); + } + JsonArray jsonArrayresults = jsonObj.getAsJsonArray("results"); + // validate the required field `results` (array) + for (int i = 0; i < jsonArrayresults.size(); i++) { + FindCommentsByRangeItem.validateJsonElement(jsonArrayresults.get(i)); + } } - - JsonArray jsonArrayresults = jsonObj.getAsJsonArray("results"); - // validate the required field `results` (array) - for (int i = 0; i < jsonArrayresults.size(); i++) { - FindCommentsByRangeItem.validateJsonElement(jsonArrayresults.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/FlagComment200Response.java b/client/src/main/java/com/fastcomments/model/FlagComment200Response.java deleted file mode 100644 index e0d724ff..00000000 --- a/client/src/main/java/com/fastcomments/model/FlagComment200Response.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FlagCommentResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class FlagComment200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(FlagComment200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FlagComment200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FlagComment200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterFlagCommentResponse = gson.getDelegateAdapter(this, TypeToken.get(FlagCommentResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FlagComment200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `FlagCommentResponse` - if (value.getActualInstance() instanceof FlagCommentResponse) { - JsonElement element = adapterFlagCommentResponse.toJsonTree((FlagCommentResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, FlagCommentResponse"); - } - - @Override - public FlagComment200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize FlagCommentResponse - try { - // validate the JSON object to see if any exception is thrown - FlagCommentResponse.validateJsonElement(jsonElement); - actualAdapter = adapterFlagCommentResponse; - FlagComment200Response ret = new FlagComment200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for FlagCommentResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'FlagCommentResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - FlagComment200Response ret = new FlagComment200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for FlagComment200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public FlagComment200Response() { - super("anyOf", Boolean.FALSE); - } - - public FlagComment200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("FlagCommentResponse", FlagCommentResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return FlagComment200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, FlagCommentResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof FlagCommentResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, FlagCommentResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, FlagCommentResponse - * - * @return The actual instance (APIError, FlagCommentResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `FlagCommentResponse`. If the actual instance is not `FlagCommentResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `FlagCommentResponse` - * @throws ClassCastException if the instance is not `FlagCommentResponse` - */ - public FlagCommentResponse getFlagCommentResponse() throws ClassCastException { - return (FlagCommentResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FlagComment200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with FlagCommentResponse - try { - FlagCommentResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for FlagCommentResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for FlagComment200Response with anyOf schemas: APIError, FlagCommentResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of FlagComment200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of FlagComment200Response - * @throws IOException if the JSON string is invalid with respect to FlagComment200Response - */ - public static FlagComment200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FlagComment200Response.class); - } - - /** - * Convert an instance of FlagComment200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/FlagCommentPublic200Response.java b/client/src/main/java/com/fastcomments/model/FlagCommentPublic200Response.java deleted file mode 100644 index d39d6e12..00000000 --- a/client/src/main/java/com/fastcomments/model/FlagCommentPublic200Response.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIEmptyResponse; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class FlagCommentPublic200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(FlagCommentPublic200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FlagCommentPublic200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FlagCommentPublic200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAPIEmptyResponse = gson.getDelegateAdapter(this, TypeToken.get(APIEmptyResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FlagCommentPublic200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `APIEmptyResponse` - if (value.getActualInstance() instanceof APIEmptyResponse) { - JsonElement element = adapterAPIEmptyResponse.toJsonTree((APIEmptyResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIEmptyResponse, APIError"); - } - - @Override - public FlagCommentPublic200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize APIEmptyResponse - try { - // validate the JSON object to see if any exception is thrown - APIEmptyResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAPIEmptyResponse; - FlagCommentPublic200Response ret = new FlagCommentPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIEmptyResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIEmptyResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - FlagCommentPublic200Response ret = new FlagCommentPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for FlagCommentPublic200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public FlagCommentPublic200Response() { - super("anyOf", Boolean.FALSE); - } - - public FlagCommentPublic200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return FlagCommentPublic200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIEmptyResponse, APIError - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof APIEmptyResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIEmptyResponse, APIError"); - } - - /** - * Get the actual instance, which can be the following: - * APIEmptyResponse, APIError - * - * @return The actual instance (APIEmptyResponse, APIError) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `APIEmptyResponse`. If the actual instance is not `APIEmptyResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIEmptyResponse` - * @throws ClassCastException if the instance is not `APIEmptyResponse` - */ - public APIEmptyResponse getAPIEmptyResponse() throws ClassCastException { - return (APIEmptyResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FlagCommentPublic200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with APIEmptyResponse - try { - APIEmptyResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIEmptyResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for FlagCommentPublic200Response with anyOf schemas: APIEmptyResponse, APIError. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of FlagCommentPublic200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of FlagCommentPublic200Response - * @throws IOException if the JSON string is invalid with respect to FlagCommentPublic200Response - */ - public static FlagCommentPublic200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FlagCommentPublic200Response.class); - } - - /** - * Convert an instance of FlagCommentPublic200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/FlagCommentResponse.java b/client/src/main/java/com/fastcomments/model/FlagCommentResponse.java index d33edd35..86e1da13 100644 --- a/client/src/main/java/com/fastcomments/model/FlagCommentResponse.java +++ b/client/src/main/java/com/fastcomments/model/FlagCommentResponse.java @@ -49,7 +49,7 @@ /** * FlagCommentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class FlagCommentResponse { public static final String SERIALIZED_NAME_STATUS_CODE = "statusCode"; @SerializedName(SERIALIZED_NAME_STATUS_CODE) @@ -214,10 +214,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetAuditLogs200Response.java b/client/src/main/java/com/fastcomments/model/GetAuditLogs200Response.java deleted file mode 100644 index a07c0e3c..00000000 --- a/client/src/main/java/com/fastcomments/model/GetAuditLogs200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIAuditLog; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetAuditLogsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetAuditLogs200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetAuditLogs200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetAuditLogs200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetAuditLogs200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetAuditLogsResponse = gson.getDelegateAdapter(this, TypeToken.get(GetAuditLogsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetAuditLogs200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetAuditLogsResponse` - if (value.getActualInstance() instanceof GetAuditLogsResponse) { - JsonElement element = adapterGetAuditLogsResponse.toJsonTree((GetAuditLogsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetAuditLogsResponse"); - } - - @Override - public GetAuditLogs200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetAuditLogsResponse - try { - // validate the JSON object to see if any exception is thrown - GetAuditLogsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetAuditLogsResponse; - GetAuditLogs200Response ret = new GetAuditLogs200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetAuditLogsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetAuditLogsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetAuditLogs200Response ret = new GetAuditLogs200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetAuditLogs200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetAuditLogs200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetAuditLogs200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetAuditLogsResponse", GetAuditLogsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetAuditLogs200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetAuditLogsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetAuditLogsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetAuditLogsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetAuditLogsResponse - * - * @return The actual instance (APIError, GetAuditLogsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetAuditLogsResponse`. If the actual instance is not `GetAuditLogsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetAuditLogsResponse` - * @throws ClassCastException if the instance is not `GetAuditLogsResponse` - */ - public GetAuditLogsResponse getGetAuditLogsResponse() throws ClassCastException { - return (GetAuditLogsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetAuditLogs200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetAuditLogsResponse - try { - GetAuditLogsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetAuditLogsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetAuditLogs200Response with anyOf schemas: APIError, GetAuditLogsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetAuditLogs200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetAuditLogs200Response - * @throws IOException if the JSON string is invalid with respect to GetAuditLogs200Response - */ - public static GetAuditLogs200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetAuditLogs200Response.class); - } - - /** - * Convert an instance of GetAuditLogs200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetAuditLogsResponse.java b/client/src/main/java/com/fastcomments/model/GetAuditLogsResponse.java index 3ea93ac2..9a4ed54c 100644 --- a/client/src/main/java/com/fastcomments/model/GetAuditLogsResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetAuditLogsResponse.java @@ -52,7 +52,7 @@ /** * GetAuditLogsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetAuditLogsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("auditLogs").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `auditLogs` to be an array in the JSON string but got `%s`", jsonObj.get("auditLogs").toString())); + if (jsonObj.get("auditLogs") != null) { + if (!jsonObj.get("auditLogs").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `auditLogs` to be an array in the JSON string but got `%s`", jsonObj.get("auditLogs").toString())); + } + JsonArray jsonArrayauditLogs = jsonObj.getAsJsonArray("auditLogs"); + // validate the required field `auditLogs` (array) + for (int i = 0; i < jsonArrayauditLogs.size(); i++) { + APIAuditLog.validateJsonElement(jsonArrayauditLogs.get(i)); + } } - - JsonArray jsonArrayauditLogs = jsonObj.getAsJsonArray("auditLogs"); - // validate the required field `auditLogs` (array) - for (int i = 0; i < jsonArrayauditLogs.size(); i++) { - APIAuditLog.validateJsonElement(jsonArrayauditLogs.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetBannedUsersCountResponse.java b/client/src/main/java/com/fastcomments/model/GetBannedUsersCountResponse.java new file mode 100644 index 00000000..dcf7dcae --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetBannedUsersCountResponse.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GetBannedUsersCountResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetBannedUsersCountResponse { + public static final String SERIALIZED_NAME_TOTAL_COUNT = "totalCount"; + @SerializedName(SERIALIZED_NAME_TOTAL_COUNT) + @javax.annotation.Nonnull + private Double totalCount; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private String status; + + public GetBannedUsersCountResponse() { + } + + public GetBannedUsersCountResponse totalCount(@javax.annotation.Nonnull Double totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + */ + @javax.annotation.Nonnull + public Double getTotalCount() { + return totalCount; + } + + public void setTotalCount(@javax.annotation.Nonnull Double totalCount) { + this.totalCount = totalCount; + } + + + public GetBannedUsersCountResponse status(@javax.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public String getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull String status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GetBannedUsersCountResponse instance itself + */ + public GetBannedUsersCountResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetBannedUsersCountResponse getBannedUsersCountResponse = (GetBannedUsersCountResponse) o; + return Objects.equals(this.totalCount, getBannedUsersCountResponse.totalCount) && + Objects.equals(this.status, getBannedUsersCountResponse.status)&& + Objects.equals(this.additionalProperties, getBannedUsersCountResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(totalCount, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetBannedUsersCountResponse {\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("totalCount", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("totalCount", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetBannedUsersCountResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetBannedUsersCountResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetBannedUsersCountResponse is not found in the empty JSON string", GetBannedUsersCountResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GetBannedUsersCountResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetBannedUsersCountResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetBannedUsersCountResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetBannedUsersCountResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetBannedUsersCountResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GetBannedUsersCountResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GetBannedUsersCountResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetBannedUsersCountResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetBannedUsersCountResponse + * @throws IOException if the JSON string is invalid with respect to GetBannedUsersCountResponse + */ + public static GetBannedUsersCountResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetBannedUsersCountResponse.class); + } + + /** + * Convert an instance of GetBannedUsersCountResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetBannedUsersFromCommentResponse.java b/client/src/main/java/com/fastcomments/model/GetBannedUsersFromCommentResponse.java new file mode 100644 index 00000000..b7dfa407 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetBannedUsersFromCommentResponse.java @@ -0,0 +1,422 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIBannedUserWithMultiMatchInfo; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GetBannedUsersFromCommentResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetBannedUsersFromCommentResponse { + public static final String SERIALIZED_NAME_BANNED_USERS = "bannedUsers"; + @SerializedName(SERIALIZED_NAME_BANNED_USERS) + @javax.annotation.Nonnull + private List bannedUsers = new ArrayList<>(); + + /** + * Gets or Sets code + */ + @JsonAdapter(CodeEnum.Adapter.class) + public enum CodeEnum { + NOT_FOUND("not-found"), + + NOT_LOGGED_IN("not-logged-in"); + + private String value; + + CodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CodeEnum fromValue(String value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CodeEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + CodeEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable + private CodeEnum code; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public GetBannedUsersFromCommentResponse() { + } + + public GetBannedUsersFromCommentResponse bannedUsers(@javax.annotation.Nonnull List bannedUsers) { + this.bannedUsers = bannedUsers; + return this; + } + + public GetBannedUsersFromCommentResponse addBannedUsersItem(APIBannedUserWithMultiMatchInfo bannedUsersItem) { + if (this.bannedUsers == null) { + this.bannedUsers = new ArrayList<>(); + } + this.bannedUsers.add(bannedUsersItem); + return this; + } + + /** + * Get bannedUsers + * @return bannedUsers + */ + @javax.annotation.Nonnull + public List getBannedUsers() { + return bannedUsers; + } + + public void setBannedUsers(@javax.annotation.Nonnull List bannedUsers) { + this.bannedUsers = bannedUsers; + } + + + public GetBannedUsersFromCommentResponse code(@javax.annotation.Nullable CodeEnum code) { + this.code = code; + return this; + } + + /** + * Get code + * @return code + */ + @javax.annotation.Nullable + public CodeEnum getCode() { + return code; + } + + public void setCode(@javax.annotation.Nullable CodeEnum code) { + this.code = code; + } + + + public GetBannedUsersFromCommentResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GetBannedUsersFromCommentResponse instance itself + */ + public GetBannedUsersFromCommentResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetBannedUsersFromCommentResponse getBannedUsersFromCommentResponse = (GetBannedUsersFromCommentResponse) o; + return Objects.equals(this.bannedUsers, getBannedUsersFromCommentResponse.bannedUsers) && + Objects.equals(this.code, getBannedUsersFromCommentResponse.code) && + Objects.equals(this.status, getBannedUsersFromCommentResponse.status)&& + Objects.equals(this.additionalProperties, getBannedUsersFromCommentResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(bannedUsers, code, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetBannedUsersFromCommentResponse {\n"); + sb.append(" bannedUsers: ").append(toIndentedString(bannedUsers)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("bannedUsers", "code", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("bannedUsers", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetBannedUsersFromCommentResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetBannedUsersFromCommentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetBannedUsersFromCommentResponse is not found in the empty JSON string", GetBannedUsersFromCommentResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GetBannedUsersFromCommentResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("bannedUsers") != null) { + if (!jsonObj.get("bannedUsers").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `bannedUsers` to be an array in the JSON string but got `%s`", jsonObj.get("bannedUsers").toString())); + } + JsonArray jsonArraybannedUsers = jsonObj.getAsJsonArray("bannedUsers"); + // validate the required field `bannedUsers` (array) + for (int i = 0; i < jsonArraybannedUsers.size(); i++) { + APIBannedUserWithMultiMatchInfo.validateJsonElement(jsonArraybannedUsers.get(i)); + } + } + if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + } + // validate the optional field `code` + if (jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) { + CodeEnum.validateJsonElement(jsonObj.get("code")); + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetBannedUsersFromCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetBannedUsersFromCommentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetBannedUsersFromCommentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetBannedUsersFromCommentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GetBannedUsersFromCommentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GetBannedUsersFromCommentResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetBannedUsersFromCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetBannedUsersFromCommentResponse + * @throws IOException if the JSON string is invalid with respect to GetBannedUsersFromCommentResponse + */ + public static GetBannedUsersFromCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetBannedUsersFromCommentResponse.class); + } + + /** + * Convert an instance of GetBannedUsersFromCommentResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetCachedNotificationCount200Response.java b/client/src/main/java/com/fastcomments/model/GetCachedNotificationCount200Response.java deleted file mode 100644 index a9d48991..00000000 --- a/client/src/main/java/com/fastcomments/model/GetCachedNotificationCount200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetCachedNotificationCountResponse; -import com.fastcomments.model.UserNotificationCount; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetCachedNotificationCount200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetCachedNotificationCount200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCachedNotificationCount200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCachedNotificationCount200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetCachedNotificationCountResponse = gson.getDelegateAdapter(this, TypeToken.get(GetCachedNotificationCountResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCachedNotificationCount200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetCachedNotificationCountResponse` - if (value.getActualInstance() instanceof GetCachedNotificationCountResponse) { - JsonElement element = adapterGetCachedNotificationCountResponse.toJsonTree((GetCachedNotificationCountResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetCachedNotificationCountResponse"); - } - - @Override - public GetCachedNotificationCount200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetCachedNotificationCountResponse - try { - // validate the JSON object to see if any exception is thrown - GetCachedNotificationCountResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetCachedNotificationCountResponse; - GetCachedNotificationCount200Response ret = new GetCachedNotificationCount200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCachedNotificationCountResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetCachedNotificationCountResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetCachedNotificationCount200Response ret = new GetCachedNotificationCount200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetCachedNotificationCount200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetCachedNotificationCount200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetCachedNotificationCount200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetCachedNotificationCountResponse", GetCachedNotificationCountResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetCachedNotificationCount200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetCachedNotificationCountResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetCachedNotificationCountResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetCachedNotificationCountResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetCachedNotificationCountResponse - * - * @return The actual instance (APIError, GetCachedNotificationCountResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetCachedNotificationCountResponse`. If the actual instance is not `GetCachedNotificationCountResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetCachedNotificationCountResponse` - * @throws ClassCastException if the instance is not `GetCachedNotificationCountResponse` - */ - public GetCachedNotificationCountResponse getGetCachedNotificationCountResponse() throws ClassCastException { - return (GetCachedNotificationCountResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetCachedNotificationCount200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetCachedNotificationCountResponse - try { - GetCachedNotificationCountResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCachedNotificationCountResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetCachedNotificationCount200Response with anyOf schemas: APIError, GetCachedNotificationCountResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetCachedNotificationCount200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetCachedNotificationCount200Response - * @throws IOException if the JSON string is invalid with respect to GetCachedNotificationCount200Response - */ - public static GetCachedNotificationCount200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetCachedNotificationCount200Response.class); - } - - /** - * Convert an instance of GetCachedNotificationCount200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetCachedNotificationCountResponse.java b/client/src/main/java/com/fastcomments/model/GetCachedNotificationCountResponse.java index 8a48cf8f..16fb1d60 100644 --- a/client/src/main/java/com/fastcomments/model/GetCachedNotificationCountResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetCachedNotificationCountResponse.java @@ -50,7 +50,7 @@ /** * GetCachedNotificationCountResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetCachedNotificationCountResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetComment200Response.java b/client/src/main/java/com/fastcomments/model/GetComment200Response.java deleted file mode 100644 index e633e7b5..00000000 --- a/client/src/main/java/com/fastcomments/model/GetComment200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIComment; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIGetCommentResponse; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetComment200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetComment200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetComment200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetComment200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAPIGetCommentResponse = gson.getDelegateAdapter(this, TypeToken.get(APIGetCommentResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetComment200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `APIGetCommentResponse` - if (value.getActualInstance() instanceof APIGetCommentResponse) { - JsonElement element = adapterAPIGetCommentResponse.toJsonTree((APIGetCommentResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, APIGetCommentResponse"); - } - - @Override - public GetComment200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize APIGetCommentResponse - try { - // validate the JSON object to see if any exception is thrown - APIGetCommentResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAPIGetCommentResponse; - GetComment200Response ret = new GetComment200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIGetCommentResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIGetCommentResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetComment200Response ret = new GetComment200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetComment200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetComment200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetComment200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIGetCommentResponse", APIGetCommentResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetComment200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, APIGetCommentResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof APIGetCommentResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, APIGetCommentResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, APIGetCommentResponse - * - * @return The actual instance (APIError, APIGetCommentResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `APIGetCommentResponse`. If the actual instance is not `APIGetCommentResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIGetCommentResponse` - * @throws ClassCastException if the instance is not `APIGetCommentResponse` - */ - public APIGetCommentResponse getAPIGetCommentResponse() throws ClassCastException { - return (APIGetCommentResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetComment200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with APIGetCommentResponse - try { - APIGetCommentResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIGetCommentResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetComment200Response with anyOf schemas: APIError, APIGetCommentResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetComment200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetComment200Response - * @throws IOException if the JSON string is invalid with respect to GetComment200Response - */ - public static GetComment200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetComment200Response.class); - } - - /** - * Convert an instance of GetComment200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetCommentBanStatusResponse.java b/client/src/main/java/com/fastcomments/model/GetCommentBanStatusResponse.java new file mode 100644 index 00000000..c35646c0 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetCommentBanStatusResponse.java @@ -0,0 +1,264 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GetCommentBanStatusResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetCommentBanStatusResponse { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private String status; + + public static final String SERIALIZED_NAME_EMAIL_DOMAIN = "emailDomain"; + @SerializedName(SERIALIZED_NAME_EMAIL_DOMAIN) + @javax.annotation.Nullable + private String emailDomain; + + public static final String SERIALIZED_NAME_CAN_I_P_BAN = "canIPBan"; + @SerializedName(SERIALIZED_NAME_CAN_I_P_BAN) + @javax.annotation.Nullable + private Boolean canIPBan; + + public GetCommentBanStatusResponse() { + } + + public GetCommentBanStatusResponse status(@javax.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public String getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull String status) { + this.status = status; + } + + + public GetCommentBanStatusResponse emailDomain(@javax.annotation.Nullable String emailDomain) { + this.emailDomain = emailDomain; + return this; + } + + /** + * Get emailDomain + * @return emailDomain + */ + @javax.annotation.Nullable + public String getEmailDomain() { + return emailDomain; + } + + public void setEmailDomain(@javax.annotation.Nullable String emailDomain) { + this.emailDomain = emailDomain; + } + + + public GetCommentBanStatusResponse canIPBan(@javax.annotation.Nullable Boolean canIPBan) { + this.canIPBan = canIPBan; + return this; + } + + /** + * Get canIPBan + * @return canIPBan + */ + @javax.annotation.Nullable + public Boolean getCanIPBan() { + return canIPBan; + } + + public void setCanIPBan(@javax.annotation.Nullable Boolean canIPBan) { + this.canIPBan = canIPBan; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCommentBanStatusResponse getCommentBanStatusResponse = (GetCommentBanStatusResponse) o; + return Objects.equals(this.status, getCommentBanStatusResponse.status) && + Objects.equals(this.emailDomain, getCommentBanStatusResponse.emailDomain) && + Objects.equals(this.canIPBan, getCommentBanStatusResponse.canIPBan); + } + + @Override + public int hashCode() { + return Objects.hash(status, emailDomain, canIPBan); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCommentBanStatusResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" emailDomain: ").append(toIndentedString(emailDomain)).append("\n"); + sb.append(" canIPBan: ").append(toIndentedString(canIPBan)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("status", "emailDomain", "canIPBan")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status", "emailDomain", "canIPBan")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetCommentBanStatusResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetCommentBanStatusResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetCommentBanStatusResponse is not found in the empty JSON string", GetCommentBanStatusResponse.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetCommentBanStatusResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetCommentBanStatusResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GetCommentBanStatusResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if ((jsonObj.get("emailDomain") != null && !jsonObj.get("emailDomain").isJsonNull()) && !jsonObj.get("emailDomain").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `emailDomain` to be a primitive type in the JSON string but got `%s`", jsonObj.get("emailDomain").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetCommentBanStatusResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCommentBanStatusResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetCommentBanStatusResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCommentBanStatusResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetCommentBanStatusResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetCommentBanStatusResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetCommentBanStatusResponse + * @throws IOException if the JSON string is invalid with respect to GetCommentBanStatusResponse + */ + public static GetCommentBanStatusResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetCommentBanStatusResponse.class); + } + + /** + * Convert an instance of GetCommentBanStatusResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetCommentText200Response.java b/client/src/main/java/com/fastcomments/model/GetCommentText200Response.java deleted file mode 100644 index e9c48732..00000000 --- a/client/src/main/java/com/fastcomments/model/GetCommentText200Response.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.PublicAPIGetCommentTextResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetCommentText200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetCommentText200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCommentText200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCommentText200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterPublicAPIGetCommentTextResponse = gson.getDelegateAdapter(this, TypeToken.get(PublicAPIGetCommentTextResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCommentText200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `PublicAPIGetCommentTextResponse` - if (value.getActualInstance() instanceof PublicAPIGetCommentTextResponse) { - JsonElement element = adapterPublicAPIGetCommentTextResponse.toJsonTree((PublicAPIGetCommentTextResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, PublicAPIGetCommentTextResponse"); - } - - @Override - public GetCommentText200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize PublicAPIGetCommentTextResponse - try { - // validate the JSON object to see if any exception is thrown - PublicAPIGetCommentTextResponse.validateJsonElement(jsonElement); - actualAdapter = adapterPublicAPIGetCommentTextResponse; - GetCommentText200Response ret = new GetCommentText200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PublicAPIGetCommentTextResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'PublicAPIGetCommentTextResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetCommentText200Response ret = new GetCommentText200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetCommentText200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetCommentText200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetCommentText200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("PublicAPIGetCommentTextResponse", PublicAPIGetCommentTextResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetCommentText200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, PublicAPIGetCommentTextResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof PublicAPIGetCommentTextResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, PublicAPIGetCommentTextResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, PublicAPIGetCommentTextResponse - * - * @return The actual instance (APIError, PublicAPIGetCommentTextResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `PublicAPIGetCommentTextResponse`. If the actual instance is not `PublicAPIGetCommentTextResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PublicAPIGetCommentTextResponse` - * @throws ClassCastException if the instance is not `PublicAPIGetCommentTextResponse` - */ - public PublicAPIGetCommentTextResponse getPublicAPIGetCommentTextResponse() throws ClassCastException { - return (PublicAPIGetCommentTextResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetCommentText200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with PublicAPIGetCommentTextResponse - try { - PublicAPIGetCommentTextResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PublicAPIGetCommentTextResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetCommentText200Response with anyOf schemas: APIError, PublicAPIGetCommentTextResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetCommentText200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetCommentText200Response - * @throws IOException if the JSON string is invalid with respect to GetCommentText200Response - */ - public static GetCommentText200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetCommentText200Response.class); - } - - /** - * Convert an instance of GetCommentText200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetCommentTextResponse.java b/client/src/main/java/com/fastcomments/model/GetCommentTextResponse.java new file mode 100644 index 00000000..ec81ad64 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetCommentTextResponse.java @@ -0,0 +1,319 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GetCommentTextResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetCommentTextResponse { + public static final String SERIALIZED_NAME_COMMENT = "comment"; + @SerializedName(SERIALIZED_NAME_COMMENT) + @javax.annotation.Nullable + private String comment; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public GetCommentTextResponse() { + } + + public GetCommentTextResponse comment(@javax.annotation.Nullable String comment) { + this.comment = comment; + return this; + } + + /** + * Get comment + * @return comment + */ + @javax.annotation.Nullable + public String getComment() { + return comment; + } + + public void setComment(@javax.annotation.Nullable String comment) { + this.comment = comment; + } + + + public GetCommentTextResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GetCommentTextResponse instance itself + */ + public GetCommentTextResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCommentTextResponse getCommentTextResponse = (GetCommentTextResponse) o; + return Objects.equals(this.comment, getCommentTextResponse.comment) && + Objects.equals(this.status, getCommentTextResponse.status)&& + Objects.equals(this.additionalProperties, getCommentTextResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(comment, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCommentTextResponse {\n"); + sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("comment", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetCommentTextResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetCommentTextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetCommentTextResponse is not found in the empty JSON string", GetCommentTextResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GetCommentTextResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("comment") != null && !jsonObj.get("comment").isJsonNull()) && !jsonObj.get("comment").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `comment` to be a primitive type in the JSON string but got `%s`", jsonObj.get("comment").toString())); + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetCommentTextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCommentTextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetCommentTextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCommentTextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GetCommentTextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GetCommentTextResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetCommentTextResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetCommentTextResponse + * @throws IOException if the JSON string is invalid with respect to GetCommentTextResponse + */ + public static GetCommentTextResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetCommentTextResponse.class); + } + + /** + * Convert an instance of GetCommentTextResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetCommentVoteUserNames200Response.java b/client/src/main/java/com/fastcomments/model/GetCommentVoteUserNames200Response.java deleted file mode 100644 index 3e7c348c..00000000 --- a/client/src/main/java/com/fastcomments/model/GetCommentVoteUserNames200Response.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetCommentVoteUserNamesSuccessResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetCommentVoteUserNames200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetCommentVoteUserNames200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCommentVoteUserNames200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCommentVoteUserNames200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetCommentVoteUserNamesSuccessResponse = gson.getDelegateAdapter(this, TypeToken.get(GetCommentVoteUserNamesSuccessResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCommentVoteUserNames200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetCommentVoteUserNamesSuccessResponse` - if (value.getActualInstance() instanceof GetCommentVoteUserNamesSuccessResponse) { - JsonElement element = adapterGetCommentVoteUserNamesSuccessResponse.toJsonTree((GetCommentVoteUserNamesSuccessResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetCommentVoteUserNamesSuccessResponse"); - } - - @Override - public GetCommentVoteUserNames200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetCommentVoteUserNamesSuccessResponse - try { - // validate the JSON object to see if any exception is thrown - GetCommentVoteUserNamesSuccessResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetCommentVoteUserNamesSuccessResponse; - GetCommentVoteUserNames200Response ret = new GetCommentVoteUserNames200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentVoteUserNamesSuccessResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetCommentVoteUserNamesSuccessResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetCommentVoteUserNames200Response ret = new GetCommentVoteUserNames200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetCommentVoteUserNames200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetCommentVoteUserNames200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetCommentVoteUserNames200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetCommentVoteUserNamesSuccessResponse", GetCommentVoteUserNamesSuccessResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetCommentVoteUserNames200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetCommentVoteUserNamesSuccessResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetCommentVoteUserNamesSuccessResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetCommentVoteUserNamesSuccessResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetCommentVoteUserNamesSuccessResponse - * - * @return The actual instance (APIError, GetCommentVoteUserNamesSuccessResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetCommentVoteUserNamesSuccessResponse`. If the actual instance is not `GetCommentVoteUserNamesSuccessResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetCommentVoteUserNamesSuccessResponse` - * @throws ClassCastException if the instance is not `GetCommentVoteUserNamesSuccessResponse` - */ - public GetCommentVoteUserNamesSuccessResponse getGetCommentVoteUserNamesSuccessResponse() throws ClassCastException { - return (GetCommentVoteUserNamesSuccessResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetCommentVoteUserNames200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetCommentVoteUserNamesSuccessResponse - try { - GetCommentVoteUserNamesSuccessResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentVoteUserNamesSuccessResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetCommentVoteUserNames200Response with anyOf schemas: APIError, GetCommentVoteUserNamesSuccessResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetCommentVoteUserNames200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetCommentVoteUserNames200Response - * @throws IOException if the JSON string is invalid with respect to GetCommentVoteUserNames200Response - */ - public static GetCommentVoteUserNames200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetCommentVoteUserNames200Response.class); - } - - /** - * Convert an instance of GetCommentVoteUserNames200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetCommentVoteUserNamesSuccessResponse.java b/client/src/main/java/com/fastcomments/model/GetCommentVoteUserNamesSuccessResponse.java index 0bcf6f8e..cecf0089 100644 --- a/client/src/main/java/com/fastcomments/model/GetCommentVoteUserNamesSuccessResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetCommentVoteUserNamesSuccessResponse.java @@ -51,7 +51,7 @@ /** * GetCommentVoteUserNamesSuccessResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetCommentVoteUserNamesSuccessResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -172,10 +172,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetComments200Response.java b/client/src/main/java/com/fastcomments/model/GetComments200Response.java deleted file mode 100644 index 470b1f72..00000000 --- a/client/src/main/java/com/fastcomments/model/GetComments200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIComment; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIGetCommentsResponse; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetComments200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetComments200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetComments200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetComments200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAPIGetCommentsResponse = gson.getDelegateAdapter(this, TypeToken.get(APIGetCommentsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetComments200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `APIGetCommentsResponse` - if (value.getActualInstance() instanceof APIGetCommentsResponse) { - JsonElement element = adapterAPIGetCommentsResponse.toJsonTree((APIGetCommentsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, APIGetCommentsResponse"); - } - - @Override - public GetComments200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize APIGetCommentsResponse - try { - // validate the JSON object to see if any exception is thrown - APIGetCommentsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAPIGetCommentsResponse; - GetComments200Response ret = new GetComments200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIGetCommentsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIGetCommentsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetComments200Response ret = new GetComments200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetComments200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetComments200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetComments200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIGetCommentsResponse", APIGetCommentsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetComments200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, APIGetCommentsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof APIGetCommentsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, APIGetCommentsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, APIGetCommentsResponse - * - * @return The actual instance (APIError, APIGetCommentsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `APIGetCommentsResponse`. If the actual instance is not `APIGetCommentsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIGetCommentsResponse` - * @throws ClassCastException if the instance is not `APIGetCommentsResponse` - */ - public APIGetCommentsResponse getAPIGetCommentsResponse() throws ClassCastException { - return (APIGetCommentsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetComments200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with APIGetCommentsResponse - try { - APIGetCommentsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIGetCommentsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetComments200Response with anyOf schemas: APIError, APIGetCommentsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetComments200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetComments200Response - * @throws IOException if the JSON string is invalid with respect to GetComments200Response - */ - public static GetComments200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetComments200Response.class); - } - - /** - * Convert an instance of GetComments200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetCommentsForUserResponse.java b/client/src/main/java/com/fastcomments/model/GetCommentsForUserResponse.java new file mode 100644 index 00000000..768ec381 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetCommentsForUserResponse.java @@ -0,0 +1,295 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GetCommentsForUserResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetCommentsForUserResponse { + public static final String SERIALIZED_NAME_MODERATING_TENANT_IDS = "moderatingTenantIds"; + @SerializedName(SERIALIZED_NAME_MODERATING_TENANT_IDS) + @javax.annotation.Nullable + private List moderatingTenantIds = new ArrayList<>(); + + public GetCommentsForUserResponse() { + } + + public GetCommentsForUserResponse moderatingTenantIds(@javax.annotation.Nullable List moderatingTenantIds) { + this.moderatingTenantIds = moderatingTenantIds; + return this; + } + + public GetCommentsForUserResponse addModeratingTenantIdsItem(String moderatingTenantIdsItem) { + if (this.moderatingTenantIds == null) { + this.moderatingTenantIds = new ArrayList<>(); + } + this.moderatingTenantIds.add(moderatingTenantIdsItem); + return this; + } + + /** + * Get moderatingTenantIds + * @return moderatingTenantIds + */ + @javax.annotation.Nullable + public List getModeratingTenantIds() { + return moderatingTenantIds; + } + + public void setModeratingTenantIds(@javax.annotation.Nullable List moderatingTenantIds) { + this.moderatingTenantIds = moderatingTenantIds; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GetCommentsForUserResponse instance itself + */ + public GetCommentsForUserResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCommentsForUserResponse getCommentsForUserResponse = (GetCommentsForUserResponse) o; + return Objects.equals(this.moderatingTenantIds, getCommentsForUserResponse.moderatingTenantIds)&& + Objects.equals(this.additionalProperties, getCommentsForUserResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(moderatingTenantIds, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCommentsForUserResponse {\n"); + sb.append(" moderatingTenantIds: ").append(toIndentedString(moderatingTenantIds)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("moderatingTenantIds")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetCommentsForUserResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetCommentsForUserResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetCommentsForUserResponse is not found in the empty JSON string", GetCommentsForUserResponse.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("moderatingTenantIds") != null && !jsonObj.get("moderatingTenantIds").isJsonNull() && !jsonObj.get("moderatingTenantIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `moderatingTenantIds` to be an array in the JSON string but got `%s`", jsonObj.get("moderatingTenantIds").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetCommentsForUserResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCommentsForUserResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetCommentsForUserResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCommentsForUserResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GetCommentsForUserResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GetCommentsForUserResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetCommentsForUserResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetCommentsForUserResponse + * @throws IOException if the JSON string is invalid with respect to GetCommentsForUserResponse + */ + public static GetCommentsForUserResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetCommentsForUserResponse.class); + } + + /** + * Convert an instance of GetCommentsForUserResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetCommentsPublic200Response.java b/client/src/main/java/com/fastcomments/model/GetCommentsPublic200Response.java deleted file mode 100644 index b81fd8fb..00000000 --- a/client/src/main/java/com/fastcomments/model/GetCommentsPublic200Response.java +++ /dev/null @@ -1,275 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetCommentsResponseWithPresencePublicComment; -import com.fastcomments.model.PublicComment; -import com.fastcomments.model.UserSessionInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetCommentsPublic200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetCommentsPublic200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCommentsPublic200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCommentsPublic200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetCommentsResponseWithPresencePublicComment = gson.getDelegateAdapter(this, TypeToken.get(GetCommentsResponseWithPresencePublicComment.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCommentsPublic200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetCommentsResponseWithPresencePublicComment` - if (value.getActualInstance() instanceof GetCommentsResponseWithPresencePublicComment) { - JsonElement element = adapterGetCommentsResponseWithPresencePublicComment.toJsonTree((GetCommentsResponseWithPresencePublicComment)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetCommentsResponseWithPresencePublicComment"); - } - - @Override - public GetCommentsPublic200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetCommentsResponseWithPresencePublicComment - try { - // validate the JSON object to see if any exception is thrown - GetCommentsResponseWithPresencePublicComment.validateJsonElement(jsonElement); - actualAdapter = adapterGetCommentsResponseWithPresencePublicComment; - GetCommentsPublic200Response ret = new GetCommentsPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentsResponseWithPresencePublicComment failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetCommentsResponseWithPresencePublicComment'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetCommentsPublic200Response ret = new GetCommentsPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetCommentsPublic200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetCommentsPublic200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetCommentsPublic200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetCommentsResponseWithPresencePublicComment", GetCommentsResponseWithPresencePublicComment.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetCommentsPublic200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetCommentsResponseWithPresencePublicComment - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetCommentsResponseWithPresencePublicComment) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetCommentsResponseWithPresencePublicComment"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetCommentsResponseWithPresencePublicComment - * - * @return The actual instance (APIError, GetCommentsResponseWithPresencePublicComment) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetCommentsResponseWithPresencePublicComment`. If the actual instance is not `GetCommentsResponseWithPresencePublicComment`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetCommentsResponseWithPresencePublicComment` - * @throws ClassCastException if the instance is not `GetCommentsResponseWithPresencePublicComment` - */ - public GetCommentsResponseWithPresencePublicComment getGetCommentsResponseWithPresencePublicComment() throws ClassCastException { - return (GetCommentsResponseWithPresencePublicComment)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetCommentsPublic200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetCommentsResponseWithPresencePublicComment - try { - GetCommentsResponseWithPresencePublicComment.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentsResponseWithPresencePublicComment failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetCommentsPublic200Response with anyOf schemas: APIError, GetCommentsResponseWithPresencePublicComment. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetCommentsPublic200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetCommentsPublic200Response - * @throws IOException if the JSON string is invalid with respect to GetCommentsPublic200Response - */ - public static GetCommentsPublic200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetCommentsPublic200Response.class); - } - - /** - * Convert an instance of GetCommentsPublic200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetCommentsResponsePublicComment.java b/client/src/main/java/com/fastcomments/model/GetCommentsResponsePublicComment.java index 91c574c1..b6a512f2 100644 --- a/client/src/main/java/com/fastcomments/model/GetCommentsResponsePublicComment.java +++ b/client/src/main/java/com/fastcomments/model/GetCommentsResponsePublicComment.java @@ -55,7 +55,7 @@ /** * GetCommentsResponsePublicComment */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetCommentsResponsePublicComment { public static final String SERIALIZED_NAME_STATUS_CODE = "statusCode"; @SerializedName(SERIALIZED_NAME_STATUS_CODE) @@ -730,10 +730,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -788,18 +785,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("translatedWarning") != null && !jsonObj.get("translatedWarning").isJsonNull()) && !jsonObj.get("translatedWarning").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `translatedWarning` to be a primitive type in the JSON string but got `%s`", jsonObj.get("translatedWarning").toString())); } - // ensure the json data is an array - if (!jsonObj.get("comments").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `comments` to be an array in the JSON string but got `%s`", jsonObj.get("comments").toString())); + if (jsonObj.get("comments") != null) { + if (!jsonObj.get("comments").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `comments` to be an array in the JSON string but got `%s`", jsonObj.get("comments").toString())); + } + JsonArray jsonArraycomments = jsonObj.getAsJsonArray("comments"); + // validate the required field `comments` (array) + for (int i = 0; i < jsonArraycomments.size(); i++) { + PublicComment.validateJsonElement(jsonArraycomments.get(i)); + } } - - JsonArray jsonArraycomments = jsonObj.getAsJsonArray("comments"); - // validate the required field `comments` (array) - for (int i = 0; i < jsonArraycomments.size(); i++) { - PublicComment.validateJsonElement(jsonArraycomments.get(i)); - }; + if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { // validate the required field `user` UserSessionInfo.validateJsonElement(jsonObj.get("user")); + } if ((jsonObj.get("urlIdClean") != null && !jsonObj.get("urlIdClean").isJsonNull()) && !jsonObj.get("urlIdClean").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `urlIdClean` to be a primitive type in the JSON string but got `%s`", jsonObj.get("urlIdClean").toString())); } diff --git a/client/src/main/java/com/fastcomments/model/GetCommentsResponseWithPresencePublicComment.java b/client/src/main/java/com/fastcomments/model/GetCommentsResponseWithPresencePublicComment.java index 218ae466..1b78dfe8 100644 --- a/client/src/main/java/com/fastcomments/model/GetCommentsResponseWithPresencePublicComment.java +++ b/client/src/main/java/com/fastcomments/model/GetCommentsResponseWithPresencePublicComment.java @@ -55,7 +55,7 @@ /** * GetCommentsResponseWithPresencePublicComment */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetCommentsResponseWithPresencePublicComment { public static final String SERIALIZED_NAME_STATUS_CODE = "statusCode"; @SerializedName(SERIALIZED_NAME_STATUS_CODE) @@ -854,10 +854,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -904,18 +901,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("translatedWarning") != null && !jsonObj.get("translatedWarning").isJsonNull()) && !jsonObj.get("translatedWarning").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `translatedWarning` to be a primitive type in the JSON string but got `%s`", jsonObj.get("translatedWarning").toString())); } - // ensure the json data is an array - if (!jsonObj.get("comments").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `comments` to be an array in the JSON string but got `%s`", jsonObj.get("comments").toString())); + if (jsonObj.get("comments") != null) { + if (!jsonObj.get("comments").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `comments` to be an array in the JSON string but got `%s`", jsonObj.get("comments").toString())); + } + JsonArray jsonArraycomments = jsonObj.getAsJsonArray("comments"); + // validate the required field `comments` (array) + for (int i = 0; i < jsonArraycomments.size(); i++) { + PublicComment.validateJsonElement(jsonArraycomments.get(i)); + } } - - JsonArray jsonArraycomments = jsonObj.getAsJsonArray("comments"); - // validate the required field `comments` (array) - for (int i = 0; i < jsonArraycomments.size(); i++) { - PublicComment.validateJsonElement(jsonArraycomments.get(i)); - }; + if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { // validate the required field `user` UserSessionInfo.validateJsonElement(jsonObj.get("user")); + } if ((jsonObj.get("urlIdClean") != null && !jsonObj.get("urlIdClean").isJsonNull()) && !jsonObj.get("urlIdClean").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `urlIdClean` to be a primitive type in the JSON string but got `%s`", jsonObj.get("urlIdClean").toString())); } diff --git a/client/src/main/java/com/fastcomments/model/GetDomainConfig200Response.java b/client/src/main/java/com/fastcomments/model/GetDomainConfigResponse.java similarity index 57% rename from client/src/main/java/com/fastcomments/model/GetDomainConfig200Response.java rename to client/src/main/java/com/fastcomments/model/GetDomainConfigResponse.java index 3b323ad6..f712dfae 100644 --- a/client/src/main/java/com/fastcomments/model/GetDomainConfig200Response.java +++ b/client/src/main/java/com/fastcomments/model/GetDomainConfigResponse.java @@ -14,8 +14,8 @@ package com.fastcomments.model; import java.util.Objects; -import com.fastcomments.model.AddDomainConfig200ResponseAnyOf; -import com.fastcomments.model.GetDomainConfigs200ResponseAnyOf1; +import com.fastcomments.model.AddDomainConfigResponseAnyOf; +import com.fastcomments.model.GetDomainConfigsResponseAnyOf1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -59,80 +59,80 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetDomainConfig200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetDomainConfig200Response.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetDomainConfigResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetDomainConfigResponse.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDomainConfig200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDomainConfig200Response' and its subtypes + if (!GetDomainConfigResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDomainConfigResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAddDomainConfig200ResponseAnyOf = gson.getDelegateAdapter(this, TypeToken.get(AddDomainConfig200ResponseAnyOf.class)); - final TypeAdapter adapterGetDomainConfigs200ResponseAnyOf1 = gson.getDelegateAdapter(this, TypeToken.get(GetDomainConfigs200ResponseAnyOf1.class)); + final TypeAdapter adapterAddDomainConfigResponseAnyOf = gson.getDelegateAdapter(this, TypeToken.get(AddDomainConfigResponseAnyOf.class)); + final TypeAdapter adapterGetDomainConfigsResponseAnyOf1 = gson.getDelegateAdapter(this, TypeToken.get(GetDomainConfigsResponseAnyOf1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, GetDomainConfig200Response value) throws IOException { + public void write(JsonWriter out, GetDomainConfigResponse value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; } - // check if the actual instance is of the type `AddDomainConfig200ResponseAnyOf` - if (value.getActualInstance() instanceof AddDomainConfig200ResponseAnyOf) { - JsonElement element = adapterAddDomainConfig200ResponseAnyOf.toJsonTree((AddDomainConfig200ResponseAnyOf)value.getActualInstance()); + // check if the actual instance is of the type `AddDomainConfigResponseAnyOf` + if (value.getActualInstance() instanceof AddDomainConfigResponseAnyOf) { + JsonElement element = adapterAddDomainConfigResponseAnyOf.toJsonTree((AddDomainConfigResponseAnyOf)value.getActualInstance()); elementAdapter.write(out, element); return; } - // check if the actual instance is of the type `GetDomainConfigs200ResponseAnyOf1` - if (value.getActualInstance() instanceof GetDomainConfigs200ResponseAnyOf1) { - JsonElement element = adapterGetDomainConfigs200ResponseAnyOf1.toJsonTree((GetDomainConfigs200ResponseAnyOf1)value.getActualInstance()); + // check if the actual instance is of the type `GetDomainConfigsResponseAnyOf1` + if (value.getActualInstance() instanceof GetDomainConfigsResponseAnyOf1) { + JsonElement element = adapterGetDomainConfigsResponseAnyOf1.toJsonTree((GetDomainConfigsResponseAnyOf1)value.getActualInstance()); elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1"); } @Override - public GetDomainConfig200Response read(JsonReader in) throws IOException { + public GetDomainConfigResponse read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); ArrayList errorMessages = new ArrayList<>(); TypeAdapter actualAdapter = elementAdapter; - // deserialize AddDomainConfig200ResponseAnyOf + // deserialize AddDomainConfigResponseAnyOf try { // validate the JSON object to see if any exception is thrown - AddDomainConfig200ResponseAnyOf.validateJsonElement(jsonElement); - actualAdapter = adapterAddDomainConfig200ResponseAnyOf; - GetDomainConfig200Response ret = new GetDomainConfig200Response(); + AddDomainConfigResponseAnyOf.validateJsonElement(jsonElement); + actualAdapter = adapterAddDomainConfigResponseAnyOf; + GetDomainConfigResponse ret = new GetDomainConfigResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AddDomainConfig200ResponseAnyOf failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'AddDomainConfig200ResponseAnyOf'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AddDomainConfigResponseAnyOf failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AddDomainConfigResponseAnyOf'", e); } - // deserialize GetDomainConfigs200ResponseAnyOf1 + // deserialize GetDomainConfigsResponseAnyOf1 try { // validate the JSON object to see if any exception is thrown - GetDomainConfigs200ResponseAnyOf1.validateJsonElement(jsonElement); - actualAdapter = adapterGetDomainConfigs200ResponseAnyOf1; - GetDomainConfig200Response ret = new GetDomainConfig200Response(); + GetDomainConfigsResponseAnyOf1.validateJsonElement(jsonElement); + actualAdapter = adapterGetDomainConfigsResponseAnyOf1; + GetDomainConfigResponse ret = new GetDomainConfigResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigs200ResponseAnyOf1 failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetDomainConfigs200ResponseAnyOf1'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigsResponseAnyOf1 failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetDomainConfigsResponseAnyOf1'", e); } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetDomainConfig200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetDomainConfigResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -141,52 +141,52 @@ public GetDomainConfig200Response read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public GetDomainConfig200Response() { + public GetDomainConfigResponse() { super("anyOf", Boolean.FALSE); } - public GetDomainConfig200Response(Object o) { + public GetDomainConfigResponse(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("AddDomainConfig200ResponseAnyOf", AddDomainConfig200ResponseAnyOf.class); - schemas.put("GetDomainConfigs200ResponseAnyOf1", GetDomainConfigs200ResponseAnyOf1.class); + schemas.put("AddDomainConfigResponseAnyOf", AddDomainConfigResponseAnyOf.class); + schemas.put("GetDomainConfigsResponseAnyOf1", GetDomainConfigsResponseAnyOf1.class); } @Override public Map> getSchemas() { - return GetDomainConfig200Response.schemas; + return GetDomainConfigResponse.schemas; } /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1 + * AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1 * * It could be an instance of the 'anyOf' schemas. */ @Override public void setActualInstance(Object instance) { - if (instance instanceof AddDomainConfig200ResponseAnyOf) { + if (instance instanceof AddDomainConfigResponseAnyOf) { super.setActualInstance(instance); return; } - if (instance instanceof GetDomainConfigs200ResponseAnyOf1) { + if (instance instanceof GetDomainConfigsResponseAnyOf1) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1"); + throw new RuntimeException("Invalid instance type. Must be AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1"); } /** * Get the actual instance, which can be the following: - * AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1 + * AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1 * - * @return The actual instance (AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1) + * @return The actual instance (AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1) */ @SuppressWarnings("unchecked") @Override @@ -195,68 +195,68 @@ public Object getActualInstance() { } /** - * Get the actual instance of `AddDomainConfig200ResponseAnyOf`. If the actual instance is not `AddDomainConfig200ResponseAnyOf`, + * Get the actual instance of `AddDomainConfigResponseAnyOf`. If the actual instance is not `AddDomainConfigResponseAnyOf`, * the ClassCastException will be thrown. * - * @return The actual instance of `AddDomainConfig200ResponseAnyOf` - * @throws ClassCastException if the instance is not `AddDomainConfig200ResponseAnyOf` + * @return The actual instance of `AddDomainConfigResponseAnyOf` + * @throws ClassCastException if the instance is not `AddDomainConfigResponseAnyOf` */ - public AddDomainConfig200ResponseAnyOf getAddDomainConfig200ResponseAnyOf() throws ClassCastException { - return (AddDomainConfig200ResponseAnyOf)super.getActualInstance(); + public AddDomainConfigResponseAnyOf getAddDomainConfigResponseAnyOf() throws ClassCastException { + return (AddDomainConfigResponseAnyOf)super.getActualInstance(); } /** - * Get the actual instance of `GetDomainConfigs200ResponseAnyOf1`. If the actual instance is not `GetDomainConfigs200ResponseAnyOf1`, + * Get the actual instance of `GetDomainConfigsResponseAnyOf1`. If the actual instance is not `GetDomainConfigsResponseAnyOf1`, * the ClassCastException will be thrown. * - * @return The actual instance of `GetDomainConfigs200ResponseAnyOf1` - * @throws ClassCastException if the instance is not `GetDomainConfigs200ResponseAnyOf1` + * @return The actual instance of `GetDomainConfigsResponseAnyOf1` + * @throws ClassCastException if the instance is not `GetDomainConfigsResponseAnyOf1` */ - public GetDomainConfigs200ResponseAnyOf1 getGetDomainConfigs200ResponseAnyOf1() throws ClassCastException { - return (GetDomainConfigs200ResponseAnyOf1)super.getActualInstance(); + public GetDomainConfigsResponseAnyOf1 getGetDomainConfigsResponseAnyOf1() throws ClassCastException { + return (GetDomainConfigsResponseAnyOf1)super.getActualInstance(); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetDomainConfig200Response + * @throws IOException if the JSON Element is invalid with respect to GetDomainConfigResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one ArrayList errorMessages = new ArrayList<>(); - // validate the json string with AddDomainConfig200ResponseAnyOf + // validate the json string with AddDomainConfigResponseAnyOf try { - AddDomainConfig200ResponseAnyOf.validateJsonElement(jsonElement); + AddDomainConfigResponseAnyOf.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AddDomainConfig200ResponseAnyOf failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AddDomainConfigResponseAnyOf failed with `%s`.", e.getMessage())); // continue to the next one } - // validate the json string with GetDomainConfigs200ResponseAnyOf1 + // validate the json string with GetDomainConfigsResponseAnyOf1 try { - GetDomainConfigs200ResponseAnyOf1.validateJsonElement(jsonElement); + GetDomainConfigsResponseAnyOf1.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigs200ResponseAnyOf1 failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigsResponseAnyOf1 failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetDomainConfig200Response with anyOf schemas: AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetDomainConfigResponse with anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of GetDomainConfig200Response given an JSON string + * Create an instance of GetDomainConfigResponse given an JSON string * * @param jsonString JSON string - * @return An instance of GetDomainConfig200Response - * @throws IOException if the JSON string is invalid with respect to GetDomainConfig200Response + * @return An instance of GetDomainConfigResponse + * @throws IOException if the JSON string is invalid with respect to GetDomainConfigResponse */ - public static GetDomainConfig200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetDomainConfig200Response.class); + public static GetDomainConfigResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetDomainConfigResponse.class); } /** - * Convert an instance of GetDomainConfig200Response to an JSON string + * Convert an instance of GetDomainConfigResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/GetDomainConfigs200Response.java b/client/src/main/java/com/fastcomments/model/GetDomainConfigsResponse.java similarity index 57% rename from client/src/main/java/com/fastcomments/model/GetDomainConfigs200Response.java rename to client/src/main/java/com/fastcomments/model/GetDomainConfigsResponse.java index bd299706..adb346dd 100644 --- a/client/src/main/java/com/fastcomments/model/GetDomainConfigs200Response.java +++ b/client/src/main/java/com/fastcomments/model/GetDomainConfigsResponse.java @@ -14,8 +14,8 @@ package com.fastcomments.model; import java.util.Objects; -import com.fastcomments.model.GetDomainConfigs200ResponseAnyOf; -import com.fastcomments.model.GetDomainConfigs200ResponseAnyOf1; +import com.fastcomments.model.GetDomainConfigsResponseAnyOf; +import com.fastcomments.model.GetDomainConfigsResponseAnyOf1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -59,80 +59,80 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetDomainConfigs200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetDomainConfigs200Response.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetDomainConfigsResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetDomainConfigsResponse.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDomainConfigs200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDomainConfigs200Response' and its subtypes + if (!GetDomainConfigsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDomainConfigsResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetDomainConfigs200ResponseAnyOf = gson.getDelegateAdapter(this, TypeToken.get(GetDomainConfigs200ResponseAnyOf.class)); - final TypeAdapter adapterGetDomainConfigs200ResponseAnyOf1 = gson.getDelegateAdapter(this, TypeToken.get(GetDomainConfigs200ResponseAnyOf1.class)); + final TypeAdapter adapterGetDomainConfigsResponseAnyOf = gson.getDelegateAdapter(this, TypeToken.get(GetDomainConfigsResponseAnyOf.class)); + final TypeAdapter adapterGetDomainConfigsResponseAnyOf1 = gson.getDelegateAdapter(this, TypeToken.get(GetDomainConfigsResponseAnyOf1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, GetDomainConfigs200Response value) throws IOException { + public void write(JsonWriter out, GetDomainConfigsResponse value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; } - // check if the actual instance is of the type `GetDomainConfigs200ResponseAnyOf` - if (value.getActualInstance() instanceof GetDomainConfigs200ResponseAnyOf) { - JsonElement element = adapterGetDomainConfigs200ResponseAnyOf.toJsonTree((GetDomainConfigs200ResponseAnyOf)value.getActualInstance()); + // check if the actual instance is of the type `GetDomainConfigsResponseAnyOf` + if (value.getActualInstance() instanceof GetDomainConfigsResponseAnyOf) { + JsonElement element = adapterGetDomainConfigsResponseAnyOf.toJsonTree((GetDomainConfigsResponseAnyOf)value.getActualInstance()); elementAdapter.write(out, element); return; } - // check if the actual instance is of the type `GetDomainConfigs200ResponseAnyOf1` - if (value.getActualInstance() instanceof GetDomainConfigs200ResponseAnyOf1) { - JsonElement element = adapterGetDomainConfigs200ResponseAnyOf1.toJsonTree((GetDomainConfigs200ResponseAnyOf1)value.getActualInstance()); + // check if the actual instance is of the type `GetDomainConfigsResponseAnyOf1` + if (value.getActualInstance() instanceof GetDomainConfigsResponseAnyOf1) { + JsonElement element = adapterGetDomainConfigsResponseAnyOf1.toJsonTree((GetDomainConfigsResponseAnyOf1)value.getActualInstance()); elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: GetDomainConfigs200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: GetDomainConfigsResponseAnyOf, GetDomainConfigsResponseAnyOf1"); } @Override - public GetDomainConfigs200Response read(JsonReader in) throws IOException { + public GetDomainConfigsResponse read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); ArrayList errorMessages = new ArrayList<>(); TypeAdapter actualAdapter = elementAdapter; - // deserialize GetDomainConfigs200ResponseAnyOf + // deserialize GetDomainConfigsResponseAnyOf try { // validate the JSON object to see if any exception is thrown - GetDomainConfigs200ResponseAnyOf.validateJsonElement(jsonElement); - actualAdapter = adapterGetDomainConfigs200ResponseAnyOf; - GetDomainConfigs200Response ret = new GetDomainConfigs200Response(); + GetDomainConfigsResponseAnyOf.validateJsonElement(jsonElement); + actualAdapter = adapterGetDomainConfigsResponseAnyOf; + GetDomainConfigsResponse ret = new GetDomainConfigsResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigs200ResponseAnyOf failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetDomainConfigs200ResponseAnyOf'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigsResponseAnyOf failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetDomainConfigsResponseAnyOf'", e); } - // deserialize GetDomainConfigs200ResponseAnyOf1 + // deserialize GetDomainConfigsResponseAnyOf1 try { // validate the JSON object to see if any exception is thrown - GetDomainConfigs200ResponseAnyOf1.validateJsonElement(jsonElement); - actualAdapter = adapterGetDomainConfigs200ResponseAnyOf1; - GetDomainConfigs200Response ret = new GetDomainConfigs200Response(); + GetDomainConfigsResponseAnyOf1.validateJsonElement(jsonElement); + actualAdapter = adapterGetDomainConfigsResponseAnyOf1; + GetDomainConfigsResponse ret = new GetDomainConfigsResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigs200ResponseAnyOf1 failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetDomainConfigs200ResponseAnyOf1'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigsResponseAnyOf1 failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetDomainConfigsResponseAnyOf1'", e); } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetDomainConfigs200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetDomainConfigsResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -141,52 +141,52 @@ public GetDomainConfigs200Response read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public GetDomainConfigs200Response() { + public GetDomainConfigsResponse() { super("anyOf", Boolean.FALSE); } - public GetDomainConfigs200Response(Object o) { + public GetDomainConfigsResponse(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("GetDomainConfigs200ResponseAnyOf", GetDomainConfigs200ResponseAnyOf.class); - schemas.put("GetDomainConfigs200ResponseAnyOf1", GetDomainConfigs200ResponseAnyOf1.class); + schemas.put("GetDomainConfigsResponseAnyOf", GetDomainConfigsResponseAnyOf.class); + schemas.put("GetDomainConfigsResponseAnyOf1", GetDomainConfigsResponseAnyOf1.class); } @Override public Map> getSchemas() { - return GetDomainConfigs200Response.schemas; + return GetDomainConfigsResponse.schemas; } /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * GetDomainConfigs200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1 + * GetDomainConfigsResponseAnyOf, GetDomainConfigsResponseAnyOf1 * * It could be an instance of the 'anyOf' schemas. */ @Override public void setActualInstance(Object instance) { - if (instance instanceof GetDomainConfigs200ResponseAnyOf) { + if (instance instanceof GetDomainConfigsResponseAnyOf) { super.setActualInstance(instance); return; } - if (instance instanceof GetDomainConfigs200ResponseAnyOf1) { + if (instance instanceof GetDomainConfigsResponseAnyOf1) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be GetDomainConfigs200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1"); + throw new RuntimeException("Invalid instance type. Must be GetDomainConfigsResponseAnyOf, GetDomainConfigsResponseAnyOf1"); } /** * Get the actual instance, which can be the following: - * GetDomainConfigs200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1 + * GetDomainConfigsResponseAnyOf, GetDomainConfigsResponseAnyOf1 * - * @return The actual instance (GetDomainConfigs200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1) + * @return The actual instance (GetDomainConfigsResponseAnyOf, GetDomainConfigsResponseAnyOf1) */ @SuppressWarnings("unchecked") @Override @@ -195,68 +195,68 @@ public Object getActualInstance() { } /** - * Get the actual instance of `GetDomainConfigs200ResponseAnyOf`. If the actual instance is not `GetDomainConfigs200ResponseAnyOf`, + * Get the actual instance of `GetDomainConfigsResponseAnyOf`. If the actual instance is not `GetDomainConfigsResponseAnyOf`, * the ClassCastException will be thrown. * - * @return The actual instance of `GetDomainConfigs200ResponseAnyOf` - * @throws ClassCastException if the instance is not `GetDomainConfigs200ResponseAnyOf` + * @return The actual instance of `GetDomainConfigsResponseAnyOf` + * @throws ClassCastException if the instance is not `GetDomainConfigsResponseAnyOf` */ - public GetDomainConfigs200ResponseAnyOf getGetDomainConfigs200ResponseAnyOf() throws ClassCastException { - return (GetDomainConfigs200ResponseAnyOf)super.getActualInstance(); + public GetDomainConfigsResponseAnyOf getGetDomainConfigsResponseAnyOf() throws ClassCastException { + return (GetDomainConfigsResponseAnyOf)super.getActualInstance(); } /** - * Get the actual instance of `GetDomainConfigs200ResponseAnyOf1`. If the actual instance is not `GetDomainConfigs200ResponseAnyOf1`, + * Get the actual instance of `GetDomainConfigsResponseAnyOf1`. If the actual instance is not `GetDomainConfigsResponseAnyOf1`, * the ClassCastException will be thrown. * - * @return The actual instance of `GetDomainConfigs200ResponseAnyOf1` - * @throws ClassCastException if the instance is not `GetDomainConfigs200ResponseAnyOf1` + * @return The actual instance of `GetDomainConfigsResponseAnyOf1` + * @throws ClassCastException if the instance is not `GetDomainConfigsResponseAnyOf1` */ - public GetDomainConfigs200ResponseAnyOf1 getGetDomainConfigs200ResponseAnyOf1() throws ClassCastException { - return (GetDomainConfigs200ResponseAnyOf1)super.getActualInstance(); + public GetDomainConfigsResponseAnyOf1 getGetDomainConfigsResponseAnyOf1() throws ClassCastException { + return (GetDomainConfigsResponseAnyOf1)super.getActualInstance(); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetDomainConfigs200Response + * @throws IOException if the JSON Element is invalid with respect to GetDomainConfigsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetDomainConfigs200ResponseAnyOf + // validate the json string with GetDomainConfigsResponseAnyOf try { - GetDomainConfigs200ResponseAnyOf.validateJsonElement(jsonElement); + GetDomainConfigsResponseAnyOf.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigs200ResponseAnyOf failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigsResponseAnyOf failed with `%s`.", e.getMessage())); // continue to the next one } - // validate the json string with GetDomainConfigs200ResponseAnyOf1 + // validate the json string with GetDomainConfigsResponseAnyOf1 try { - GetDomainConfigs200ResponseAnyOf1.validateJsonElement(jsonElement); + GetDomainConfigsResponseAnyOf1.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigs200ResponseAnyOf1 failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigsResponseAnyOf1 failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetDomainConfigs200Response with anyOf schemas: GetDomainConfigs200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetDomainConfigsResponse with anyOf schemas: GetDomainConfigsResponseAnyOf, GetDomainConfigsResponseAnyOf1. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of GetDomainConfigs200Response given an JSON string + * Create an instance of GetDomainConfigsResponse given an JSON string * * @param jsonString JSON string - * @return An instance of GetDomainConfigs200Response - * @throws IOException if the JSON string is invalid with respect to GetDomainConfigs200Response + * @return An instance of GetDomainConfigsResponse + * @throws IOException if the JSON string is invalid with respect to GetDomainConfigsResponse */ - public static GetDomainConfigs200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetDomainConfigs200Response.class); + public static GetDomainConfigsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetDomainConfigsResponse.class); } /** - * Convert an instance of GetDomainConfigs200Response to an JSON string + * Convert an instance of GetDomainConfigsResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOf.java b/client/src/main/java/com/fastcomments/model/GetDomainConfigsResponseAnyOf.java similarity index 79% rename from client/src/main/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOf.java rename to client/src/main/java/com/fastcomments/model/GetDomainConfigsResponseAnyOf.java index f048dc10..fd4e958c 100644 --- a/client/src/main/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOf.java +++ b/client/src/main/java/com/fastcomments/model/GetDomainConfigsResponseAnyOf.java @@ -46,10 +46,10 @@ import com.fastcomments.invoker.JSON; /** - * GetDomainConfigs200ResponseAnyOf + * GetDomainConfigsResponseAnyOf */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetDomainConfigs200ResponseAnyOf { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetDomainConfigsResponseAnyOf { public static final String SERIALIZED_NAME_CONFIGURATIONS = "configurations"; @SerializedName(SERIALIZED_NAME_CONFIGURATIONS) @javax.annotation.Nullable @@ -60,10 +60,10 @@ public class GetDomainConfigs200ResponseAnyOf { @javax.annotation.Nullable private Object status = null; - public GetDomainConfigs200ResponseAnyOf() { + public GetDomainConfigsResponseAnyOf() { } - public GetDomainConfigs200ResponseAnyOf configurations(@javax.annotation.Nullable Object configurations) { + public GetDomainConfigsResponseAnyOf configurations(@javax.annotation.Nullable Object configurations) { this.configurations = configurations; return this; } @@ -82,7 +82,7 @@ public void setConfigurations(@javax.annotation.Nullable Object configurations) } - public GetDomainConfigs200ResponseAnyOf status(@javax.annotation.Nullable Object status) { + public GetDomainConfigsResponseAnyOf status(@javax.annotation.Nullable Object status) { this.status = status; return this; } @@ -113,9 +113,9 @@ public void setStatus(@javax.annotation.Nullable Object status) { * * @param key name of the property * @param value value of the property - * @return the GetDomainConfigs200ResponseAnyOf instance itself + * @return the GetDomainConfigsResponseAnyOf instance itself */ - public GetDomainConfigs200ResponseAnyOf putAdditionalProperty(String key, Object value) { + public GetDomainConfigsResponseAnyOf putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -154,10 +154,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetDomainConfigs200ResponseAnyOf getDomainConfigs200ResponseAnyOf = (GetDomainConfigs200ResponseAnyOf) o; - return Objects.equals(this.configurations, getDomainConfigs200ResponseAnyOf.configurations) && - Objects.equals(this.status, getDomainConfigs200ResponseAnyOf.status)&& - Objects.equals(this.additionalProperties, getDomainConfigs200ResponseAnyOf.additionalProperties); + GetDomainConfigsResponseAnyOf getDomainConfigsResponseAnyOf = (GetDomainConfigsResponseAnyOf) o; + return Objects.equals(this.configurations, getDomainConfigsResponseAnyOf.configurations) && + Objects.equals(this.status, getDomainConfigsResponseAnyOf.status)&& + Objects.equals(this.additionalProperties, getDomainConfigsResponseAnyOf.additionalProperties); } @Override @@ -168,7 +168,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class GetDomainConfigs200ResponseAnyOf {\n"); + sb.append("class GetDomainConfigsResponseAnyOf {\n"); sb.append(" configurations: ").append(toIndentedString(configurations)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -181,10 +181,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -203,17 +200,17 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetDomainConfigs200ResponseAnyOf + * @throws IOException if the JSON Element is invalid with respect to GetDomainConfigsResponseAnyOf */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!GetDomainConfigs200ResponseAnyOf.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetDomainConfigs200ResponseAnyOf is not found in the empty JSON string", GetDomainConfigs200ResponseAnyOf.openapiRequiredFields.toString())); + if (!GetDomainConfigsResponseAnyOf.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetDomainConfigsResponseAnyOf is not found in the empty JSON string", GetDomainConfigsResponseAnyOf.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : GetDomainConfigs200ResponseAnyOf.openapiRequiredFields) { + for (String requiredField : GetDomainConfigsResponseAnyOf.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -225,16 +222,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDomainConfigs200ResponseAnyOf.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDomainConfigs200ResponseAnyOf' and its subtypes + if (!GetDomainConfigsResponseAnyOf.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDomainConfigsResponseAnyOf' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDomainConfigs200ResponseAnyOf.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDomainConfigsResponseAnyOf.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, GetDomainConfigs200ResponseAnyOf value) throws IOException { + public void write(JsonWriter out, GetDomainConfigsResponseAnyOf value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -262,12 +259,12 @@ else if (entry.getValue() instanceof Character) } @Override - public GetDomainConfigs200ResponseAnyOf read(JsonReader in) throws IOException { + public GetDomainConfigsResponseAnyOf read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance - GetDomainConfigs200ResponseAnyOf instance = thisAdapter.fromJsonTree(jsonObj); + GetDomainConfigsResponseAnyOf instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -294,18 +291,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of GetDomainConfigs200ResponseAnyOf given an JSON string + * Create an instance of GetDomainConfigsResponseAnyOf given an JSON string * * @param jsonString JSON string - * @return An instance of GetDomainConfigs200ResponseAnyOf - * @throws IOException if the JSON string is invalid with respect to GetDomainConfigs200ResponseAnyOf + * @return An instance of GetDomainConfigsResponseAnyOf + * @throws IOException if the JSON string is invalid with respect to GetDomainConfigsResponseAnyOf */ - public static GetDomainConfigs200ResponseAnyOf fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetDomainConfigs200ResponseAnyOf.class); + public static GetDomainConfigsResponseAnyOf fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetDomainConfigsResponseAnyOf.class); } /** - * Convert an instance of GetDomainConfigs200ResponseAnyOf to an JSON string + * Convert an instance of GetDomainConfigsResponseAnyOf to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOf1.java b/client/src/main/java/com/fastcomments/model/GetDomainConfigsResponseAnyOf1.java similarity index 79% rename from client/src/main/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOf1.java rename to client/src/main/java/com/fastcomments/model/GetDomainConfigsResponseAnyOf1.java index 4cdd0857..8583b899 100644 --- a/client/src/main/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOf1.java +++ b/client/src/main/java/com/fastcomments/model/GetDomainConfigsResponseAnyOf1.java @@ -46,10 +46,10 @@ import com.fastcomments.invoker.JSON; /** - * GetDomainConfigs200ResponseAnyOf1 + * GetDomainConfigsResponseAnyOf1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetDomainConfigs200ResponseAnyOf1 { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetDomainConfigsResponseAnyOf1 { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @javax.annotation.Nonnull @@ -65,10 +65,10 @@ public class GetDomainConfigs200ResponseAnyOf1 { @javax.annotation.Nullable private Object status = null; - public GetDomainConfigs200ResponseAnyOf1() { + public GetDomainConfigsResponseAnyOf1() { } - public GetDomainConfigs200ResponseAnyOf1 reason(@javax.annotation.Nonnull String reason) { + public GetDomainConfigsResponseAnyOf1 reason(@javax.annotation.Nonnull String reason) { this.reason = reason; return this; } @@ -87,7 +87,7 @@ public void setReason(@javax.annotation.Nonnull String reason) { } - public GetDomainConfigs200ResponseAnyOf1 code(@javax.annotation.Nonnull String code) { + public GetDomainConfigsResponseAnyOf1 code(@javax.annotation.Nonnull String code) { this.code = code; return this; } @@ -106,7 +106,7 @@ public void setCode(@javax.annotation.Nonnull String code) { } - public GetDomainConfigs200ResponseAnyOf1 status(@javax.annotation.Nullable Object status) { + public GetDomainConfigsResponseAnyOf1 status(@javax.annotation.Nullable Object status) { this.status = status; return this; } @@ -137,9 +137,9 @@ public void setStatus(@javax.annotation.Nullable Object status) { * * @param key name of the property * @param value value of the property - * @return the GetDomainConfigs200ResponseAnyOf1 instance itself + * @return the GetDomainConfigsResponseAnyOf1 instance itself */ - public GetDomainConfigs200ResponseAnyOf1 putAdditionalProperty(String key, Object value) { + public GetDomainConfigsResponseAnyOf1 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -178,11 +178,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetDomainConfigs200ResponseAnyOf1 getDomainConfigs200ResponseAnyOf1 = (GetDomainConfigs200ResponseAnyOf1) o; - return Objects.equals(this.reason, getDomainConfigs200ResponseAnyOf1.reason) && - Objects.equals(this.code, getDomainConfigs200ResponseAnyOf1.code) && - Objects.equals(this.status, getDomainConfigs200ResponseAnyOf1.status)&& - Objects.equals(this.additionalProperties, getDomainConfigs200ResponseAnyOf1.additionalProperties); + GetDomainConfigsResponseAnyOf1 getDomainConfigsResponseAnyOf1 = (GetDomainConfigsResponseAnyOf1) o; + return Objects.equals(this.reason, getDomainConfigsResponseAnyOf1.reason) && + Objects.equals(this.code, getDomainConfigsResponseAnyOf1.code) && + Objects.equals(this.status, getDomainConfigsResponseAnyOf1.status)&& + Objects.equals(this.additionalProperties, getDomainConfigsResponseAnyOf1.additionalProperties); } @Override @@ -193,7 +193,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class GetDomainConfigs200ResponseAnyOf1 {\n"); + sb.append("class GetDomainConfigsResponseAnyOf1 {\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); @@ -207,10 +207,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -229,17 +226,17 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetDomainConfigs200ResponseAnyOf1 + * @throws IOException if the JSON Element is invalid with respect to GetDomainConfigsResponseAnyOf1 */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!GetDomainConfigs200ResponseAnyOf1.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetDomainConfigs200ResponseAnyOf1 is not found in the empty JSON string", GetDomainConfigs200ResponseAnyOf1.openapiRequiredFields.toString())); + if (!GetDomainConfigsResponseAnyOf1.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetDomainConfigsResponseAnyOf1 is not found in the empty JSON string", GetDomainConfigsResponseAnyOf1.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : GetDomainConfigs200ResponseAnyOf1.openapiRequiredFields) { + for (String requiredField : GetDomainConfigsResponseAnyOf1.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -257,16 +254,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDomainConfigs200ResponseAnyOf1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDomainConfigs200ResponseAnyOf1' and its subtypes + if (!GetDomainConfigsResponseAnyOf1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDomainConfigsResponseAnyOf1' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDomainConfigs200ResponseAnyOf1.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDomainConfigsResponseAnyOf1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, GetDomainConfigs200ResponseAnyOf1 value) throws IOException { + public void write(JsonWriter out, GetDomainConfigsResponseAnyOf1 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -294,12 +291,12 @@ else if (entry.getValue() instanceof Character) } @Override - public GetDomainConfigs200ResponseAnyOf1 read(JsonReader in) throws IOException { + public GetDomainConfigsResponseAnyOf1 read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance - GetDomainConfigs200ResponseAnyOf1 instance = thisAdapter.fromJsonTree(jsonObj); + GetDomainConfigsResponseAnyOf1 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -326,18 +323,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of GetDomainConfigs200ResponseAnyOf1 given an JSON string + * Create an instance of GetDomainConfigsResponseAnyOf1 given an JSON string * * @param jsonString JSON string - * @return An instance of GetDomainConfigs200ResponseAnyOf1 - * @throws IOException if the JSON string is invalid with respect to GetDomainConfigs200ResponseAnyOf1 + * @return An instance of GetDomainConfigsResponseAnyOf1 + * @throws IOException if the JSON string is invalid with respect to GetDomainConfigsResponseAnyOf1 */ - public static GetDomainConfigs200ResponseAnyOf1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetDomainConfigs200ResponseAnyOf1.class); + public static GetDomainConfigsResponseAnyOf1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetDomainConfigsResponseAnyOf1.class); } /** - * Convert an instance of GetDomainConfigs200ResponseAnyOf1 to an JSON string + * Convert an instance of GetDomainConfigsResponseAnyOf1 to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/GetEmailTemplate200Response.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplate200Response.java deleted file mode 100644 index 8a5464c9..00000000 --- a/client/src/main/java/com/fastcomments/model/GetEmailTemplate200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.CustomEmailTemplate; -import com.fastcomments.model.GetEmailTemplateResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetEmailTemplate200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetEmailTemplate200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEmailTemplate200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEmailTemplate200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetEmailTemplateResponse = gson.getDelegateAdapter(this, TypeToken.get(GetEmailTemplateResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetEmailTemplate200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetEmailTemplateResponse` - if (value.getActualInstance() instanceof GetEmailTemplateResponse) { - JsonElement element = adapterGetEmailTemplateResponse.toJsonTree((GetEmailTemplateResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetEmailTemplateResponse"); - } - - @Override - public GetEmailTemplate200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetEmailTemplateResponse - try { - // validate the JSON object to see if any exception is thrown - GetEmailTemplateResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetEmailTemplateResponse; - GetEmailTemplate200Response ret = new GetEmailTemplate200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetEmailTemplateResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetEmailTemplateResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetEmailTemplate200Response ret = new GetEmailTemplate200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetEmailTemplate200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetEmailTemplate200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetEmailTemplate200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetEmailTemplateResponse", GetEmailTemplateResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetEmailTemplate200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetEmailTemplateResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetEmailTemplateResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetEmailTemplateResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetEmailTemplateResponse - * - * @return The actual instance (APIError, GetEmailTemplateResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetEmailTemplateResponse`. If the actual instance is not `GetEmailTemplateResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetEmailTemplateResponse` - * @throws ClassCastException if the instance is not `GetEmailTemplateResponse` - */ - public GetEmailTemplateResponse getGetEmailTemplateResponse() throws ClassCastException { - return (GetEmailTemplateResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetEmailTemplate200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetEmailTemplateResponse - try { - GetEmailTemplateResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetEmailTemplateResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetEmailTemplate200Response with anyOf schemas: APIError, GetEmailTemplateResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetEmailTemplate200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetEmailTemplate200Response - * @throws IOException if the JSON string is invalid with respect to GetEmailTemplate200Response - */ - public static GetEmailTemplate200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetEmailTemplate200Response.class); - } - - /** - * Convert an instance of GetEmailTemplate200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetEmailTemplateDefinitions200Response.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplateDefinitions200Response.java deleted file mode 100644 index 00dea11a..00000000 --- a/client/src/main/java/com/fastcomments/model/GetEmailTemplateDefinitions200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.EmailTemplateDefinition; -import com.fastcomments.model.GetEmailTemplateDefinitionsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetEmailTemplateDefinitions200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetEmailTemplateDefinitions200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEmailTemplateDefinitions200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEmailTemplateDefinitions200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetEmailTemplateDefinitionsResponse = gson.getDelegateAdapter(this, TypeToken.get(GetEmailTemplateDefinitionsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetEmailTemplateDefinitions200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetEmailTemplateDefinitionsResponse` - if (value.getActualInstance() instanceof GetEmailTemplateDefinitionsResponse) { - JsonElement element = adapterGetEmailTemplateDefinitionsResponse.toJsonTree((GetEmailTemplateDefinitionsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetEmailTemplateDefinitionsResponse"); - } - - @Override - public GetEmailTemplateDefinitions200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetEmailTemplateDefinitionsResponse - try { - // validate the JSON object to see if any exception is thrown - GetEmailTemplateDefinitionsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetEmailTemplateDefinitionsResponse; - GetEmailTemplateDefinitions200Response ret = new GetEmailTemplateDefinitions200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetEmailTemplateDefinitionsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetEmailTemplateDefinitionsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetEmailTemplateDefinitions200Response ret = new GetEmailTemplateDefinitions200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetEmailTemplateDefinitions200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetEmailTemplateDefinitions200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetEmailTemplateDefinitions200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetEmailTemplateDefinitionsResponse", GetEmailTemplateDefinitionsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetEmailTemplateDefinitions200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetEmailTemplateDefinitionsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetEmailTemplateDefinitionsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetEmailTemplateDefinitionsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetEmailTemplateDefinitionsResponse - * - * @return The actual instance (APIError, GetEmailTemplateDefinitionsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetEmailTemplateDefinitionsResponse`. If the actual instance is not `GetEmailTemplateDefinitionsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetEmailTemplateDefinitionsResponse` - * @throws ClassCastException if the instance is not `GetEmailTemplateDefinitionsResponse` - */ - public GetEmailTemplateDefinitionsResponse getGetEmailTemplateDefinitionsResponse() throws ClassCastException { - return (GetEmailTemplateDefinitionsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetEmailTemplateDefinitions200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetEmailTemplateDefinitionsResponse - try { - GetEmailTemplateDefinitionsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetEmailTemplateDefinitionsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetEmailTemplateDefinitions200Response with anyOf schemas: APIError, GetEmailTemplateDefinitionsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetEmailTemplateDefinitions200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetEmailTemplateDefinitions200Response - * @throws IOException if the JSON string is invalid with respect to GetEmailTemplateDefinitions200Response - */ - public static GetEmailTemplateDefinitions200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetEmailTemplateDefinitions200Response.class); - } - - /** - * Convert an instance of GetEmailTemplateDefinitions200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse.java index 935b5a75..0470e457 100644 --- a/client/src/main/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse.java @@ -52,7 +52,7 @@ /** * GetEmailTemplateDefinitionsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetEmailTemplateDefinitionsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("definitions").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `definitions` to be an array in the JSON string but got `%s`", jsonObj.get("definitions").toString())); + if (jsonObj.get("definitions") != null) { + if (!jsonObj.get("definitions").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `definitions` to be an array in the JSON string but got `%s`", jsonObj.get("definitions").toString())); + } + JsonArray jsonArraydefinitions = jsonObj.getAsJsonArray("definitions"); + // validate the required field `definitions` (array) + for (int i = 0; i < jsonArraydefinitions.size(); i++) { + EmailTemplateDefinition.validateJsonElement(jsonArraydefinitions.get(i)); + } } - - JsonArray jsonArraydefinitions = jsonObj.getAsJsonArray("definitions"); - // validate the required field `definitions` (array) - for (int i = 0; i < jsonArraydefinitions.size(); i++) { - EmailTemplateDefinition.validateJsonElement(jsonArraydefinitions.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrors200Response.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrors200Response.java deleted file mode 100644 index ddf80d38..00000000 --- a/client/src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrors200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.EmailTemplateRenderErrorResponse; -import com.fastcomments.model.GetEmailTemplateRenderErrorsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetEmailTemplateRenderErrors200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetEmailTemplateRenderErrors200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEmailTemplateRenderErrors200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEmailTemplateRenderErrors200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetEmailTemplateRenderErrorsResponse = gson.getDelegateAdapter(this, TypeToken.get(GetEmailTemplateRenderErrorsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetEmailTemplateRenderErrors200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetEmailTemplateRenderErrorsResponse` - if (value.getActualInstance() instanceof GetEmailTemplateRenderErrorsResponse) { - JsonElement element = adapterGetEmailTemplateRenderErrorsResponse.toJsonTree((GetEmailTemplateRenderErrorsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetEmailTemplateRenderErrorsResponse"); - } - - @Override - public GetEmailTemplateRenderErrors200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetEmailTemplateRenderErrorsResponse - try { - // validate the JSON object to see if any exception is thrown - GetEmailTemplateRenderErrorsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetEmailTemplateRenderErrorsResponse; - GetEmailTemplateRenderErrors200Response ret = new GetEmailTemplateRenderErrors200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetEmailTemplateRenderErrorsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetEmailTemplateRenderErrorsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetEmailTemplateRenderErrors200Response ret = new GetEmailTemplateRenderErrors200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetEmailTemplateRenderErrors200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetEmailTemplateRenderErrors200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetEmailTemplateRenderErrors200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetEmailTemplateRenderErrorsResponse", GetEmailTemplateRenderErrorsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetEmailTemplateRenderErrors200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetEmailTemplateRenderErrorsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetEmailTemplateRenderErrorsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetEmailTemplateRenderErrorsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetEmailTemplateRenderErrorsResponse - * - * @return The actual instance (APIError, GetEmailTemplateRenderErrorsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetEmailTemplateRenderErrorsResponse`. If the actual instance is not `GetEmailTemplateRenderErrorsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetEmailTemplateRenderErrorsResponse` - * @throws ClassCastException if the instance is not `GetEmailTemplateRenderErrorsResponse` - */ - public GetEmailTemplateRenderErrorsResponse getGetEmailTemplateRenderErrorsResponse() throws ClassCastException { - return (GetEmailTemplateRenderErrorsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetEmailTemplateRenderErrors200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetEmailTemplateRenderErrorsResponse - try { - GetEmailTemplateRenderErrorsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetEmailTemplateRenderErrorsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetEmailTemplateRenderErrors200Response with anyOf schemas: APIError, GetEmailTemplateRenderErrorsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetEmailTemplateRenderErrors200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetEmailTemplateRenderErrors200Response - * @throws IOException if the JSON string is invalid with respect to GetEmailTemplateRenderErrors200Response - */ - public static GetEmailTemplateRenderErrors200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetEmailTemplateRenderErrors200Response.class); - } - - /** - * Convert an instance of GetEmailTemplateRenderErrors200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse.java index f343cb5c..ed6b0e1c 100644 --- a/client/src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse.java @@ -52,7 +52,7 @@ /** * GetEmailTemplateRenderErrorsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetEmailTemplateRenderErrorsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("renderErrors").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `renderErrors` to be an array in the JSON string but got `%s`", jsonObj.get("renderErrors").toString())); + if (jsonObj.get("renderErrors") != null) { + if (!jsonObj.get("renderErrors").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `renderErrors` to be an array in the JSON string but got `%s`", jsonObj.get("renderErrors").toString())); + } + JsonArray jsonArrayrenderErrors = jsonObj.getAsJsonArray("renderErrors"); + // validate the required field `renderErrors` (array) + for (int i = 0; i < jsonArrayrenderErrors.size(); i++) { + EmailTemplateRenderErrorResponse.validateJsonElement(jsonArrayrenderErrors.get(i)); + } } - - JsonArray jsonArrayrenderErrors = jsonObj.getAsJsonArray("renderErrors"); - // validate the required field `renderErrors` (array) - for (int i = 0; i < jsonArrayrenderErrors.size(); i++) { - EmailTemplateRenderErrorResponse.validateJsonElement(jsonArrayrenderErrors.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetEmailTemplateResponse.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplateResponse.java index 9d0a0b87..26143999 100644 --- a/client/src/main/java/com/fastcomments/model/GetEmailTemplateResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetEmailTemplateResponse.java @@ -50,7 +50,7 @@ /** * GetEmailTemplateResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetEmailTemplateResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetEmailTemplates200Response.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplates200Response.java deleted file mode 100644 index 990fcbbc..00000000 --- a/client/src/main/java/com/fastcomments/model/GetEmailTemplates200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.CustomEmailTemplate; -import com.fastcomments.model.GetEmailTemplatesResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetEmailTemplates200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetEmailTemplates200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEmailTemplates200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEmailTemplates200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetEmailTemplatesResponse = gson.getDelegateAdapter(this, TypeToken.get(GetEmailTemplatesResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetEmailTemplates200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetEmailTemplatesResponse` - if (value.getActualInstance() instanceof GetEmailTemplatesResponse) { - JsonElement element = adapterGetEmailTemplatesResponse.toJsonTree((GetEmailTemplatesResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetEmailTemplatesResponse"); - } - - @Override - public GetEmailTemplates200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetEmailTemplatesResponse - try { - // validate the JSON object to see if any exception is thrown - GetEmailTemplatesResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetEmailTemplatesResponse; - GetEmailTemplates200Response ret = new GetEmailTemplates200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetEmailTemplatesResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetEmailTemplatesResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetEmailTemplates200Response ret = new GetEmailTemplates200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetEmailTemplates200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetEmailTemplates200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetEmailTemplates200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetEmailTemplatesResponse", GetEmailTemplatesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetEmailTemplates200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetEmailTemplatesResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetEmailTemplatesResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetEmailTemplatesResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetEmailTemplatesResponse - * - * @return The actual instance (APIError, GetEmailTemplatesResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetEmailTemplatesResponse`. If the actual instance is not `GetEmailTemplatesResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetEmailTemplatesResponse` - * @throws ClassCastException if the instance is not `GetEmailTemplatesResponse` - */ - public GetEmailTemplatesResponse getGetEmailTemplatesResponse() throws ClassCastException { - return (GetEmailTemplatesResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetEmailTemplates200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetEmailTemplatesResponse - try { - GetEmailTemplatesResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetEmailTemplatesResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetEmailTemplates200Response with anyOf schemas: APIError, GetEmailTemplatesResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetEmailTemplates200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetEmailTemplates200Response - * @throws IOException if the JSON string is invalid with respect to GetEmailTemplates200Response - */ - public static GetEmailTemplates200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetEmailTemplates200Response.class); - } - - /** - * Convert an instance of GetEmailTemplates200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetEmailTemplatesResponse.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplatesResponse.java index a63a52e7..a5315b83 100644 --- a/client/src/main/java/com/fastcomments/model/GetEmailTemplatesResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetEmailTemplatesResponse.java @@ -52,7 +52,7 @@ /** * GetEmailTemplatesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetEmailTemplatesResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("emailTemplates").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `emailTemplates` to be an array in the JSON string but got `%s`", jsonObj.get("emailTemplates").toString())); + if (jsonObj.get("emailTemplates") != null) { + if (!jsonObj.get("emailTemplates").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `emailTemplates` to be an array in the JSON string but got `%s`", jsonObj.get("emailTemplates").toString())); + } + JsonArray jsonArrayemailTemplates = jsonObj.getAsJsonArray("emailTemplates"); + // validate the required field `emailTemplates` (array) + for (int i = 0; i < jsonArrayemailTemplates.size(); i++) { + CustomEmailTemplate.validateJsonElement(jsonArrayemailTemplates.get(i)); + } } - - JsonArray jsonArrayemailTemplates = jsonObj.getAsJsonArray("emailTemplates"); - // validate the required field `emailTemplates` (array) - for (int i = 0; i < jsonArrayemailTemplates.size(); i++) { - CustomEmailTemplate.validateJsonElement(jsonArrayemailTemplates.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetEventLog200Response.java b/client/src/main/java/com/fastcomments/model/GetEventLog200Response.java deleted file mode 100644 index 4da43147..00000000 --- a/client/src/main/java/com/fastcomments/model/GetEventLog200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.EventLogEntry; -import com.fastcomments.model.GetEventLogResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetEventLog200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetEventLog200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEventLog200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEventLog200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetEventLogResponse = gson.getDelegateAdapter(this, TypeToken.get(GetEventLogResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetEventLog200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetEventLogResponse` - if (value.getActualInstance() instanceof GetEventLogResponse) { - JsonElement element = adapterGetEventLogResponse.toJsonTree((GetEventLogResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetEventLogResponse"); - } - - @Override - public GetEventLog200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetEventLogResponse - try { - // validate the JSON object to see if any exception is thrown - GetEventLogResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetEventLogResponse; - GetEventLog200Response ret = new GetEventLog200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetEventLogResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetEventLogResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetEventLog200Response ret = new GetEventLog200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetEventLog200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetEventLog200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetEventLog200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetEventLogResponse", GetEventLogResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetEventLog200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetEventLogResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetEventLogResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetEventLogResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetEventLogResponse - * - * @return The actual instance (APIError, GetEventLogResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetEventLogResponse`. If the actual instance is not `GetEventLogResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetEventLogResponse` - * @throws ClassCastException if the instance is not `GetEventLogResponse` - */ - public GetEventLogResponse getGetEventLogResponse() throws ClassCastException { - return (GetEventLogResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetEventLog200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetEventLogResponse - try { - GetEventLogResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetEventLogResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetEventLog200Response with anyOf schemas: APIError, GetEventLogResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetEventLog200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetEventLog200Response - * @throws IOException if the JSON string is invalid with respect to GetEventLog200Response - */ - public static GetEventLog200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetEventLog200Response.class); - } - - /** - * Convert an instance of GetEventLog200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetEventLogResponse.java b/client/src/main/java/com/fastcomments/model/GetEventLogResponse.java index a8646cc9..1fcfee56 100644 --- a/client/src/main/java/com/fastcomments/model/GetEventLogResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetEventLogResponse.java @@ -52,7 +52,7 @@ /** * GetEventLogResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetEventLogResponse { public static final String SERIALIZED_NAME_EVENTS = "events"; @SerializedName(SERIALIZED_NAME_EVENTS) @@ -193,10 +193,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -231,16 +228,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the json data is an array - if (!jsonObj.get("events").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `events` to be an array in the JSON string but got `%s`", jsonObj.get("events").toString())); + if (jsonObj.get("events") != null) { + if (!jsonObj.get("events").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `events` to be an array in the JSON string but got `%s`", jsonObj.get("events").toString())); + } + JsonArray jsonArrayevents = jsonObj.getAsJsonArray("events"); + // validate the required field `events` (array) + for (int i = 0; i < jsonArrayevents.size(); i++) { + EventLogEntry.validateJsonElement(jsonArrayevents.get(i)); + } } - - JsonArray jsonArrayevents = jsonObj.getAsJsonArray("events"); - // validate the required field `events` (array) - for (int i = 0; i < jsonArrayevents.size(); i++) { - EventLogEntry.validateJsonElement(jsonArrayevents.get(i)); - }; // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); } diff --git a/client/src/main/java/com/fastcomments/model/GetFeedPostsResponse.java b/client/src/main/java/com/fastcomments/model/GetFeedPostsResponse.java index c20df15d..bbcf6a66 100644 --- a/client/src/main/java/com/fastcomments/model/GetFeedPostsResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetFeedPostsResponse.java @@ -52,7 +52,7 @@ /** * GetFeedPostsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetFeedPostsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("feedPosts").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `feedPosts` to be an array in the JSON string but got `%s`", jsonObj.get("feedPosts").toString())); + if (jsonObj.get("feedPosts") != null) { + if (!jsonObj.get("feedPosts").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `feedPosts` to be an array in the JSON string but got `%s`", jsonObj.get("feedPosts").toString())); + } + JsonArray jsonArrayfeedPosts = jsonObj.getAsJsonArray("feedPosts"); + // validate the required field `feedPosts` (array) + for (int i = 0; i < jsonArrayfeedPosts.size(); i++) { + FeedPost.validateJsonElement(jsonArrayfeedPosts.get(i)); + } } - - JsonArray jsonArrayfeedPosts = jsonObj.getAsJsonArray("feedPosts"); - // validate the required field `feedPosts` (array) - for (int i = 0; i < jsonArrayfeedPosts.size(); i++) { - FeedPost.validateJsonElement(jsonArrayfeedPosts.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetFeedPostsStats200Response.java b/client/src/main/java/com/fastcomments/model/GetFeedPostsStats200Response.java deleted file mode 100644 index 28643dda..00000000 --- a/client/src/main/java/com/fastcomments/model/GetFeedPostsStats200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FeedPostStats; -import com.fastcomments.model.FeedPostsStatsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetFeedPostsStats200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetFeedPostsStats200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetFeedPostsStats200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetFeedPostsStats200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterFeedPostsStatsResponse = gson.getDelegateAdapter(this, TypeToken.get(FeedPostsStatsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetFeedPostsStats200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `FeedPostsStatsResponse` - if (value.getActualInstance() instanceof FeedPostsStatsResponse) { - JsonElement element = adapterFeedPostsStatsResponse.toJsonTree((FeedPostsStatsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, FeedPostsStatsResponse"); - } - - @Override - public GetFeedPostsStats200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize FeedPostsStatsResponse - try { - // validate the JSON object to see if any exception is thrown - FeedPostsStatsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterFeedPostsStatsResponse; - GetFeedPostsStats200Response ret = new GetFeedPostsStats200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for FeedPostsStatsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'FeedPostsStatsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetFeedPostsStats200Response ret = new GetFeedPostsStats200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetFeedPostsStats200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetFeedPostsStats200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetFeedPostsStats200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("FeedPostsStatsResponse", FeedPostsStatsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetFeedPostsStats200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, FeedPostsStatsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof FeedPostsStatsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, FeedPostsStatsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, FeedPostsStatsResponse - * - * @return The actual instance (APIError, FeedPostsStatsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `FeedPostsStatsResponse`. If the actual instance is not `FeedPostsStatsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `FeedPostsStatsResponse` - * @throws ClassCastException if the instance is not `FeedPostsStatsResponse` - */ - public FeedPostsStatsResponse getFeedPostsStatsResponse() throws ClassCastException { - return (FeedPostsStatsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetFeedPostsStats200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with FeedPostsStatsResponse - try { - FeedPostsStatsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for FeedPostsStatsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetFeedPostsStats200Response with anyOf schemas: APIError, FeedPostsStatsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetFeedPostsStats200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetFeedPostsStats200Response - * @throws IOException if the JSON string is invalid with respect to GetFeedPostsStats200Response - */ - public static GetFeedPostsStats200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetFeedPostsStats200Response.class); - } - - /** - * Convert an instance of GetFeedPostsStats200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetTickets200Response.java b/client/src/main/java/com/fastcomments/model/GetGifsSearchResponse.java similarity index 58% rename from client/src/main/java/com/fastcomments/model/GetTickets200Response.java rename to client/src/main/java/com/fastcomments/model/GetGifsSearchResponse.java index 3c0e67ff..4588a285 100644 --- a/client/src/main/java/com/fastcomments/model/GetTickets200Response.java +++ b/client/src/main/java/com/fastcomments/model/GetGifsSearchResponse.java @@ -14,11 +14,10 @@ package com.fastcomments.model; import java.util.Objects; -import com.fastcomments.model.APIError; import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITicket; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTicketsResponse; +import com.fastcomments.model.GifSearchInternalError; +import com.fastcomments.model.GifSearchResponse; +import com.fastcomments.model.GifSearchResponseImagesInnerInner; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -64,80 +63,80 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetTickets200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTickets200Response.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetGifsSearchResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetGifsSearchResponse.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTickets200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTickets200Response' and its subtypes + if (!GetGifsSearchResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetGifsSearchResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetTicketsResponse = gson.getDelegateAdapter(this, TypeToken.get(GetTicketsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + final TypeAdapter adapterGifSearchResponse = gson.getDelegateAdapter(this, TypeToken.get(GifSearchResponse.class)); + final TypeAdapter adapterGifSearchInternalError = gson.getDelegateAdapter(this, TypeToken.get(GifSearchInternalError.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, GetTickets200Response value) throws IOException { + public void write(JsonWriter out, GetGifsSearchResponse value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; } - // check if the actual instance is of the type `GetTicketsResponse` - if (value.getActualInstance() instanceof GetTicketsResponse) { - JsonElement element = adapterGetTicketsResponse.toJsonTree((GetTicketsResponse)value.getActualInstance()); + // check if the actual instance is of the type `GifSearchResponse` + if (value.getActualInstance() instanceof GifSearchResponse) { + JsonElement element = adapterGifSearchResponse.toJsonTree((GifSearchResponse)value.getActualInstance()); elementAdapter.write(out, element); return; } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); + // check if the actual instance is of the type `GifSearchInternalError` + if (value.getActualInstance() instanceof GifSearchInternalError) { + JsonElement element = adapterGifSearchInternalError.toJsonTree((GifSearchInternalError)value.getActualInstance()); elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetTicketsResponse"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: GifSearchInternalError, GifSearchResponse"); } @Override - public GetTickets200Response read(JsonReader in) throws IOException { + public GetGifsSearchResponse read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); ArrayList errorMessages = new ArrayList<>(); TypeAdapter actualAdapter = elementAdapter; - // deserialize GetTicketsResponse + // deserialize GifSearchResponse try { // validate the JSON object to see if any exception is thrown - GetTicketsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetTicketsResponse; - GetTickets200Response ret = new GetTickets200Response(); + GifSearchResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGifSearchResponse; + GetGifsSearchResponse ret = new GetGifsSearchResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTicketsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetTicketsResponse'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GifSearchResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GifSearchResponse'", e); } - // deserialize APIError + // deserialize GifSearchInternalError try { // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetTickets200Response ret = new GetTickets200Response(); + GifSearchInternalError.validateJsonElement(jsonElement); + actualAdapter = adapterGifSearchInternalError; + GetGifsSearchResponse ret = new GetGifsSearchResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GifSearchInternalError failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GifSearchInternalError'", e); } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetTickets200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetGifsSearchResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -146,52 +145,52 @@ public GetTickets200Response read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public GetTickets200Response() { + public GetGifsSearchResponse() { super("anyOf", Boolean.FALSE); } - public GetTickets200Response(Object o) { + public GetGifsSearchResponse(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("GetTicketsResponse", GetTicketsResponse.class); - schemas.put("APIError", APIError.class); + schemas.put("GifSearchResponse", GifSearchResponse.class); + schemas.put("GifSearchInternalError", GifSearchInternalError.class); } @Override public Map> getSchemas() { - return GetTickets200Response.schemas; + return GetGifsSearchResponse.schemas; } /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * APIError, GetTicketsResponse + * GifSearchInternalError, GifSearchResponse * * It could be an instance of the 'anyOf' schemas. */ @Override public void setActualInstance(Object instance) { - if (instance instanceof GetTicketsResponse) { + if (instance instanceof GifSearchResponse) { super.setActualInstance(instance); return; } - if (instance instanceof APIError) { + if (instance instanceof GifSearchInternalError) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be APIError, GetTicketsResponse"); + throw new RuntimeException("Invalid instance type. Must be GifSearchInternalError, GifSearchResponse"); } /** * Get the actual instance, which can be the following: - * APIError, GetTicketsResponse + * GifSearchInternalError, GifSearchResponse * - * @return The actual instance (APIError, GetTicketsResponse) + * @return The actual instance (GifSearchInternalError, GifSearchResponse) */ @SuppressWarnings("unchecked") @Override @@ -200,68 +199,68 @@ public Object getActualInstance() { } /** - * Get the actual instance of `GetTicketsResponse`. If the actual instance is not `GetTicketsResponse`, + * Get the actual instance of `GifSearchResponse`. If the actual instance is not `GifSearchResponse`, * the ClassCastException will be thrown. * - * @return The actual instance of `GetTicketsResponse` - * @throws ClassCastException if the instance is not `GetTicketsResponse` + * @return The actual instance of `GifSearchResponse` + * @throws ClassCastException if the instance is not `GifSearchResponse` */ - public GetTicketsResponse getGetTicketsResponse() throws ClassCastException { - return (GetTicketsResponse)super.getActualInstance(); + public GifSearchResponse getGifSearchResponse() throws ClassCastException { + return (GifSearchResponse)super.getActualInstance(); } /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, + * Get the actual instance of `GifSearchInternalError`. If the actual instance is not `GifSearchInternalError`, * the ClassCastException will be thrown. * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` + * @return The actual instance of `GifSearchInternalError` + * @throws ClassCastException if the instance is not `GifSearchInternalError` */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); + public GifSearchInternalError getGifSearchInternalError() throws ClassCastException { + return (GifSearchInternalError)super.getActualInstance(); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetTickets200Response + * @throws IOException if the JSON Element is invalid with respect to GetGifsSearchResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetTicketsResponse + // validate the json string with GifSearchResponse try { - GetTicketsResponse.validateJsonElement(jsonElement); + GifSearchResponse.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTicketsResponse failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GifSearchResponse failed with `%s`.", e.getMessage())); // continue to the next one } - // validate the json string with APIError + // validate the json string with GifSearchInternalError try { - APIError.validateJsonElement(jsonElement); + GifSearchInternalError.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GifSearchInternalError failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetTickets200Response with anyOf schemas: APIError, GetTicketsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetGifsSearchResponse with anyOf schemas: GifSearchInternalError, GifSearchResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of GetTickets200Response given an JSON string + * Create an instance of GetGifsSearchResponse given an JSON string * * @param jsonString JSON string - * @return An instance of GetTickets200Response - * @throws IOException if the JSON string is invalid with respect to GetTickets200Response + * @return An instance of GetGifsSearchResponse + * @throws IOException if the JSON string is invalid with respect to GetGifsSearchResponse */ - public static GetTickets200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTickets200Response.class); + public static GetGifsSearchResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetGifsSearchResponse.class); } /** - * Convert an instance of GetTickets200Response to an JSON string + * Convert an instance of GetGifsSearchResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/GetFeedPosts200Response.java b/client/src/main/java/com/fastcomments/model/GetGifsTrendingResponse.java similarity index 57% rename from client/src/main/java/com/fastcomments/model/GetFeedPosts200Response.java rename to client/src/main/java/com/fastcomments/model/GetGifsTrendingResponse.java index 692506e2..97d11a82 100644 --- a/client/src/main/java/com/fastcomments/model/GetFeedPosts200Response.java +++ b/client/src/main/java/com/fastcomments/model/GetGifsTrendingResponse.java @@ -14,11 +14,10 @@ package com.fastcomments.model; import java.util.Objects; -import com.fastcomments.model.APIError; import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FeedPost; -import com.fastcomments.model.GetFeedPostsResponse; +import com.fastcomments.model.GifSearchInternalError; +import com.fastcomments.model.GifSearchResponse; +import com.fastcomments.model.GifSearchResponseImagesInnerInner; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -64,80 +63,80 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetFeedPosts200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetFeedPosts200Response.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetGifsTrendingResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetGifsTrendingResponse.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetFeedPosts200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetFeedPosts200Response' and its subtypes + if (!GetGifsTrendingResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetGifsTrendingResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetFeedPostsResponse = gson.getDelegateAdapter(this, TypeToken.get(GetFeedPostsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + final TypeAdapter adapterGifSearchResponse = gson.getDelegateAdapter(this, TypeToken.get(GifSearchResponse.class)); + final TypeAdapter adapterGifSearchInternalError = gson.getDelegateAdapter(this, TypeToken.get(GifSearchInternalError.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, GetFeedPosts200Response value) throws IOException { + public void write(JsonWriter out, GetGifsTrendingResponse value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; } - // check if the actual instance is of the type `GetFeedPostsResponse` - if (value.getActualInstance() instanceof GetFeedPostsResponse) { - JsonElement element = adapterGetFeedPostsResponse.toJsonTree((GetFeedPostsResponse)value.getActualInstance()); + // check if the actual instance is of the type `GifSearchResponse` + if (value.getActualInstance() instanceof GifSearchResponse) { + JsonElement element = adapterGifSearchResponse.toJsonTree((GifSearchResponse)value.getActualInstance()); elementAdapter.write(out, element); return; } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); + // check if the actual instance is of the type `GifSearchInternalError` + if (value.getActualInstance() instanceof GifSearchInternalError) { + JsonElement element = adapterGifSearchInternalError.toJsonTree((GifSearchInternalError)value.getActualInstance()); elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetFeedPostsResponse"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: GifSearchInternalError, GifSearchResponse"); } @Override - public GetFeedPosts200Response read(JsonReader in) throws IOException { + public GetGifsTrendingResponse read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); ArrayList errorMessages = new ArrayList<>(); TypeAdapter actualAdapter = elementAdapter; - // deserialize GetFeedPostsResponse + // deserialize GifSearchResponse try { // validate the JSON object to see if any exception is thrown - GetFeedPostsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetFeedPostsResponse; - GetFeedPosts200Response ret = new GetFeedPosts200Response(); + GifSearchResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGifSearchResponse; + GetGifsTrendingResponse ret = new GetGifsTrendingResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetFeedPostsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetFeedPostsResponse'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GifSearchResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GifSearchResponse'", e); } - // deserialize APIError + // deserialize GifSearchInternalError try { // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetFeedPosts200Response ret = new GetFeedPosts200Response(); + GifSearchInternalError.validateJsonElement(jsonElement); + actualAdapter = adapterGifSearchInternalError; + GetGifsTrendingResponse ret = new GetGifsTrendingResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GifSearchInternalError failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GifSearchInternalError'", e); } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetFeedPosts200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetGifsTrendingResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -146,52 +145,52 @@ public GetFeedPosts200Response read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public GetFeedPosts200Response() { + public GetGifsTrendingResponse() { super("anyOf", Boolean.FALSE); } - public GetFeedPosts200Response(Object o) { + public GetGifsTrendingResponse(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("GetFeedPostsResponse", GetFeedPostsResponse.class); - schemas.put("APIError", APIError.class); + schemas.put("GifSearchResponse", GifSearchResponse.class); + schemas.put("GifSearchInternalError", GifSearchInternalError.class); } @Override public Map> getSchemas() { - return GetFeedPosts200Response.schemas; + return GetGifsTrendingResponse.schemas; } /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * APIError, GetFeedPostsResponse + * GifSearchInternalError, GifSearchResponse * * It could be an instance of the 'anyOf' schemas. */ @Override public void setActualInstance(Object instance) { - if (instance instanceof GetFeedPostsResponse) { + if (instance instanceof GifSearchResponse) { super.setActualInstance(instance); return; } - if (instance instanceof APIError) { + if (instance instanceof GifSearchInternalError) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be APIError, GetFeedPostsResponse"); + throw new RuntimeException("Invalid instance type. Must be GifSearchInternalError, GifSearchResponse"); } /** * Get the actual instance, which can be the following: - * APIError, GetFeedPostsResponse + * GifSearchInternalError, GifSearchResponse * - * @return The actual instance (APIError, GetFeedPostsResponse) + * @return The actual instance (GifSearchInternalError, GifSearchResponse) */ @SuppressWarnings("unchecked") @Override @@ -200,68 +199,68 @@ public Object getActualInstance() { } /** - * Get the actual instance of `GetFeedPostsResponse`. If the actual instance is not `GetFeedPostsResponse`, + * Get the actual instance of `GifSearchResponse`. If the actual instance is not `GifSearchResponse`, * the ClassCastException will be thrown. * - * @return The actual instance of `GetFeedPostsResponse` - * @throws ClassCastException if the instance is not `GetFeedPostsResponse` + * @return The actual instance of `GifSearchResponse` + * @throws ClassCastException if the instance is not `GifSearchResponse` */ - public GetFeedPostsResponse getGetFeedPostsResponse() throws ClassCastException { - return (GetFeedPostsResponse)super.getActualInstance(); + public GifSearchResponse getGifSearchResponse() throws ClassCastException { + return (GifSearchResponse)super.getActualInstance(); } /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, + * Get the actual instance of `GifSearchInternalError`. If the actual instance is not `GifSearchInternalError`, * the ClassCastException will be thrown. * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` + * @return The actual instance of `GifSearchInternalError` + * @throws ClassCastException if the instance is not `GifSearchInternalError` */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); + public GifSearchInternalError getGifSearchInternalError() throws ClassCastException { + return (GifSearchInternalError)super.getActualInstance(); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetFeedPosts200Response + * @throws IOException if the JSON Element is invalid with respect to GetGifsTrendingResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetFeedPostsResponse + // validate the json string with GifSearchResponse try { - GetFeedPostsResponse.validateJsonElement(jsonElement); + GifSearchResponse.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetFeedPostsResponse failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GifSearchResponse failed with `%s`.", e.getMessage())); // continue to the next one } - // validate the json string with APIError + // validate the json string with GifSearchInternalError try { - APIError.validateJsonElement(jsonElement); + GifSearchInternalError.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GifSearchInternalError failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetFeedPosts200Response with anyOf schemas: APIError, GetFeedPostsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetGifsTrendingResponse with anyOf schemas: GifSearchInternalError, GifSearchResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of GetFeedPosts200Response given an JSON string + * Create an instance of GetGifsTrendingResponse given an JSON string * * @param jsonString JSON string - * @return An instance of GetFeedPosts200Response - * @throws IOException if the JSON string is invalid with respect to GetFeedPosts200Response + * @return An instance of GetGifsTrendingResponse + * @throws IOException if the JSON string is invalid with respect to GetGifsTrendingResponse */ - public static GetFeedPosts200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetFeedPosts200Response.class); + public static GetGifsTrendingResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetGifsTrendingResponse.class); } /** - * Convert an instance of GetFeedPosts200Response to an JSON string + * Convert an instance of GetGifsTrendingResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/GetHashTags200Response.java b/client/src/main/java/com/fastcomments/model/GetHashTags200Response.java deleted file mode 100644 index ae31281e..00000000 --- a/client/src/main/java/com/fastcomments/model/GetHashTags200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetHashTagsResponse; -import com.fastcomments.model.TenantHashTag; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetHashTags200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetHashTags200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetHashTags200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetHashTags200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetHashTagsResponse = gson.getDelegateAdapter(this, TypeToken.get(GetHashTagsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetHashTags200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetHashTagsResponse` - if (value.getActualInstance() instanceof GetHashTagsResponse) { - JsonElement element = adapterGetHashTagsResponse.toJsonTree((GetHashTagsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetHashTagsResponse"); - } - - @Override - public GetHashTags200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetHashTagsResponse - try { - // validate the JSON object to see if any exception is thrown - GetHashTagsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetHashTagsResponse; - GetHashTags200Response ret = new GetHashTags200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetHashTagsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetHashTagsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetHashTags200Response ret = new GetHashTags200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetHashTags200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetHashTags200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetHashTags200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetHashTagsResponse", GetHashTagsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetHashTags200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetHashTagsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetHashTagsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetHashTagsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetHashTagsResponse - * - * @return The actual instance (APIError, GetHashTagsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetHashTagsResponse`. If the actual instance is not `GetHashTagsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetHashTagsResponse` - * @throws ClassCastException if the instance is not `GetHashTagsResponse` - */ - public GetHashTagsResponse getGetHashTagsResponse() throws ClassCastException { - return (GetHashTagsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetHashTags200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetHashTagsResponse - try { - GetHashTagsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetHashTagsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetHashTags200Response with anyOf schemas: APIError, GetHashTagsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetHashTags200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetHashTags200Response - * @throws IOException if the JSON string is invalid with respect to GetHashTags200Response - */ - public static GetHashTags200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetHashTags200Response.class); - } - - /** - * Convert an instance of GetHashTags200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetHashTagsResponse.java b/client/src/main/java/com/fastcomments/model/GetHashTagsResponse.java index 7c007612..b660b037 100644 --- a/client/src/main/java/com/fastcomments/model/GetHashTagsResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetHashTagsResponse.java @@ -52,7 +52,7 @@ /** * GetHashTagsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetHashTagsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("hashTags").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `hashTags` to be an array in the JSON string but got `%s`", jsonObj.get("hashTags").toString())); + if (jsonObj.get("hashTags") != null) { + if (!jsonObj.get("hashTags").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `hashTags` to be an array in the JSON string but got `%s`", jsonObj.get("hashTags").toString())); + } + JsonArray jsonArrayhashTags = jsonObj.getAsJsonArray("hashTags"); + // validate the required field `hashTags` (array) + for (int i = 0; i < jsonArrayhashTags.size(); i++) { + TenantHashTag.validateJsonElement(jsonArrayhashTags.get(i)); + } } - - JsonArray jsonArrayhashTags = jsonObj.getAsJsonArray("hashTags"); - // validate the required field `hashTags` (array) - for (int i = 0; i < jsonArrayhashTags.size(); i++) { - TenantHashTag.validateJsonElement(jsonArrayhashTags.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetModeratorResponse.java b/client/src/main/java/com/fastcomments/model/GetModeratorResponse.java index de03cb50..cb1efc95 100644 --- a/client/src/main/java/com/fastcomments/model/GetModeratorResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetModeratorResponse.java @@ -50,7 +50,7 @@ /** * GetModeratorResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetModeratorResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetModerators200Response.java b/client/src/main/java/com/fastcomments/model/GetModerators200Response.java deleted file mode 100644 index 9440587d..00000000 --- a/client/src/main/java/com/fastcomments/model/GetModerators200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetModeratorsResponse; -import com.fastcomments.model.Moderator; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetModerators200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetModerators200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetModerators200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetModerators200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetModeratorsResponse = gson.getDelegateAdapter(this, TypeToken.get(GetModeratorsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetModerators200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetModeratorsResponse` - if (value.getActualInstance() instanceof GetModeratorsResponse) { - JsonElement element = adapterGetModeratorsResponse.toJsonTree((GetModeratorsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetModeratorsResponse"); - } - - @Override - public GetModerators200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetModeratorsResponse - try { - // validate the JSON object to see if any exception is thrown - GetModeratorsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetModeratorsResponse; - GetModerators200Response ret = new GetModerators200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetModeratorsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetModeratorsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetModerators200Response ret = new GetModerators200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetModerators200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetModerators200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetModerators200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetModeratorsResponse", GetModeratorsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetModerators200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetModeratorsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetModeratorsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetModeratorsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetModeratorsResponse - * - * @return The actual instance (APIError, GetModeratorsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetModeratorsResponse`. If the actual instance is not `GetModeratorsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetModeratorsResponse` - * @throws ClassCastException if the instance is not `GetModeratorsResponse` - */ - public GetModeratorsResponse getGetModeratorsResponse() throws ClassCastException { - return (GetModeratorsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetModerators200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetModeratorsResponse - try { - GetModeratorsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetModeratorsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetModerators200Response with anyOf schemas: APIError, GetModeratorsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetModerators200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetModerators200Response - * @throws IOException if the JSON string is invalid with respect to GetModerators200Response - */ - public static GetModerators200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetModerators200Response.class); - } - - /** - * Convert an instance of GetModerators200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetModeratorsResponse.java b/client/src/main/java/com/fastcomments/model/GetModeratorsResponse.java index 5afa5e27..9ac90ca5 100644 --- a/client/src/main/java/com/fastcomments/model/GetModeratorsResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetModeratorsResponse.java @@ -52,7 +52,7 @@ /** * GetModeratorsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetModeratorsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("moderators").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `moderators` to be an array in the JSON string but got `%s`", jsonObj.get("moderators").toString())); + if (jsonObj.get("moderators") != null) { + if (!jsonObj.get("moderators").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `moderators` to be an array in the JSON string but got `%s`", jsonObj.get("moderators").toString())); + } + JsonArray jsonArraymoderators = jsonObj.getAsJsonArray("moderators"); + // validate the required field `moderators` (array) + for (int i = 0; i < jsonArraymoderators.size(); i++) { + Moderator.validateJsonElement(jsonArraymoderators.get(i)); + } } - - JsonArray jsonArraymoderators = jsonObj.getAsJsonArray("moderators"); - // validate the required field `moderators` (array) - for (int i = 0; i < jsonArraymoderators.size(); i++) { - Moderator.validateJsonElement(jsonArraymoderators.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetMyNotificationsResponse.java b/client/src/main/java/com/fastcomments/model/GetMyNotificationsResponse.java index 1efdca71..459e9596 100644 --- a/client/src/main/java/com/fastcomments/model/GetMyNotificationsResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetMyNotificationsResponse.java @@ -54,7 +54,7 @@ /** * GetMyNotificationsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetMyNotificationsResponse { public static final String SERIALIZED_NAME_TRANSLATIONS = "translations"; @SerializedName(SERIALIZED_NAME_TRANSLATIONS) @@ -281,10 +281,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -319,16 +316,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the json data is an array - if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + if (jsonObj.get("notifications") != null) { + if (!jsonObj.get("notifications").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + } + JsonArray jsonArraynotifications = jsonObj.getAsJsonArray("notifications"); + // validate the required field `notifications` (array) + for (int i = 0; i < jsonArraynotifications.size(); i++) { + RenderableUserNotification.validateJsonElement(jsonArraynotifications.get(i)); + } } - - JsonArray jsonArraynotifications = jsonObj.getAsJsonArray("notifications"); - // validate the required field `notifications` (array) - for (int i = 0; i < jsonArraynotifications.size(); i++) { - RenderableUserNotification.validateJsonElement(jsonArraynotifications.get(i)); - }; // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); } diff --git a/client/src/main/java/com/fastcomments/model/GetNotificationCount200Response.java b/client/src/main/java/com/fastcomments/model/GetNotificationCount200Response.java deleted file mode 100644 index dcf99f2c..00000000 --- a/client/src/main/java/com/fastcomments/model/GetNotificationCount200Response.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetNotificationCountResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetNotificationCount200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetNotificationCount200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetNotificationCount200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetNotificationCount200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetNotificationCountResponse = gson.getDelegateAdapter(this, TypeToken.get(GetNotificationCountResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetNotificationCount200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetNotificationCountResponse` - if (value.getActualInstance() instanceof GetNotificationCountResponse) { - JsonElement element = adapterGetNotificationCountResponse.toJsonTree((GetNotificationCountResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetNotificationCountResponse"); - } - - @Override - public GetNotificationCount200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetNotificationCountResponse - try { - // validate the JSON object to see if any exception is thrown - GetNotificationCountResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetNotificationCountResponse; - GetNotificationCount200Response ret = new GetNotificationCount200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetNotificationCountResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetNotificationCountResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetNotificationCount200Response ret = new GetNotificationCount200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetNotificationCount200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetNotificationCount200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetNotificationCount200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetNotificationCountResponse", GetNotificationCountResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetNotificationCount200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetNotificationCountResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetNotificationCountResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetNotificationCountResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetNotificationCountResponse - * - * @return The actual instance (APIError, GetNotificationCountResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetNotificationCountResponse`. If the actual instance is not `GetNotificationCountResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetNotificationCountResponse` - * @throws ClassCastException if the instance is not `GetNotificationCountResponse` - */ - public GetNotificationCountResponse getGetNotificationCountResponse() throws ClassCastException { - return (GetNotificationCountResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetNotificationCount200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetNotificationCountResponse - try { - GetNotificationCountResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetNotificationCountResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetNotificationCount200Response with anyOf schemas: APIError, GetNotificationCountResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetNotificationCount200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetNotificationCount200Response - * @throws IOException if the JSON string is invalid with respect to GetNotificationCount200Response - */ - public static GetNotificationCount200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetNotificationCount200Response.class); - } - - /** - * Convert an instance of GetNotificationCount200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetNotificationCountResponse.java b/client/src/main/java/com/fastcomments/model/GetNotificationCountResponse.java index 1f494e15..5f9d6446 100644 --- a/client/src/main/java/com/fastcomments/model/GetNotificationCountResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetNotificationCountResponse.java @@ -49,7 +49,7 @@ /** * GetNotificationCountResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetNotificationCountResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -136,10 +136,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetNotifications200Response.java b/client/src/main/java/com/fastcomments/model/GetNotifications200Response.java deleted file mode 100644 index 7ce9990d..00000000 --- a/client/src/main/java/com/fastcomments/model/GetNotifications200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetNotificationsResponse; -import com.fastcomments.model.UserNotification; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetNotifications200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetNotifications200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetNotifications200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetNotifications200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetNotificationsResponse = gson.getDelegateAdapter(this, TypeToken.get(GetNotificationsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetNotifications200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetNotificationsResponse` - if (value.getActualInstance() instanceof GetNotificationsResponse) { - JsonElement element = adapterGetNotificationsResponse.toJsonTree((GetNotificationsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetNotificationsResponse"); - } - - @Override - public GetNotifications200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetNotificationsResponse - try { - // validate the JSON object to see if any exception is thrown - GetNotificationsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetNotificationsResponse; - GetNotifications200Response ret = new GetNotifications200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetNotificationsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetNotificationsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetNotifications200Response ret = new GetNotifications200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetNotifications200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetNotifications200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetNotifications200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetNotificationsResponse", GetNotificationsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetNotifications200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetNotificationsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetNotificationsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetNotificationsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetNotificationsResponse - * - * @return The actual instance (APIError, GetNotificationsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetNotificationsResponse`. If the actual instance is not `GetNotificationsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetNotificationsResponse` - * @throws ClassCastException if the instance is not `GetNotificationsResponse` - */ - public GetNotificationsResponse getGetNotificationsResponse() throws ClassCastException { - return (GetNotificationsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetNotifications200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetNotificationsResponse - try { - GetNotificationsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetNotificationsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetNotifications200Response with anyOf schemas: APIError, GetNotificationsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetNotifications200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetNotifications200Response - * @throws IOException if the JSON string is invalid with respect to GetNotifications200Response - */ - public static GetNotifications200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetNotifications200Response.class); - } - - /** - * Convert an instance of GetNotifications200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetNotificationsResponse.java b/client/src/main/java/com/fastcomments/model/GetNotificationsResponse.java index 37516aa5..16137c47 100644 --- a/client/src/main/java/com/fastcomments/model/GetNotificationsResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetNotificationsResponse.java @@ -52,7 +52,7 @@ /** * GetNotificationsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetNotificationsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("notifications").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + if (jsonObj.get("notifications") != null) { + if (!jsonObj.get("notifications").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `notifications` to be an array in the JSON string but got `%s`", jsonObj.get("notifications").toString())); + } + JsonArray jsonArraynotifications = jsonObj.getAsJsonArray("notifications"); + // validate the required field `notifications` (array) + for (int i = 0; i < jsonArraynotifications.size(); i++) { + UserNotification.validateJsonElement(jsonArraynotifications.get(i)); + } } - - JsonArray jsonArraynotifications = jsonObj.getAsJsonArray("notifications"); - // validate the required field `notifications` (array) - for (int i = 0; i < jsonArraynotifications.size(); i++) { - UserNotification.validateJsonElement(jsonArraynotifications.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetPageByURLIdAPIResponse.java b/client/src/main/java/com/fastcomments/model/GetPageByURLIdAPIResponse.java index 88c701aa..1418283a 100644 --- a/client/src/main/java/com/fastcomments/model/GetPageByURLIdAPIResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetPageByURLIdAPIResponse.java @@ -49,7 +49,7 @@ /** * GetPageByURLIdAPIResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetPageByURLIdAPIResponse { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -234,10 +234,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetPagesAPIResponse.java b/client/src/main/java/com/fastcomments/model/GetPagesAPIResponse.java index 2be23c38..56b131f4 100644 --- a/client/src/main/java/com/fastcomments/model/GetPagesAPIResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetPagesAPIResponse.java @@ -51,7 +51,7 @@ /** * GetPagesAPIResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetPagesAPIResponse { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -244,10 +244,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventCount200Response.java b/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventCount200Response.java deleted file mode 100644 index 75609627..00000000 --- a/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventCount200Response.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetPendingWebhookEventCountResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetPendingWebhookEventCount200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetPendingWebhookEventCount200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetPendingWebhookEventCount200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetPendingWebhookEventCount200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetPendingWebhookEventCountResponse = gson.getDelegateAdapter(this, TypeToken.get(GetPendingWebhookEventCountResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetPendingWebhookEventCount200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetPendingWebhookEventCountResponse` - if (value.getActualInstance() instanceof GetPendingWebhookEventCountResponse) { - JsonElement element = adapterGetPendingWebhookEventCountResponse.toJsonTree((GetPendingWebhookEventCountResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetPendingWebhookEventCountResponse"); - } - - @Override - public GetPendingWebhookEventCount200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetPendingWebhookEventCountResponse - try { - // validate the JSON object to see if any exception is thrown - GetPendingWebhookEventCountResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetPendingWebhookEventCountResponse; - GetPendingWebhookEventCount200Response ret = new GetPendingWebhookEventCount200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetPendingWebhookEventCountResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetPendingWebhookEventCountResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetPendingWebhookEventCount200Response ret = new GetPendingWebhookEventCount200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetPendingWebhookEventCount200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetPendingWebhookEventCount200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetPendingWebhookEventCount200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetPendingWebhookEventCountResponse", GetPendingWebhookEventCountResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetPendingWebhookEventCount200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetPendingWebhookEventCountResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetPendingWebhookEventCountResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetPendingWebhookEventCountResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetPendingWebhookEventCountResponse - * - * @return The actual instance (APIError, GetPendingWebhookEventCountResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetPendingWebhookEventCountResponse`. If the actual instance is not `GetPendingWebhookEventCountResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetPendingWebhookEventCountResponse` - * @throws ClassCastException if the instance is not `GetPendingWebhookEventCountResponse` - */ - public GetPendingWebhookEventCountResponse getGetPendingWebhookEventCountResponse() throws ClassCastException { - return (GetPendingWebhookEventCountResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetPendingWebhookEventCount200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetPendingWebhookEventCountResponse - try { - GetPendingWebhookEventCountResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetPendingWebhookEventCountResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetPendingWebhookEventCount200Response with anyOf schemas: APIError, GetPendingWebhookEventCountResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetPendingWebhookEventCount200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetPendingWebhookEventCount200Response - * @throws IOException if the JSON string is invalid with respect to GetPendingWebhookEventCount200Response - */ - public static GetPendingWebhookEventCount200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetPendingWebhookEventCount200Response.class); - } - - /** - * Convert an instance of GetPendingWebhookEventCount200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventCountResponse.java b/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventCountResponse.java index 0656b622..78f3daa2 100644 --- a/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventCountResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventCountResponse.java @@ -49,7 +49,7 @@ /** * GetPendingWebhookEventCountResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetPendingWebhookEventCountResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -136,10 +136,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetPendingWebhookEvents200Response.java b/client/src/main/java/com/fastcomments/model/GetPendingWebhookEvents200Response.java deleted file mode 100644 index 0164b22c..00000000 --- a/client/src/main/java/com/fastcomments/model/GetPendingWebhookEvents200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetPendingWebhookEventsResponse; -import com.fastcomments.model.PendingCommentToSyncOutbound; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetPendingWebhookEvents200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetPendingWebhookEvents200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetPendingWebhookEvents200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetPendingWebhookEvents200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetPendingWebhookEventsResponse = gson.getDelegateAdapter(this, TypeToken.get(GetPendingWebhookEventsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetPendingWebhookEvents200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetPendingWebhookEventsResponse` - if (value.getActualInstance() instanceof GetPendingWebhookEventsResponse) { - JsonElement element = adapterGetPendingWebhookEventsResponse.toJsonTree((GetPendingWebhookEventsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetPendingWebhookEventsResponse"); - } - - @Override - public GetPendingWebhookEvents200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetPendingWebhookEventsResponse - try { - // validate the JSON object to see if any exception is thrown - GetPendingWebhookEventsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetPendingWebhookEventsResponse; - GetPendingWebhookEvents200Response ret = new GetPendingWebhookEvents200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetPendingWebhookEventsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetPendingWebhookEventsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetPendingWebhookEvents200Response ret = new GetPendingWebhookEvents200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetPendingWebhookEvents200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetPendingWebhookEvents200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetPendingWebhookEvents200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetPendingWebhookEventsResponse", GetPendingWebhookEventsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetPendingWebhookEvents200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetPendingWebhookEventsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetPendingWebhookEventsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetPendingWebhookEventsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetPendingWebhookEventsResponse - * - * @return The actual instance (APIError, GetPendingWebhookEventsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetPendingWebhookEventsResponse`. If the actual instance is not `GetPendingWebhookEventsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetPendingWebhookEventsResponse` - * @throws ClassCastException if the instance is not `GetPendingWebhookEventsResponse` - */ - public GetPendingWebhookEventsResponse getGetPendingWebhookEventsResponse() throws ClassCastException { - return (GetPendingWebhookEventsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetPendingWebhookEvents200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetPendingWebhookEventsResponse - try { - GetPendingWebhookEventsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetPendingWebhookEventsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetPendingWebhookEvents200Response with anyOf schemas: APIError, GetPendingWebhookEventsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetPendingWebhookEvents200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetPendingWebhookEvents200Response - * @throws IOException if the JSON string is invalid with respect to GetPendingWebhookEvents200Response - */ - public static GetPendingWebhookEvents200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetPendingWebhookEvents200Response.class); - } - - /** - * Convert an instance of GetPendingWebhookEvents200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventsResponse.java b/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventsResponse.java index 3e562753..99e0e6b6 100644 --- a/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventsResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventsResponse.java @@ -52,7 +52,7 @@ /** * GetPendingWebhookEventsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetPendingWebhookEventsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("pendingWebhookEvents").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `pendingWebhookEvents` to be an array in the JSON string but got `%s`", jsonObj.get("pendingWebhookEvents").toString())); + if (jsonObj.get("pendingWebhookEvents") != null) { + if (!jsonObj.get("pendingWebhookEvents").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `pendingWebhookEvents` to be an array in the JSON string but got `%s`", jsonObj.get("pendingWebhookEvents").toString())); + } + JsonArray jsonArraypendingWebhookEvents = jsonObj.getAsJsonArray("pendingWebhookEvents"); + // validate the required field `pendingWebhookEvents` (array) + for (int i = 0; i < jsonArraypendingWebhookEvents.size(); i++) { + PendingCommentToSyncOutbound.validateJsonElement(jsonArraypendingWebhookEvents.get(i)); + } } - - JsonArray jsonArraypendingWebhookEvents = jsonObj.getAsJsonArray("pendingWebhookEvents"); - // validate the required field `pendingWebhookEvents` (array) - for (int i = 0; i < jsonArraypendingWebhookEvents.size(); i++) { - PendingCommentToSyncOutbound.validateJsonElement(jsonArraypendingWebhookEvents.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetPublicFeedPostsResponse.java b/client/src/main/java/com/fastcomments/model/GetPublicFeedPostsResponse.java index a69eeaed..9bacf0f8 100644 --- a/client/src/main/java/com/fastcomments/model/GetPublicFeedPostsResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetPublicFeedPostsResponse.java @@ -53,7 +53,7 @@ /** * GetPublicFeedPostsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetPublicFeedPostsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -174,10 +174,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -222,16 +219,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("feedPosts").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `feedPosts` to be an array in the JSON string but got `%s`", jsonObj.get("feedPosts").toString())); + if (jsonObj.get("feedPosts") != null) { + if (!jsonObj.get("feedPosts").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `feedPosts` to be an array in the JSON string but got `%s`", jsonObj.get("feedPosts").toString())); + } + JsonArray jsonArrayfeedPosts = jsonObj.getAsJsonArray("feedPosts"); + // validate the required field `feedPosts` (array) + for (int i = 0; i < jsonArrayfeedPosts.size(); i++) { + FeedPost.validateJsonElement(jsonArrayfeedPosts.get(i)); + } } - - JsonArray jsonArrayfeedPosts = jsonObj.getAsJsonArray("feedPosts"); - // validate the required field `feedPosts` (array) - for (int i = 0; i < jsonArrayfeedPosts.size(); i++) { - FeedPost.validateJsonElement(jsonArrayfeedPosts.get(i)); - }; // validate the optional field `user` if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { UserSessionInfo.validateJsonElement(jsonObj.get("user")); diff --git a/client/src/main/java/com/fastcomments/model/GetPublicPagesResponse.java b/client/src/main/java/com/fastcomments/model/GetPublicPagesResponse.java new file mode 100644 index 00000000..8a52315d --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetPublicPagesResponse.java @@ -0,0 +1,366 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.PublicPage; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GetPublicPagesResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetPublicPagesResponse { + public static final String SERIALIZED_NAME_NEXT_CURSOR = "nextCursor"; + @SerializedName(SERIALIZED_NAME_NEXT_CURSOR) + @javax.annotation.Nullable + private String nextCursor; + + public static final String SERIALIZED_NAME_PAGES = "pages"; + @SerializedName(SERIALIZED_NAME_PAGES) + @javax.annotation.Nonnull + private List pages = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public GetPublicPagesResponse() { + } + + public GetPublicPagesResponse nextCursor(@javax.annotation.Nullable String nextCursor) { + this.nextCursor = nextCursor; + return this; + } + + /** + * Get nextCursor + * @return nextCursor + */ + @javax.annotation.Nullable + public String getNextCursor() { + return nextCursor; + } + + public void setNextCursor(@javax.annotation.Nullable String nextCursor) { + this.nextCursor = nextCursor; + } + + + public GetPublicPagesResponse pages(@javax.annotation.Nonnull List pages) { + this.pages = pages; + return this; + } + + public GetPublicPagesResponse addPagesItem(PublicPage pagesItem) { + if (this.pages == null) { + this.pages = new ArrayList<>(); + } + this.pages.add(pagesItem); + return this; + } + + /** + * Get pages + * @return pages + */ + @javax.annotation.Nonnull + public List getPages() { + return pages; + } + + public void setPages(@javax.annotation.Nonnull List pages) { + this.pages = pages; + } + + + public GetPublicPagesResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GetPublicPagesResponse instance itself + */ + public GetPublicPagesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetPublicPagesResponse getPublicPagesResponse = (GetPublicPagesResponse) o; + return Objects.equals(this.nextCursor, getPublicPagesResponse.nextCursor) && + Objects.equals(this.pages, getPublicPagesResponse.pages) && + Objects.equals(this.status, getPublicPagesResponse.status)&& + Objects.equals(this.additionalProperties, getPublicPagesResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(nextCursor, pages, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetPublicPagesResponse {\n"); + sb.append(" nextCursor: ").append(toIndentedString(nextCursor)).append("\n"); + sb.append(" pages: ").append(toIndentedString(pages)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("nextCursor", "pages", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("nextCursor", "pages", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetPublicPagesResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetPublicPagesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetPublicPagesResponse is not found in the empty JSON string", GetPublicPagesResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GetPublicPagesResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("nextCursor") != null && !jsonObj.get("nextCursor").isJsonNull()) && !jsonObj.get("nextCursor").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `nextCursor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nextCursor").toString())); + } + if (jsonObj.get("pages") != null) { + if (!jsonObj.get("pages").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `pages` to be an array in the JSON string but got `%s`", jsonObj.get("pages").toString())); + } + JsonArray jsonArraypages = jsonObj.getAsJsonArray("pages"); + // validate the required field `pages` (array) + for (int i = 0; i < jsonArraypages.size(); i++) { + PublicPage.validateJsonElement(jsonArraypages.get(i)); + } + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetPublicPagesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetPublicPagesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetPublicPagesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetPublicPagesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GetPublicPagesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GetPublicPagesResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetPublicPagesResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetPublicPagesResponse + * @throws IOException if the JSON string is invalid with respect to GetPublicPagesResponse + */ + public static GetPublicPagesResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetPublicPagesResponse.class); + } + + /** + * Convert an instance of GetPublicPagesResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetQuestionConfig200Response.java b/client/src/main/java/com/fastcomments/model/GetQuestionConfig200Response.java deleted file mode 100644 index 3b5b1c6a..00000000 --- a/client/src/main/java/com/fastcomments/model/GetQuestionConfig200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetQuestionConfigResponse; -import com.fastcomments.model.QuestionConfig; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetQuestionConfig200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetQuestionConfig200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetQuestionConfig200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetQuestionConfig200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetQuestionConfigResponse = gson.getDelegateAdapter(this, TypeToken.get(GetQuestionConfigResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetQuestionConfig200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetQuestionConfigResponse` - if (value.getActualInstance() instanceof GetQuestionConfigResponse) { - JsonElement element = adapterGetQuestionConfigResponse.toJsonTree((GetQuestionConfigResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetQuestionConfigResponse"); - } - - @Override - public GetQuestionConfig200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetQuestionConfigResponse - try { - // validate the JSON object to see if any exception is thrown - GetQuestionConfigResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetQuestionConfigResponse; - GetQuestionConfig200Response ret = new GetQuestionConfig200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetQuestionConfigResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetQuestionConfigResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetQuestionConfig200Response ret = new GetQuestionConfig200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetQuestionConfig200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetQuestionConfig200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetQuestionConfig200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetQuestionConfigResponse", GetQuestionConfigResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetQuestionConfig200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetQuestionConfigResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetQuestionConfigResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetQuestionConfigResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetQuestionConfigResponse - * - * @return The actual instance (APIError, GetQuestionConfigResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetQuestionConfigResponse`. If the actual instance is not `GetQuestionConfigResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetQuestionConfigResponse` - * @throws ClassCastException if the instance is not `GetQuestionConfigResponse` - */ - public GetQuestionConfigResponse getGetQuestionConfigResponse() throws ClassCastException { - return (GetQuestionConfigResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetQuestionConfig200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetQuestionConfigResponse - try { - GetQuestionConfigResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetQuestionConfigResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetQuestionConfig200Response with anyOf schemas: APIError, GetQuestionConfigResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetQuestionConfig200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetQuestionConfig200Response - * @throws IOException if the JSON string is invalid with respect to GetQuestionConfig200Response - */ - public static GetQuestionConfig200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetQuestionConfig200Response.class); - } - - /** - * Convert an instance of GetQuestionConfig200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetQuestionConfigResponse.java b/client/src/main/java/com/fastcomments/model/GetQuestionConfigResponse.java index acf922ec..87ec3efa 100644 --- a/client/src/main/java/com/fastcomments/model/GetQuestionConfigResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetQuestionConfigResponse.java @@ -50,7 +50,7 @@ /** * GetQuestionConfigResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetQuestionConfigResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetQuestionConfigs200Response.java b/client/src/main/java/com/fastcomments/model/GetQuestionConfigs200Response.java deleted file mode 100644 index 414c1475..00000000 --- a/client/src/main/java/com/fastcomments/model/GetQuestionConfigs200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetQuestionConfigsResponse; -import com.fastcomments.model.QuestionConfig; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetQuestionConfigs200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetQuestionConfigs200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetQuestionConfigs200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetQuestionConfigs200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetQuestionConfigsResponse = gson.getDelegateAdapter(this, TypeToken.get(GetQuestionConfigsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetQuestionConfigs200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetQuestionConfigsResponse` - if (value.getActualInstance() instanceof GetQuestionConfigsResponse) { - JsonElement element = adapterGetQuestionConfigsResponse.toJsonTree((GetQuestionConfigsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetQuestionConfigsResponse"); - } - - @Override - public GetQuestionConfigs200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetQuestionConfigsResponse - try { - // validate the JSON object to see if any exception is thrown - GetQuestionConfigsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetQuestionConfigsResponse; - GetQuestionConfigs200Response ret = new GetQuestionConfigs200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetQuestionConfigsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetQuestionConfigsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetQuestionConfigs200Response ret = new GetQuestionConfigs200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetQuestionConfigs200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetQuestionConfigs200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetQuestionConfigs200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetQuestionConfigsResponse", GetQuestionConfigsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetQuestionConfigs200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetQuestionConfigsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetQuestionConfigsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetQuestionConfigsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetQuestionConfigsResponse - * - * @return The actual instance (APIError, GetQuestionConfigsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetQuestionConfigsResponse`. If the actual instance is not `GetQuestionConfigsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetQuestionConfigsResponse` - * @throws ClassCastException if the instance is not `GetQuestionConfigsResponse` - */ - public GetQuestionConfigsResponse getGetQuestionConfigsResponse() throws ClassCastException { - return (GetQuestionConfigsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetQuestionConfigs200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetQuestionConfigsResponse - try { - GetQuestionConfigsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetQuestionConfigsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetQuestionConfigs200Response with anyOf schemas: APIError, GetQuestionConfigsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetQuestionConfigs200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetQuestionConfigs200Response - * @throws IOException if the JSON string is invalid with respect to GetQuestionConfigs200Response - */ - public static GetQuestionConfigs200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetQuestionConfigs200Response.class); - } - - /** - * Convert an instance of GetQuestionConfigs200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetQuestionConfigsResponse.java b/client/src/main/java/com/fastcomments/model/GetQuestionConfigsResponse.java index e1b13ce0..a7a76729 100644 --- a/client/src/main/java/com/fastcomments/model/GetQuestionConfigsResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetQuestionConfigsResponse.java @@ -52,7 +52,7 @@ /** * GetQuestionConfigsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetQuestionConfigsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("questionConfigs").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `questionConfigs` to be an array in the JSON string but got `%s`", jsonObj.get("questionConfigs").toString())); + if (jsonObj.get("questionConfigs") != null) { + if (!jsonObj.get("questionConfigs").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `questionConfigs` to be an array in the JSON string but got `%s`", jsonObj.get("questionConfigs").toString())); + } + JsonArray jsonArrayquestionConfigs = jsonObj.getAsJsonArray("questionConfigs"); + // validate the required field `questionConfigs` (array) + for (int i = 0; i < jsonArrayquestionConfigs.size(); i++) { + QuestionConfig.validateJsonElement(jsonArrayquestionConfigs.get(i)); + } } - - JsonArray jsonArrayquestionConfigs = jsonObj.getAsJsonArray("questionConfigs"); - // validate the required field `questionConfigs` (array) - for (int i = 0; i < jsonArrayquestionConfigs.size(); i++) { - QuestionConfig.validateJsonElement(jsonArrayquestionConfigs.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetQuestionResult200Response.java b/client/src/main/java/com/fastcomments/model/GetQuestionResult200Response.java deleted file mode 100644 index f5787138..00000000 --- a/client/src/main/java/com/fastcomments/model/GetQuestionResult200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetQuestionResultResponse; -import com.fastcomments.model.QuestionResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetQuestionResult200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetQuestionResult200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetQuestionResult200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetQuestionResult200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetQuestionResultResponse = gson.getDelegateAdapter(this, TypeToken.get(GetQuestionResultResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetQuestionResult200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetQuestionResultResponse` - if (value.getActualInstance() instanceof GetQuestionResultResponse) { - JsonElement element = adapterGetQuestionResultResponse.toJsonTree((GetQuestionResultResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetQuestionResultResponse"); - } - - @Override - public GetQuestionResult200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetQuestionResultResponse - try { - // validate the JSON object to see if any exception is thrown - GetQuestionResultResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetQuestionResultResponse; - GetQuestionResult200Response ret = new GetQuestionResult200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetQuestionResultResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetQuestionResultResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetQuestionResult200Response ret = new GetQuestionResult200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetQuestionResult200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetQuestionResult200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetQuestionResult200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetQuestionResultResponse", GetQuestionResultResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetQuestionResult200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetQuestionResultResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetQuestionResultResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetQuestionResultResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetQuestionResultResponse - * - * @return The actual instance (APIError, GetQuestionResultResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetQuestionResultResponse`. If the actual instance is not `GetQuestionResultResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetQuestionResultResponse` - * @throws ClassCastException if the instance is not `GetQuestionResultResponse` - */ - public GetQuestionResultResponse getGetQuestionResultResponse() throws ClassCastException { - return (GetQuestionResultResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetQuestionResult200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetQuestionResultResponse - try { - GetQuestionResultResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetQuestionResultResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetQuestionResult200Response with anyOf schemas: APIError, GetQuestionResultResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetQuestionResult200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetQuestionResult200Response - * @throws IOException if the JSON string is invalid with respect to GetQuestionResult200Response - */ - public static GetQuestionResult200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetQuestionResult200Response.class); - } - - /** - * Convert an instance of GetQuestionResult200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetQuestionResultResponse.java b/client/src/main/java/com/fastcomments/model/GetQuestionResultResponse.java index ab0f6754..0e7500c9 100644 --- a/client/src/main/java/com/fastcomments/model/GetQuestionResultResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetQuestionResultResponse.java @@ -50,7 +50,7 @@ /** * GetQuestionResultResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetQuestionResultResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetQuestionResults200Response.java b/client/src/main/java/com/fastcomments/model/GetQuestionResults200Response.java deleted file mode 100644 index 02ce0bbb..00000000 --- a/client/src/main/java/com/fastcomments/model/GetQuestionResults200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetQuestionResultsResponse; -import com.fastcomments.model.QuestionResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetQuestionResults200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetQuestionResults200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetQuestionResults200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetQuestionResults200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetQuestionResultsResponse = gson.getDelegateAdapter(this, TypeToken.get(GetQuestionResultsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetQuestionResults200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetQuestionResultsResponse` - if (value.getActualInstance() instanceof GetQuestionResultsResponse) { - JsonElement element = adapterGetQuestionResultsResponse.toJsonTree((GetQuestionResultsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetQuestionResultsResponse"); - } - - @Override - public GetQuestionResults200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetQuestionResultsResponse - try { - // validate the JSON object to see if any exception is thrown - GetQuestionResultsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetQuestionResultsResponse; - GetQuestionResults200Response ret = new GetQuestionResults200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetQuestionResultsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetQuestionResultsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetQuestionResults200Response ret = new GetQuestionResults200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetQuestionResults200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetQuestionResults200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetQuestionResults200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetQuestionResultsResponse", GetQuestionResultsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetQuestionResults200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetQuestionResultsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetQuestionResultsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetQuestionResultsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetQuestionResultsResponse - * - * @return The actual instance (APIError, GetQuestionResultsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetQuestionResultsResponse`. If the actual instance is not `GetQuestionResultsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetQuestionResultsResponse` - * @throws ClassCastException if the instance is not `GetQuestionResultsResponse` - */ - public GetQuestionResultsResponse getGetQuestionResultsResponse() throws ClassCastException { - return (GetQuestionResultsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetQuestionResults200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetQuestionResultsResponse - try { - GetQuestionResultsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetQuestionResultsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetQuestionResults200Response with anyOf schemas: APIError, GetQuestionResultsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetQuestionResults200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetQuestionResults200Response - * @throws IOException if the JSON string is invalid with respect to GetQuestionResults200Response - */ - public static GetQuestionResults200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetQuestionResults200Response.class); - } - - /** - * Convert an instance of GetQuestionResults200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetQuestionResultsResponse.java b/client/src/main/java/com/fastcomments/model/GetQuestionResultsResponse.java index 646d889f..ab29a6eb 100644 --- a/client/src/main/java/com/fastcomments/model/GetQuestionResultsResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetQuestionResultsResponse.java @@ -52,7 +52,7 @@ /** * GetQuestionResultsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetQuestionResultsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("questionResults").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `questionResults` to be an array in the JSON string but got `%s`", jsonObj.get("questionResults").toString())); + if (jsonObj.get("questionResults") != null) { + if (!jsonObj.get("questionResults").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `questionResults` to be an array in the JSON string but got `%s`", jsonObj.get("questionResults").toString())); + } + JsonArray jsonArrayquestionResults = jsonObj.getAsJsonArray("questionResults"); + // validate the required field `questionResults` (array) + for (int i = 0; i < jsonArrayquestionResults.size(); i++) { + QuestionResult.validateJsonElement(jsonArrayquestionResults.get(i)); + } } - - JsonArray jsonArrayquestionResults = jsonObj.getAsJsonArray("questionResults"); - // validate the required field `questionResults` (array) - for (int i = 0; i < jsonArrayquestionResults.size(); i++) { - QuestionResult.validateJsonElement(jsonArrayquestionResults.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetSSOUserByEmailAPIResponse.java b/client/src/main/java/com/fastcomments/model/GetSSOUserByEmailAPIResponse.java index f860e20c..f5d4a0dd 100644 --- a/client/src/main/java/com/fastcomments/model/GetSSOUserByEmailAPIResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetSSOUserByEmailAPIResponse.java @@ -49,7 +49,7 @@ /** * GetSSOUserByEmailAPIResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetSSOUserByEmailAPIResponse { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -234,10 +234,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetSSOUserByIdAPIResponse.java b/client/src/main/java/com/fastcomments/model/GetSSOUserByIdAPIResponse.java index b7976cb0..dbedddc1 100644 --- a/client/src/main/java/com/fastcomments/model/GetSSOUserByIdAPIResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetSSOUserByIdAPIResponse.java @@ -49,7 +49,7 @@ /** * GetSSOUserByIdAPIResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetSSOUserByIdAPIResponse { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -234,10 +234,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetSSOUsers200Response.java b/client/src/main/java/com/fastcomments/model/GetSSOUsersResponse.java similarity index 77% rename from client/src/main/java/com/fastcomments/model/GetSSOUsers200Response.java rename to client/src/main/java/com/fastcomments/model/GetSSOUsersResponse.java index 732a4f38..0a0ba7f8 100644 --- a/client/src/main/java/com/fastcomments/model/GetSSOUsers200Response.java +++ b/client/src/main/java/com/fastcomments/model/GetSSOUsersResponse.java @@ -49,10 +49,10 @@ import com.fastcomments.invoker.JSON; /** - * GetSSOUsers200Response + * GetSSOUsersResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetSSOUsers200Response { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetSSOUsersResponse { public static final String SERIALIZED_NAME_USERS = "users"; @SerializedName(SERIALIZED_NAME_USERS) @javax.annotation.Nonnull @@ -63,15 +63,15 @@ public class GetSSOUsers200Response { @javax.annotation.Nonnull private String status; - public GetSSOUsers200Response() { + public GetSSOUsersResponse() { } - public GetSSOUsers200Response users(@javax.annotation.Nonnull List users) { + public GetSSOUsersResponse users(@javax.annotation.Nonnull List users) { this.users = users; return this; } - public GetSSOUsers200Response addUsersItem(APISSOUser usersItem) { + public GetSSOUsersResponse addUsersItem(APISSOUser usersItem) { if (this.users == null) { this.users = new ArrayList<>(); } @@ -93,7 +93,7 @@ public void setUsers(@javax.annotation.Nonnull List users) { } - public GetSSOUsers200Response status(@javax.annotation.Nonnull String status) { + public GetSSOUsersResponse status(@javax.annotation.Nonnull String status) { this.status = status; return this; } @@ -124,9 +124,9 @@ public void setStatus(@javax.annotation.Nonnull String status) { * * @param key name of the property * @param value value of the property - * @return the GetSSOUsers200Response instance itself + * @return the GetSSOUsersResponse instance itself */ - public GetSSOUsers200Response putAdditionalProperty(String key, Object value) { + public GetSSOUsersResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -165,10 +165,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetSSOUsers200Response getSSOUsers200Response = (GetSSOUsers200Response) o; - return Objects.equals(this.users, getSSOUsers200Response.users) && - Objects.equals(this.status, getSSOUsers200Response.status)&& - Objects.equals(this.additionalProperties, getSSOUsers200Response.additionalProperties); + GetSSOUsersResponse getSSOUsersResponse = (GetSSOUsersResponse) o; + return Objects.equals(this.users, getSSOUsersResponse.users) && + Objects.equals(this.status, getSSOUsersResponse.status)&& + Objects.equals(this.additionalProperties, getSSOUsersResponse.additionalProperties); } @Override @@ -179,7 +179,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class GetSSOUsers200Response {\n"); + sb.append("class GetSSOUsersResponse {\n"); sb.append(" users: ").append(toIndentedString(users)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -192,10 +192,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -214,32 +211,32 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetSSOUsers200Response + * @throws IOException if the JSON Element is invalid with respect to GetSSOUsersResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!GetSSOUsers200Response.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetSSOUsers200Response is not found in the empty JSON string", GetSSOUsers200Response.openapiRequiredFields.toString())); + if (!GetSSOUsersResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetSSOUsersResponse is not found in the empty JSON string", GetSSOUsersResponse.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : GetSSOUsers200Response.openapiRequiredFields) { + for (String requiredField : GetSSOUsersResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the json data is an array - if (!jsonObj.get("users").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + if (jsonObj.get("users") != null) { + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + } + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + // validate the required field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + APISSOUser.validateJsonElement(jsonArrayusers.get(i)); + } } - - JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); - // validate the required field `users` (array) - for (int i = 0; i < jsonArrayusers.size(); i++) { - APISSOUser.validateJsonElement(jsonArrayusers.get(i)); - }; if (!jsonObj.get("status").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } @@ -249,16 +246,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetSSOUsers200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetSSOUsers200Response' and its subtypes + if (!GetSSOUsersResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetSSOUsersResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetSSOUsers200Response.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetSSOUsersResponse.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, GetSSOUsers200Response value) throws IOException { + public void write(JsonWriter out, GetSSOUsersResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -286,12 +283,12 @@ else if (entry.getValue() instanceof Character) } @Override - public GetSSOUsers200Response read(JsonReader in) throws IOException { + public GetSSOUsersResponse read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance - GetSSOUsers200Response instance = thisAdapter.fromJsonTree(jsonObj); + GetSSOUsersResponse instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -318,18 +315,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of GetSSOUsers200Response given an JSON string + * Create an instance of GetSSOUsersResponse given an JSON string * * @param jsonString JSON string - * @return An instance of GetSSOUsers200Response - * @throws IOException if the JSON string is invalid with respect to GetSSOUsers200Response + * @return An instance of GetSSOUsersResponse + * @throws IOException if the JSON string is invalid with respect to GetSSOUsersResponse */ - public static GetSSOUsers200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetSSOUsers200Response.class); + public static GetSSOUsersResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetSSOUsersResponse.class); } /** - * Convert an instance of GetSSOUsers200Response to an JSON string + * Convert an instance of GetSSOUsersResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/GetSubscriptionsAPIResponse.java b/client/src/main/java/com/fastcomments/model/GetSubscriptionsAPIResponse.java index 87423c69..ba49471e 100644 --- a/client/src/main/java/com/fastcomments/model/GetSubscriptionsAPIResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetSubscriptionsAPIResponse.java @@ -51,7 +51,7 @@ /** * GetSubscriptionsAPIResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetSubscriptionsAPIResponse { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -244,10 +244,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetTenant200Response.java b/client/src/main/java/com/fastcomments/model/GetTenant200Response.java deleted file mode 100644 index 630852a4..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTenant200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITenant; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTenantResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetTenant200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTenant200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTenant200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTenant200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetTenantResponse = gson.getDelegateAdapter(this, TypeToken.get(GetTenantResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetTenant200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetTenantResponse` - if (value.getActualInstance() instanceof GetTenantResponse) { - JsonElement element = adapterGetTenantResponse.toJsonTree((GetTenantResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetTenantResponse"); - } - - @Override - public GetTenant200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetTenantResponse - try { - // validate the JSON object to see if any exception is thrown - GetTenantResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetTenantResponse; - GetTenant200Response ret = new GetTenant200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetTenantResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetTenant200Response ret = new GetTenant200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetTenant200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetTenant200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetTenant200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTenantResponse", GetTenantResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTenant200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetTenantResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetTenantResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetTenantResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetTenantResponse - * - * @return The actual instance (APIError, GetTenantResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetTenantResponse`. If the actual instance is not `GetTenantResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetTenantResponse` - * @throws ClassCastException if the instance is not `GetTenantResponse` - */ - public GetTenantResponse getGetTenantResponse() throws ClassCastException { - return (GetTenantResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetTenant200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetTenantResponse - try { - GetTenantResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetTenant200Response with anyOf schemas: APIError, GetTenantResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetTenant200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTenant200Response - * @throws IOException if the JSON string is invalid with respect to GetTenant200Response - */ - public static GetTenant200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTenant200Response.class); - } - - /** - * Convert an instance of GetTenant200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetTenantDailyUsages200Response.java b/client/src/main/java/com/fastcomments/model/GetTenantDailyUsages200Response.java deleted file mode 100644 index 1ed244c4..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTenantDailyUsages200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITenantDailyUsage; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTenantDailyUsagesResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetTenantDailyUsages200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTenantDailyUsages200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTenantDailyUsages200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTenantDailyUsages200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetTenantDailyUsagesResponse = gson.getDelegateAdapter(this, TypeToken.get(GetTenantDailyUsagesResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetTenantDailyUsages200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetTenantDailyUsagesResponse` - if (value.getActualInstance() instanceof GetTenantDailyUsagesResponse) { - JsonElement element = adapterGetTenantDailyUsagesResponse.toJsonTree((GetTenantDailyUsagesResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetTenantDailyUsagesResponse"); - } - - @Override - public GetTenantDailyUsages200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetTenantDailyUsagesResponse - try { - // validate the JSON object to see if any exception is thrown - GetTenantDailyUsagesResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetTenantDailyUsagesResponse; - GetTenantDailyUsages200Response ret = new GetTenantDailyUsages200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantDailyUsagesResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetTenantDailyUsagesResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetTenantDailyUsages200Response ret = new GetTenantDailyUsages200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetTenantDailyUsages200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetTenantDailyUsages200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetTenantDailyUsages200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTenantDailyUsagesResponse", GetTenantDailyUsagesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTenantDailyUsages200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetTenantDailyUsagesResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetTenantDailyUsagesResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetTenantDailyUsagesResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetTenantDailyUsagesResponse - * - * @return The actual instance (APIError, GetTenantDailyUsagesResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetTenantDailyUsagesResponse`. If the actual instance is not `GetTenantDailyUsagesResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetTenantDailyUsagesResponse` - * @throws ClassCastException if the instance is not `GetTenantDailyUsagesResponse` - */ - public GetTenantDailyUsagesResponse getGetTenantDailyUsagesResponse() throws ClassCastException { - return (GetTenantDailyUsagesResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetTenantDailyUsages200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetTenantDailyUsagesResponse - try { - GetTenantDailyUsagesResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantDailyUsagesResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetTenantDailyUsages200Response with anyOf schemas: APIError, GetTenantDailyUsagesResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetTenantDailyUsages200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTenantDailyUsages200Response - * @throws IOException if the JSON string is invalid with respect to GetTenantDailyUsages200Response - */ - public static GetTenantDailyUsages200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTenantDailyUsages200Response.class); - } - - /** - * Convert an instance of GetTenantDailyUsages200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetTenantDailyUsagesResponse.java b/client/src/main/java/com/fastcomments/model/GetTenantDailyUsagesResponse.java index cffa59c8..9dfd49dd 100644 --- a/client/src/main/java/com/fastcomments/model/GetTenantDailyUsagesResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetTenantDailyUsagesResponse.java @@ -52,7 +52,7 @@ /** * GetTenantDailyUsagesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetTenantDailyUsagesResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("tenantDailyUsages").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tenantDailyUsages` to be an array in the JSON string but got `%s`", jsonObj.get("tenantDailyUsages").toString())); + if (jsonObj.get("tenantDailyUsages") != null) { + if (!jsonObj.get("tenantDailyUsages").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tenantDailyUsages` to be an array in the JSON string but got `%s`", jsonObj.get("tenantDailyUsages").toString())); + } + JsonArray jsonArraytenantDailyUsages = jsonObj.getAsJsonArray("tenantDailyUsages"); + // validate the required field `tenantDailyUsages` (array) + for (int i = 0; i < jsonArraytenantDailyUsages.size(); i++) { + APITenantDailyUsage.validateJsonElement(jsonArraytenantDailyUsages.get(i)); + } } - - JsonArray jsonArraytenantDailyUsages = jsonObj.getAsJsonArray("tenantDailyUsages"); - // validate the required field `tenantDailyUsages` (array) - for (int i = 0; i < jsonArraytenantDailyUsages.size(); i++) { - APITenantDailyUsage.validateJsonElement(jsonArraytenantDailyUsages.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetTenantManualBadgesResponse.java b/client/src/main/java/com/fastcomments/model/GetTenantManualBadgesResponse.java new file mode 100644 index 00000000..0115cfe3 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetTenantManualBadgesResponse.java @@ -0,0 +1,337 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.TenantBadge; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GetTenantManualBadgesResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetTenantManualBadgesResponse { + public static final String SERIALIZED_NAME_BADGES = "badges"; + @SerializedName(SERIALIZED_NAME_BADGES) + @javax.annotation.Nonnull + private List badges = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public GetTenantManualBadgesResponse() { + } + + public GetTenantManualBadgesResponse badges(@javax.annotation.Nonnull List badges) { + this.badges = badges; + return this; + } + + public GetTenantManualBadgesResponse addBadgesItem(TenantBadge badgesItem) { + if (this.badges == null) { + this.badges = new ArrayList<>(); + } + this.badges.add(badgesItem); + return this; + } + + /** + * Get badges + * @return badges + */ + @javax.annotation.Nonnull + public List getBadges() { + return badges; + } + + public void setBadges(@javax.annotation.Nonnull List badges) { + this.badges = badges; + } + + + public GetTenantManualBadgesResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GetTenantManualBadgesResponse instance itself + */ + public GetTenantManualBadgesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetTenantManualBadgesResponse getTenantManualBadgesResponse = (GetTenantManualBadgesResponse) o; + return Objects.equals(this.badges, getTenantManualBadgesResponse.badges) && + Objects.equals(this.status, getTenantManualBadgesResponse.status)&& + Objects.equals(this.additionalProperties, getTenantManualBadgesResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(badges, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetTenantManualBadgesResponse {\n"); + sb.append(" badges: ").append(toIndentedString(badges)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("badges", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("badges", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetTenantManualBadgesResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetTenantManualBadgesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetTenantManualBadgesResponse is not found in the empty JSON string", GetTenantManualBadgesResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GetTenantManualBadgesResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("badges") != null) { + if (!jsonObj.get("badges").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `badges` to be an array in the JSON string but got `%s`", jsonObj.get("badges").toString())); + } + JsonArray jsonArraybadges = jsonObj.getAsJsonArray("badges"); + // validate the required field `badges` (array) + for (int i = 0; i < jsonArraybadges.size(); i++) { + TenantBadge.validateJsonElement(jsonArraybadges.get(i)); + } + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetTenantManualBadgesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetTenantManualBadgesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetTenantManualBadgesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetTenantManualBadgesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GetTenantManualBadgesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GetTenantManualBadgesResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetTenantManualBadgesResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTenantManualBadgesResponse + * @throws IOException if the JSON string is invalid with respect to GetTenantManualBadgesResponse + */ + public static GetTenantManualBadgesResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetTenantManualBadgesResponse.class); + } + + /** + * Convert an instance of GetTenantManualBadgesResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetTenantPackage200Response.java b/client/src/main/java/com/fastcomments/model/GetTenantPackage200Response.java deleted file mode 100644 index 65239aff..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTenantPackage200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTenantPackageResponse; -import com.fastcomments.model.TenantPackage; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetTenantPackage200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTenantPackage200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTenantPackage200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTenantPackage200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetTenantPackageResponse = gson.getDelegateAdapter(this, TypeToken.get(GetTenantPackageResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetTenantPackage200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetTenantPackageResponse` - if (value.getActualInstance() instanceof GetTenantPackageResponse) { - JsonElement element = adapterGetTenantPackageResponse.toJsonTree((GetTenantPackageResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetTenantPackageResponse"); - } - - @Override - public GetTenantPackage200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetTenantPackageResponse - try { - // validate the JSON object to see if any exception is thrown - GetTenantPackageResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetTenantPackageResponse; - GetTenantPackage200Response ret = new GetTenantPackage200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantPackageResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetTenantPackageResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetTenantPackage200Response ret = new GetTenantPackage200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetTenantPackage200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetTenantPackage200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetTenantPackage200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTenantPackageResponse", GetTenantPackageResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTenantPackage200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetTenantPackageResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetTenantPackageResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetTenantPackageResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetTenantPackageResponse - * - * @return The actual instance (APIError, GetTenantPackageResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetTenantPackageResponse`. If the actual instance is not `GetTenantPackageResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetTenantPackageResponse` - * @throws ClassCastException if the instance is not `GetTenantPackageResponse` - */ - public GetTenantPackageResponse getGetTenantPackageResponse() throws ClassCastException { - return (GetTenantPackageResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetTenantPackage200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetTenantPackageResponse - try { - GetTenantPackageResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantPackageResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetTenantPackage200Response with anyOf schemas: APIError, GetTenantPackageResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetTenantPackage200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTenantPackage200Response - * @throws IOException if the JSON string is invalid with respect to GetTenantPackage200Response - */ - public static GetTenantPackage200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTenantPackage200Response.class); - } - - /** - * Convert an instance of GetTenantPackage200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetTenantPackageResponse.java b/client/src/main/java/com/fastcomments/model/GetTenantPackageResponse.java index a7a3a3c0..32e676d9 100644 --- a/client/src/main/java/com/fastcomments/model/GetTenantPackageResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetTenantPackageResponse.java @@ -50,7 +50,7 @@ /** * GetTenantPackageResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetTenantPackageResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetTenantPackages200Response.java b/client/src/main/java/com/fastcomments/model/GetTenantPackages200Response.java deleted file mode 100644 index 80e2c20f..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTenantPackages200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTenantPackagesResponse; -import com.fastcomments.model.TenantPackage; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetTenantPackages200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTenantPackages200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTenantPackages200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTenantPackages200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetTenantPackagesResponse = gson.getDelegateAdapter(this, TypeToken.get(GetTenantPackagesResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetTenantPackages200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetTenantPackagesResponse` - if (value.getActualInstance() instanceof GetTenantPackagesResponse) { - JsonElement element = adapterGetTenantPackagesResponse.toJsonTree((GetTenantPackagesResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetTenantPackagesResponse"); - } - - @Override - public GetTenantPackages200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetTenantPackagesResponse - try { - // validate the JSON object to see if any exception is thrown - GetTenantPackagesResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetTenantPackagesResponse; - GetTenantPackages200Response ret = new GetTenantPackages200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantPackagesResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetTenantPackagesResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetTenantPackages200Response ret = new GetTenantPackages200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetTenantPackages200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetTenantPackages200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetTenantPackages200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTenantPackagesResponse", GetTenantPackagesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTenantPackages200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetTenantPackagesResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetTenantPackagesResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetTenantPackagesResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetTenantPackagesResponse - * - * @return The actual instance (APIError, GetTenantPackagesResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetTenantPackagesResponse`. If the actual instance is not `GetTenantPackagesResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetTenantPackagesResponse` - * @throws ClassCastException if the instance is not `GetTenantPackagesResponse` - */ - public GetTenantPackagesResponse getGetTenantPackagesResponse() throws ClassCastException { - return (GetTenantPackagesResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetTenantPackages200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetTenantPackagesResponse - try { - GetTenantPackagesResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantPackagesResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetTenantPackages200Response with anyOf schemas: APIError, GetTenantPackagesResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetTenantPackages200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTenantPackages200Response - * @throws IOException if the JSON string is invalid with respect to GetTenantPackages200Response - */ - public static GetTenantPackages200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTenantPackages200Response.class); - } - - /** - * Convert an instance of GetTenantPackages200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetTenantPackagesResponse.java b/client/src/main/java/com/fastcomments/model/GetTenantPackagesResponse.java index b5b17dc1..20b1674f 100644 --- a/client/src/main/java/com/fastcomments/model/GetTenantPackagesResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetTenantPackagesResponse.java @@ -52,7 +52,7 @@ /** * GetTenantPackagesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetTenantPackagesResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("tenantPackages").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tenantPackages` to be an array in the JSON string but got `%s`", jsonObj.get("tenantPackages").toString())); + if (jsonObj.get("tenantPackages") != null) { + if (!jsonObj.get("tenantPackages").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tenantPackages` to be an array in the JSON string but got `%s`", jsonObj.get("tenantPackages").toString())); + } + JsonArray jsonArraytenantPackages = jsonObj.getAsJsonArray("tenantPackages"); + // validate the required field `tenantPackages` (array) + for (int i = 0; i < jsonArraytenantPackages.size(); i++) { + TenantPackage.validateJsonElement(jsonArraytenantPackages.get(i)); + } } - - JsonArray jsonArraytenantPackages = jsonObj.getAsJsonArray("tenantPackages"); - // validate the required field `tenantPackages` (array) - for (int i = 0; i < jsonArraytenantPackages.size(); i++) { - TenantPackage.validateJsonElement(jsonArraytenantPackages.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetTenantResponse.java b/client/src/main/java/com/fastcomments/model/GetTenantResponse.java index ddb0be9b..f4c99ac4 100644 --- a/client/src/main/java/com/fastcomments/model/GetTenantResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetTenantResponse.java @@ -50,7 +50,7 @@ /** * GetTenantResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetTenantResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetTenantUser200Response.java b/client/src/main/java/com/fastcomments/model/GetTenantUser200Response.java deleted file mode 100644 index 5e48a88a..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTenantUser200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTenantUserResponse; -import com.fastcomments.model.User; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetTenantUser200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTenantUser200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTenantUser200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTenantUser200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetTenantUserResponse = gson.getDelegateAdapter(this, TypeToken.get(GetTenantUserResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetTenantUser200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetTenantUserResponse` - if (value.getActualInstance() instanceof GetTenantUserResponse) { - JsonElement element = adapterGetTenantUserResponse.toJsonTree((GetTenantUserResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetTenantUserResponse"); - } - - @Override - public GetTenantUser200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetTenantUserResponse - try { - // validate the JSON object to see if any exception is thrown - GetTenantUserResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetTenantUserResponse; - GetTenantUser200Response ret = new GetTenantUser200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantUserResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetTenantUserResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetTenantUser200Response ret = new GetTenantUser200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetTenantUser200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetTenantUser200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetTenantUser200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTenantUserResponse", GetTenantUserResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTenantUser200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetTenantUserResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetTenantUserResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetTenantUserResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetTenantUserResponse - * - * @return The actual instance (APIError, GetTenantUserResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetTenantUserResponse`. If the actual instance is not `GetTenantUserResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetTenantUserResponse` - * @throws ClassCastException if the instance is not `GetTenantUserResponse` - */ - public GetTenantUserResponse getGetTenantUserResponse() throws ClassCastException { - return (GetTenantUserResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetTenantUser200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetTenantUserResponse - try { - GetTenantUserResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantUserResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetTenantUser200Response with anyOf schemas: APIError, GetTenantUserResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetTenantUser200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTenantUser200Response - * @throws IOException if the JSON string is invalid with respect to GetTenantUser200Response - */ - public static GetTenantUser200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTenantUser200Response.class); - } - - /** - * Convert an instance of GetTenantUser200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetTenantUserResponse.java b/client/src/main/java/com/fastcomments/model/GetTenantUserResponse.java index dfe80e25..b2038b00 100644 --- a/client/src/main/java/com/fastcomments/model/GetTenantUserResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetTenantUserResponse.java @@ -50,7 +50,7 @@ /** * GetTenantUserResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetTenantUserResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetTenantUsersResponse.java b/client/src/main/java/com/fastcomments/model/GetTenantUsersResponse.java index 330abc6e..9ab7cebf 100644 --- a/client/src/main/java/com/fastcomments/model/GetTenantUsersResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetTenantUsersResponse.java @@ -52,7 +52,7 @@ /** * GetTenantUsersResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetTenantUsersResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("tenantUsers").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tenantUsers` to be an array in the JSON string but got `%s`", jsonObj.get("tenantUsers").toString())); + if (jsonObj.get("tenantUsers") != null) { + if (!jsonObj.get("tenantUsers").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tenantUsers` to be an array in the JSON string but got `%s`", jsonObj.get("tenantUsers").toString())); + } + JsonArray jsonArraytenantUsers = jsonObj.getAsJsonArray("tenantUsers"); + // validate the required field `tenantUsers` (array) + for (int i = 0; i < jsonArraytenantUsers.size(); i++) { + User.validateJsonElement(jsonArraytenantUsers.get(i)); + } } - - JsonArray jsonArraytenantUsers = jsonObj.getAsJsonArray("tenantUsers"); - // validate the required field `tenantUsers` (array) - for (int i = 0; i < jsonArraytenantUsers.size(); i++) { - User.validateJsonElement(jsonArraytenantUsers.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetTenants200Response.java b/client/src/main/java/com/fastcomments/model/GetTenants200Response.java deleted file mode 100644 index 0190096d..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTenants200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITenant; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTenantsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetTenants200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTenants200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTenants200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTenants200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetTenantsResponse = gson.getDelegateAdapter(this, TypeToken.get(GetTenantsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetTenants200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetTenantsResponse` - if (value.getActualInstance() instanceof GetTenantsResponse) { - JsonElement element = adapterGetTenantsResponse.toJsonTree((GetTenantsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetTenantsResponse"); - } - - @Override - public GetTenants200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetTenantsResponse - try { - // validate the JSON object to see if any exception is thrown - GetTenantsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetTenantsResponse; - GetTenants200Response ret = new GetTenants200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetTenantsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetTenants200Response ret = new GetTenants200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetTenants200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetTenants200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetTenants200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTenantsResponse", GetTenantsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTenants200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetTenantsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetTenantsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetTenantsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetTenantsResponse - * - * @return The actual instance (APIError, GetTenantsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetTenantsResponse`. If the actual instance is not `GetTenantsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetTenantsResponse` - * @throws ClassCastException if the instance is not `GetTenantsResponse` - */ - public GetTenantsResponse getGetTenantsResponse() throws ClassCastException { - return (GetTenantsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetTenants200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetTenantsResponse - try { - GetTenantsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetTenants200Response with anyOf schemas: APIError, GetTenantsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetTenants200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTenants200Response - * @throws IOException if the JSON string is invalid with respect to GetTenants200Response - */ - public static GetTenants200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTenants200Response.class); - } - - /** - * Convert an instance of GetTenants200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetTenantsResponse.java b/client/src/main/java/com/fastcomments/model/GetTenantsResponse.java index 46e7f7ce..5d124fbb 100644 --- a/client/src/main/java/com/fastcomments/model/GetTenantsResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetTenantsResponse.java @@ -52,7 +52,7 @@ /** * GetTenantsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetTenantsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("tenants").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tenants` to be an array in the JSON string but got `%s`", jsonObj.get("tenants").toString())); + if (jsonObj.get("tenants") != null) { + if (!jsonObj.get("tenants").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tenants` to be an array in the JSON string but got `%s`", jsonObj.get("tenants").toString())); + } + JsonArray jsonArraytenants = jsonObj.getAsJsonArray("tenants"); + // validate the required field `tenants` (array) + for (int i = 0; i < jsonArraytenants.size(); i++) { + APITenant.validateJsonElement(jsonArraytenants.get(i)); + } } - - JsonArray jsonArraytenants = jsonObj.getAsJsonArray("tenants"); - // validate the required field `tenants` (array) - for (int i = 0; i < jsonArraytenants.size(); i++) { - APITenant.validateJsonElement(jsonArraytenants.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetTicket200Response.java b/client/src/main/java/com/fastcomments/model/GetTicket200Response.java deleted file mode 100644 index 1e78a346..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTicket200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITicketDetail; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTicketResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetTicket200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTicket200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTicket200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTicket200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetTicketResponse = gson.getDelegateAdapter(this, TypeToken.get(GetTicketResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetTicket200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetTicketResponse` - if (value.getActualInstance() instanceof GetTicketResponse) { - JsonElement element = adapterGetTicketResponse.toJsonTree((GetTicketResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetTicketResponse"); - } - - @Override - public GetTicket200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetTicketResponse - try { - // validate the JSON object to see if any exception is thrown - GetTicketResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetTicketResponse; - GetTicket200Response ret = new GetTicket200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTicketResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetTicketResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetTicket200Response ret = new GetTicket200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetTicket200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetTicket200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetTicket200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTicketResponse", GetTicketResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTicket200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetTicketResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetTicketResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetTicketResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetTicketResponse - * - * @return The actual instance (APIError, GetTicketResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetTicketResponse`. If the actual instance is not `GetTicketResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetTicketResponse` - * @throws ClassCastException if the instance is not `GetTicketResponse` - */ - public GetTicketResponse getGetTicketResponse() throws ClassCastException { - return (GetTicketResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetTicket200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetTicketResponse - try { - GetTicketResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTicketResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetTicket200Response with anyOf schemas: APIError, GetTicketResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetTicket200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTicket200Response - * @throws IOException if the JSON string is invalid with respect to GetTicket200Response - */ - public static GetTicket200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTicket200Response.class); - } - - /** - * Convert an instance of GetTicket200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetTicketResponse.java b/client/src/main/java/com/fastcomments/model/GetTicketResponse.java index 50fb3bdd..06378321 100644 --- a/client/src/main/java/com/fastcomments/model/GetTicketResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetTicketResponse.java @@ -52,7 +52,7 @@ /** * GetTicketResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetTicketResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -173,10 +173,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetTicketsResponse.java b/client/src/main/java/com/fastcomments/model/GetTicketsResponse.java index d86a7635..f8e7b23a 100644 --- a/client/src/main/java/com/fastcomments/model/GetTicketsResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetTicketsResponse.java @@ -52,7 +52,7 @@ /** * GetTicketsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetTicketsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("tickets").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tickets` to be an array in the JSON string but got `%s`", jsonObj.get("tickets").toString())); + if (jsonObj.get("tickets") != null) { + if (!jsonObj.get("tickets").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tickets` to be an array in the JSON string but got `%s`", jsonObj.get("tickets").toString())); + } + JsonArray jsonArraytickets = jsonObj.getAsJsonArray("tickets"); + // validate the required field `tickets` (array) + for (int i = 0; i < jsonArraytickets.size(); i++) { + APITicket.validateJsonElement(jsonArraytickets.get(i)); + } } - - JsonArray jsonArraytickets = jsonObj.getAsJsonArray("tickets"); - // validate the required field `tickets` (array) - for (int i = 0; i < jsonArraytickets.size(); i++) { - APITicket.validateJsonElement(jsonArraytickets.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetTranslationsResponse.java b/client/src/main/java/com/fastcomments/model/GetTranslationsResponse.java new file mode 100644 index 00000000..7773d3a4 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetTranslationsResponse.java @@ -0,0 +1,326 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GetTranslationsResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetTranslationsResponse { + public static final String SERIALIZED_NAME_TRANSLATIONS = "translations"; + @SerializedName(SERIALIZED_NAME_TRANSLATIONS) + @javax.annotation.Nonnull + private Map translations = new HashMap<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public GetTranslationsResponse() { + } + + public GetTranslationsResponse translations(@javax.annotation.Nonnull Map translations) { + this.translations = translations; + return this; + } + + public GetTranslationsResponse putTranslationsItem(String key, String translationsItem) { + if (this.translations == null) { + this.translations = new HashMap<>(); + } + this.translations.put(key, translationsItem); + return this; + } + + /** + * Construct a type with a set of properties K of type T + * @return translations + */ + @javax.annotation.Nonnull + public Map getTranslations() { + return translations; + } + + public void setTranslations(@javax.annotation.Nonnull Map translations) { + this.translations = translations; + } + + + public GetTranslationsResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GetTranslationsResponse instance itself + */ + public GetTranslationsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetTranslationsResponse getTranslationsResponse = (GetTranslationsResponse) o; + return Objects.equals(this.translations, getTranslationsResponse.translations) && + Objects.equals(this.status, getTranslationsResponse.status)&& + Objects.equals(this.additionalProperties, getTranslationsResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(translations, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetTranslationsResponse {\n"); + sb.append(" translations: ").append(toIndentedString(translations)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("translations", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("translations", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetTranslationsResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetTranslationsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetTranslationsResponse is not found in the empty JSON string", GetTranslationsResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GetTranslationsResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetTranslationsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetTranslationsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetTranslationsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetTranslationsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GetTranslationsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GetTranslationsResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetTranslationsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTranslationsResponse + * @throws IOException if the JSON string is invalid with respect to GetTranslationsResponse + */ + public static GetTranslationsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetTranslationsResponse.class); + } + + /** + * Convert an instance of GetTranslationsResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetUser200Response.java b/client/src/main/java/com/fastcomments/model/GetUser200Response.java deleted file mode 100644 index fc2efc4b..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUser200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetUserResponse; -import com.fastcomments.model.User; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetUser200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUser200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUser200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUser200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetUserResponse = gson.getDelegateAdapter(this, TypeToken.get(GetUserResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUser200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetUserResponse` - if (value.getActualInstance() instanceof GetUserResponse) { - JsonElement element = adapterGetUserResponse.toJsonTree((GetUserResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetUserResponse"); - } - - @Override - public GetUser200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetUserResponse - try { - // validate the JSON object to see if any exception is thrown - GetUserResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetUserResponse; - GetUser200Response ret = new GetUser200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetUserResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetUser200Response ret = new GetUser200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetUser200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetUser200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetUser200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetUserResponse", GetUserResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUser200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetUserResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetUserResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetUserResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetUserResponse - * - * @return The actual instance (APIError, GetUserResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetUserResponse`. If the actual instance is not `GetUserResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetUserResponse` - * @throws ClassCastException if the instance is not `GetUserResponse` - */ - public GetUserResponse getGetUserResponse() throws ClassCastException { - return (GetUserResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetUser200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetUserResponse - try { - GetUserResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetUser200Response with anyOf schemas: APIError, GetUserResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetUser200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUser200Response - * @throws IOException if the JSON string is invalid with respect to GetUser200Response - */ - public static GetUser200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUser200Response.class); - } - - /** - * Convert an instance of GetUser200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetUserBadge200Response.java b/client/src/main/java/com/fastcomments/model/GetUserBadge200Response.java deleted file mode 100644 index 26821c60..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserBadge200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIGetUserBadgeResponse; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.UserBadge; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetUserBadge200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserBadge200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserBadge200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserBadge200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAPIGetUserBadgeResponse = gson.getDelegateAdapter(this, TypeToken.get(APIGetUserBadgeResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserBadge200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `APIGetUserBadgeResponse` - if (value.getActualInstance() instanceof APIGetUserBadgeResponse) { - JsonElement element = adapterAPIGetUserBadgeResponse.toJsonTree((APIGetUserBadgeResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, APIGetUserBadgeResponse"); - } - - @Override - public GetUserBadge200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize APIGetUserBadgeResponse - try { - // validate the JSON object to see if any exception is thrown - APIGetUserBadgeResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAPIGetUserBadgeResponse; - GetUserBadge200Response ret = new GetUserBadge200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIGetUserBadgeResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIGetUserBadgeResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetUserBadge200Response ret = new GetUserBadge200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetUserBadge200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetUserBadge200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetUserBadge200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIGetUserBadgeResponse", APIGetUserBadgeResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserBadge200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, APIGetUserBadgeResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof APIGetUserBadgeResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, APIGetUserBadgeResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, APIGetUserBadgeResponse - * - * @return The actual instance (APIError, APIGetUserBadgeResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `APIGetUserBadgeResponse`. If the actual instance is not `APIGetUserBadgeResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIGetUserBadgeResponse` - * @throws ClassCastException if the instance is not `APIGetUserBadgeResponse` - */ - public APIGetUserBadgeResponse getAPIGetUserBadgeResponse() throws ClassCastException { - return (APIGetUserBadgeResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetUserBadge200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with APIGetUserBadgeResponse - try { - APIGetUserBadgeResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIGetUserBadgeResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetUserBadge200Response with anyOf schemas: APIError, APIGetUserBadgeResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetUserBadge200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserBadge200Response - * @throws IOException if the JSON string is invalid with respect to GetUserBadge200Response - */ - public static GetUserBadge200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserBadge200Response.class); - } - - /** - * Convert an instance of GetUserBadge200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressById200Response.java b/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressById200Response.java deleted file mode 100644 index ac1649fe..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressById200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIGetUserBadgeProgressResponse; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.UserBadgeProgress; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetUserBadgeProgressById200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserBadgeProgressById200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserBadgeProgressById200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserBadgeProgressById200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAPIGetUserBadgeProgressResponse = gson.getDelegateAdapter(this, TypeToken.get(APIGetUserBadgeProgressResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserBadgeProgressById200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `APIGetUserBadgeProgressResponse` - if (value.getActualInstance() instanceof APIGetUserBadgeProgressResponse) { - JsonElement element = adapterAPIGetUserBadgeProgressResponse.toJsonTree((APIGetUserBadgeProgressResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, APIGetUserBadgeProgressResponse"); - } - - @Override - public GetUserBadgeProgressById200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize APIGetUserBadgeProgressResponse - try { - // validate the JSON object to see if any exception is thrown - APIGetUserBadgeProgressResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAPIGetUserBadgeProgressResponse; - GetUserBadgeProgressById200Response ret = new GetUserBadgeProgressById200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIGetUserBadgeProgressResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIGetUserBadgeProgressResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetUserBadgeProgressById200Response ret = new GetUserBadgeProgressById200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetUserBadgeProgressById200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetUserBadgeProgressById200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetUserBadgeProgressById200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIGetUserBadgeProgressResponse", APIGetUserBadgeProgressResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserBadgeProgressById200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, APIGetUserBadgeProgressResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof APIGetUserBadgeProgressResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, APIGetUserBadgeProgressResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, APIGetUserBadgeProgressResponse - * - * @return The actual instance (APIError, APIGetUserBadgeProgressResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `APIGetUserBadgeProgressResponse`. If the actual instance is not `APIGetUserBadgeProgressResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIGetUserBadgeProgressResponse` - * @throws ClassCastException if the instance is not `APIGetUserBadgeProgressResponse` - */ - public APIGetUserBadgeProgressResponse getAPIGetUserBadgeProgressResponse() throws ClassCastException { - return (APIGetUserBadgeProgressResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetUserBadgeProgressById200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with APIGetUserBadgeProgressResponse - try { - APIGetUserBadgeProgressResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIGetUserBadgeProgressResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetUserBadgeProgressById200Response with anyOf schemas: APIError, APIGetUserBadgeProgressResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetUserBadgeProgressById200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserBadgeProgressById200Response - * @throws IOException if the JSON string is invalid with respect to GetUserBadgeProgressById200Response - */ - public static GetUserBadgeProgressById200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserBadgeProgressById200Response.class); - } - - /** - * Convert an instance of GetUserBadgeProgressById200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressList200Response.java b/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressList200Response.java deleted file mode 100644 index 22d804b4..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressList200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIGetUserBadgeProgressListResponse; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.UserBadgeProgress; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetUserBadgeProgressList200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserBadgeProgressList200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserBadgeProgressList200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserBadgeProgressList200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAPIGetUserBadgeProgressListResponse = gson.getDelegateAdapter(this, TypeToken.get(APIGetUserBadgeProgressListResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserBadgeProgressList200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `APIGetUserBadgeProgressListResponse` - if (value.getActualInstance() instanceof APIGetUserBadgeProgressListResponse) { - JsonElement element = adapterAPIGetUserBadgeProgressListResponse.toJsonTree((APIGetUserBadgeProgressListResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, APIGetUserBadgeProgressListResponse"); - } - - @Override - public GetUserBadgeProgressList200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize APIGetUserBadgeProgressListResponse - try { - // validate the JSON object to see if any exception is thrown - APIGetUserBadgeProgressListResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAPIGetUserBadgeProgressListResponse; - GetUserBadgeProgressList200Response ret = new GetUserBadgeProgressList200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIGetUserBadgeProgressListResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIGetUserBadgeProgressListResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetUserBadgeProgressList200Response ret = new GetUserBadgeProgressList200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetUserBadgeProgressList200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetUserBadgeProgressList200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetUserBadgeProgressList200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIGetUserBadgeProgressListResponse", APIGetUserBadgeProgressListResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserBadgeProgressList200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, APIGetUserBadgeProgressListResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof APIGetUserBadgeProgressListResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, APIGetUserBadgeProgressListResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, APIGetUserBadgeProgressListResponse - * - * @return The actual instance (APIError, APIGetUserBadgeProgressListResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `APIGetUserBadgeProgressListResponse`. If the actual instance is not `APIGetUserBadgeProgressListResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIGetUserBadgeProgressListResponse` - * @throws ClassCastException if the instance is not `APIGetUserBadgeProgressListResponse` - */ - public APIGetUserBadgeProgressListResponse getAPIGetUserBadgeProgressListResponse() throws ClassCastException { - return (APIGetUserBadgeProgressListResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetUserBadgeProgressList200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with APIGetUserBadgeProgressListResponse - try { - APIGetUserBadgeProgressListResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIGetUserBadgeProgressListResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetUserBadgeProgressList200Response with anyOf schemas: APIError, APIGetUserBadgeProgressListResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetUserBadgeProgressList200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserBadgeProgressList200Response - * @throws IOException if the JSON string is invalid with respect to GetUserBadgeProgressList200Response - */ - public static GetUserBadgeProgressList200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserBadgeProgressList200Response.class); - } - - /** - * Convert an instance of GetUserBadgeProgressList200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetUserInternalProfileResponse.java b/client/src/main/java/com/fastcomments/model/GetUserInternalProfileResponse.java new file mode 100644 index 00000000..9be39a22 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserInternalProfileResponse.java @@ -0,0 +1,319 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.GetUserInternalProfileResponseProfile; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GetUserInternalProfileResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetUserInternalProfileResponse { + public static final String SERIALIZED_NAME_PROFILE = "profile"; + @SerializedName(SERIALIZED_NAME_PROFILE) + @javax.annotation.Nonnull + private GetUserInternalProfileResponseProfile profile; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public GetUserInternalProfileResponse() { + } + + public GetUserInternalProfileResponse profile(@javax.annotation.Nonnull GetUserInternalProfileResponseProfile profile) { + this.profile = profile; + return this; + } + + /** + * Get profile + * @return profile + */ + @javax.annotation.Nonnull + public GetUserInternalProfileResponseProfile getProfile() { + return profile; + } + + public void setProfile(@javax.annotation.Nonnull GetUserInternalProfileResponseProfile profile) { + this.profile = profile; + } + + + public GetUserInternalProfileResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GetUserInternalProfileResponse instance itself + */ + public GetUserInternalProfileResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetUserInternalProfileResponse getUserInternalProfileResponse = (GetUserInternalProfileResponse) o; + return Objects.equals(this.profile, getUserInternalProfileResponse.profile) && + Objects.equals(this.status, getUserInternalProfileResponse.status)&& + Objects.equals(this.additionalProperties, getUserInternalProfileResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(profile, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetUserInternalProfileResponse {\n"); + sb.append(" profile: ").append(toIndentedString(profile)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("profile", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("profile", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetUserInternalProfileResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetUserInternalProfileResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetUserInternalProfileResponse is not found in the empty JSON string", GetUserInternalProfileResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GetUserInternalProfileResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `profile` + GetUserInternalProfileResponseProfile.validateJsonElement(jsonObj.get("profile")); + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserInternalProfileResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserInternalProfileResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetUserInternalProfileResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUserInternalProfileResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GetUserInternalProfileResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GetUserInternalProfileResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetUserInternalProfileResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserInternalProfileResponse + * @throws IOException if the JSON string is invalid with respect to GetUserInternalProfileResponse + */ + public static GetUserInternalProfileResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserInternalProfileResponse.class); + } + + /** + * Convert an instance of GetUserInternalProfileResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetUserInternalProfileResponseProfile.java b/client/src/main/java/com/fastcomments/model/GetUserInternalProfileResponseProfile.java new file mode 100644 index 00000000..48107c73 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserInternalProfileResponseProfile.java @@ -0,0 +1,739 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GetUserInternalProfileResponseProfile + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetUserInternalProfileResponseProfile { + public static final String SERIALIZED_NAME_COMMENTER_NAME = "commenterName"; + @SerializedName(SERIALIZED_NAME_COMMENTER_NAME) + @javax.annotation.Nullable + private String commenterName; + + public static final String SERIALIZED_NAME_FIRST_COMMENT_DATE = "firstCommentDate"; + @SerializedName(SERIALIZED_NAME_FIRST_COMMENT_DATE) + @javax.annotation.Nullable + private OffsetDateTime firstCommentDate; + + public static final String SERIALIZED_NAME_IP_HASH = "ipHash"; + @SerializedName(SERIALIZED_NAME_IP_HASH) + @javax.annotation.Nullable + private String ipHash; + + public static final String SERIALIZED_NAME_COUNTRY_FLAG = "countryFlag"; + @SerializedName(SERIALIZED_NAME_COUNTRY_FLAG) + @javax.annotation.Nullable + private String countryFlag; + + public static final String SERIALIZED_NAME_COUNTRY_CODE = "countryCode"; + @SerializedName(SERIALIZED_NAME_COUNTRY_CODE) + @javax.annotation.Nullable + private String countryCode; + + public static final String SERIALIZED_NAME_WEBSITE_URL = "websiteUrl"; + @SerializedName(SERIALIZED_NAME_WEBSITE_URL) + @javax.annotation.Nullable + private String websiteUrl; + + public static final String SERIALIZED_NAME_BIO = "bio"; + @SerializedName(SERIALIZED_NAME_BIO) + @javax.annotation.Nullable + private String bio; + + public static final String SERIALIZED_NAME_KARMA = "karma"; + @SerializedName(SERIALIZED_NAME_KARMA) + @javax.annotation.Nullable + private Double karma; + + public static final String SERIALIZED_NAME_LOCALE = "locale"; + @SerializedName(SERIALIZED_NAME_LOCALE) + @javax.annotation.Nullable + private String locale; + + public static final String SERIALIZED_NAME_VERIFIED = "verified"; + @SerializedName(SERIALIZED_NAME_VERIFIED) + @javax.annotation.Nullable + private Boolean verified; + + public static final String SERIALIZED_NAME_AVATAR_SRC = "avatarSrc"; + @SerializedName(SERIALIZED_NAME_AVATAR_SRC) + @javax.annotation.Nullable + private String avatarSrc; + + public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName"; + @SerializedName(SERIALIZED_NAME_DISPLAY_NAME) + @javax.annotation.Nullable + private String displayName; + + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable + private String username; + + public static final String SERIALIZED_NAME_COMMENTER_EMAIL = "commenterEmail"; + @SerializedName(SERIALIZED_NAME_COMMENTER_EMAIL) + @javax.annotation.Nullable + private String commenterEmail; + + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable + private String email; + + public static final String SERIALIZED_NAME_ANON_USER_ID = "anonUserId"; + @SerializedName(SERIALIZED_NAME_ANON_USER_ID) + @javax.annotation.Nullable + private String anonUserId; + + public static final String SERIALIZED_NAME_USER_ID = "userId"; + @SerializedName(SERIALIZED_NAME_USER_ID) + @javax.annotation.Nullable + private String userId; + + public GetUserInternalProfileResponseProfile() { + } + + public GetUserInternalProfileResponseProfile commenterName(@javax.annotation.Nullable String commenterName) { + this.commenterName = commenterName; + return this; + } + + /** + * Get commenterName + * @return commenterName + */ + @javax.annotation.Nullable + public String getCommenterName() { + return commenterName; + } + + public void setCommenterName(@javax.annotation.Nullable String commenterName) { + this.commenterName = commenterName; + } + + + public GetUserInternalProfileResponseProfile firstCommentDate(@javax.annotation.Nullable OffsetDateTime firstCommentDate) { + this.firstCommentDate = firstCommentDate; + return this; + } + + /** + * Get firstCommentDate + * @return firstCommentDate + */ + @javax.annotation.Nullable + public OffsetDateTime getFirstCommentDate() { + return firstCommentDate; + } + + public void setFirstCommentDate(@javax.annotation.Nullable OffsetDateTime firstCommentDate) { + this.firstCommentDate = firstCommentDate; + } + + + public GetUserInternalProfileResponseProfile ipHash(@javax.annotation.Nullable String ipHash) { + this.ipHash = ipHash; + return this; + } + + /** + * Get ipHash + * @return ipHash + */ + @javax.annotation.Nullable + public String getIpHash() { + return ipHash; + } + + public void setIpHash(@javax.annotation.Nullable String ipHash) { + this.ipHash = ipHash; + } + + + public GetUserInternalProfileResponseProfile countryFlag(@javax.annotation.Nullable String countryFlag) { + this.countryFlag = countryFlag; + return this; + } + + /** + * Get countryFlag + * @return countryFlag + */ + @javax.annotation.Nullable + public String getCountryFlag() { + return countryFlag; + } + + public void setCountryFlag(@javax.annotation.Nullable String countryFlag) { + this.countryFlag = countryFlag; + } + + + public GetUserInternalProfileResponseProfile countryCode(@javax.annotation.Nullable String countryCode) { + this.countryCode = countryCode; + return this; + } + + /** + * Get countryCode + * @return countryCode + */ + @javax.annotation.Nullable + public String getCountryCode() { + return countryCode; + } + + public void setCountryCode(@javax.annotation.Nullable String countryCode) { + this.countryCode = countryCode; + } + + + public GetUserInternalProfileResponseProfile websiteUrl(@javax.annotation.Nullable String websiteUrl) { + this.websiteUrl = websiteUrl; + return this; + } + + /** + * Get websiteUrl + * @return websiteUrl + */ + @javax.annotation.Nullable + public String getWebsiteUrl() { + return websiteUrl; + } + + public void setWebsiteUrl(@javax.annotation.Nullable String websiteUrl) { + this.websiteUrl = websiteUrl; + } + + + public GetUserInternalProfileResponseProfile bio(@javax.annotation.Nullable String bio) { + this.bio = bio; + return this; + } + + /** + * Get bio + * @return bio + */ + @javax.annotation.Nullable + public String getBio() { + return bio; + } + + public void setBio(@javax.annotation.Nullable String bio) { + this.bio = bio; + } + + + public GetUserInternalProfileResponseProfile karma(@javax.annotation.Nullable Double karma) { + this.karma = karma; + return this; + } + + /** + * Get karma + * @return karma + */ + @javax.annotation.Nullable + public Double getKarma() { + return karma; + } + + public void setKarma(@javax.annotation.Nullable Double karma) { + this.karma = karma; + } + + + public GetUserInternalProfileResponseProfile locale(@javax.annotation.Nullable String locale) { + this.locale = locale; + return this; + } + + /** + * Get locale + * @return locale + */ + @javax.annotation.Nullable + public String getLocale() { + return locale; + } + + public void setLocale(@javax.annotation.Nullable String locale) { + this.locale = locale; + } + + + public GetUserInternalProfileResponseProfile verified(@javax.annotation.Nullable Boolean verified) { + this.verified = verified; + return this; + } + + /** + * Get verified + * @return verified + */ + @javax.annotation.Nullable + public Boolean getVerified() { + return verified; + } + + public void setVerified(@javax.annotation.Nullable Boolean verified) { + this.verified = verified; + } + + + public GetUserInternalProfileResponseProfile avatarSrc(@javax.annotation.Nullable String avatarSrc) { + this.avatarSrc = avatarSrc; + return this; + } + + /** + * Get avatarSrc + * @return avatarSrc + */ + @javax.annotation.Nullable + public String getAvatarSrc() { + return avatarSrc; + } + + public void setAvatarSrc(@javax.annotation.Nullable String avatarSrc) { + this.avatarSrc = avatarSrc; + } + + + public GetUserInternalProfileResponseProfile displayName(@javax.annotation.Nullable String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get displayName + * @return displayName + */ + @javax.annotation.Nullable + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(@javax.annotation.Nullable String displayName) { + this.displayName = displayName; + } + + + public GetUserInternalProfileResponseProfile username(@javax.annotation.Nullable String username) { + this.username = username; + return this; + } + + /** + * Get username + * @return username + */ + @javax.annotation.Nullable + public String getUsername() { + return username; + } + + public void setUsername(@javax.annotation.Nullable String username) { + this.username = username; + } + + + public GetUserInternalProfileResponseProfile commenterEmail(@javax.annotation.Nullable String commenterEmail) { + this.commenterEmail = commenterEmail; + return this; + } + + /** + * Get commenterEmail + * @return commenterEmail + */ + @javax.annotation.Nullable + public String getCommenterEmail() { + return commenterEmail; + } + + public void setCommenterEmail(@javax.annotation.Nullable String commenterEmail) { + this.commenterEmail = commenterEmail; + } + + + public GetUserInternalProfileResponseProfile email(@javax.annotation.Nullable String email) { + this.email = email; + return this; + } + + /** + * Get email + * @return email + */ + @javax.annotation.Nullable + public String getEmail() { + return email; + } + + public void setEmail(@javax.annotation.Nullable String email) { + this.email = email; + } + + + public GetUserInternalProfileResponseProfile anonUserId(@javax.annotation.Nullable String anonUserId) { + this.anonUserId = anonUserId; + return this; + } + + /** + * Get anonUserId + * @return anonUserId + */ + @javax.annotation.Nullable + public String getAnonUserId() { + return anonUserId; + } + + public void setAnonUserId(@javax.annotation.Nullable String anonUserId) { + this.anonUserId = anonUserId; + } + + + public GetUserInternalProfileResponseProfile userId(@javax.annotation.Nullable String userId) { + this.userId = userId; + return this; + } + + /** + * Get userId + * @return userId + */ + @javax.annotation.Nullable + public String getUserId() { + return userId; + } + + public void setUserId(@javax.annotation.Nullable String userId) { + this.userId = userId; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GetUserInternalProfileResponseProfile instance itself + */ + public GetUserInternalProfileResponseProfile putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetUserInternalProfileResponseProfile getUserInternalProfileResponseProfile = (GetUserInternalProfileResponseProfile) o; + return Objects.equals(this.commenterName, getUserInternalProfileResponseProfile.commenterName) && + Objects.equals(this.firstCommentDate, getUserInternalProfileResponseProfile.firstCommentDate) && + Objects.equals(this.ipHash, getUserInternalProfileResponseProfile.ipHash) && + Objects.equals(this.countryFlag, getUserInternalProfileResponseProfile.countryFlag) && + Objects.equals(this.countryCode, getUserInternalProfileResponseProfile.countryCode) && + Objects.equals(this.websiteUrl, getUserInternalProfileResponseProfile.websiteUrl) && + Objects.equals(this.bio, getUserInternalProfileResponseProfile.bio) && + Objects.equals(this.karma, getUserInternalProfileResponseProfile.karma) && + Objects.equals(this.locale, getUserInternalProfileResponseProfile.locale) && + Objects.equals(this.verified, getUserInternalProfileResponseProfile.verified) && + Objects.equals(this.avatarSrc, getUserInternalProfileResponseProfile.avatarSrc) && + Objects.equals(this.displayName, getUserInternalProfileResponseProfile.displayName) && + Objects.equals(this.username, getUserInternalProfileResponseProfile.username) && + Objects.equals(this.commenterEmail, getUserInternalProfileResponseProfile.commenterEmail) && + Objects.equals(this.email, getUserInternalProfileResponseProfile.email) && + Objects.equals(this.anonUserId, getUserInternalProfileResponseProfile.anonUserId) && + Objects.equals(this.userId, getUserInternalProfileResponseProfile.userId)&& + Objects.equals(this.additionalProperties, getUserInternalProfileResponseProfile.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(commenterName, firstCommentDate, ipHash, countryFlag, countryCode, websiteUrl, bio, karma, locale, verified, avatarSrc, displayName, username, commenterEmail, email, anonUserId, userId, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetUserInternalProfileResponseProfile {\n"); + sb.append(" commenterName: ").append(toIndentedString(commenterName)).append("\n"); + sb.append(" firstCommentDate: ").append(toIndentedString(firstCommentDate)).append("\n"); + sb.append(" ipHash: ").append(toIndentedString(ipHash)).append("\n"); + sb.append(" countryFlag: ").append(toIndentedString(countryFlag)).append("\n"); + sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); + sb.append(" websiteUrl: ").append(toIndentedString(websiteUrl)).append("\n"); + sb.append(" bio: ").append(toIndentedString(bio)).append("\n"); + sb.append(" karma: ").append(toIndentedString(karma)).append("\n"); + sb.append(" locale: ").append(toIndentedString(locale)).append("\n"); + sb.append(" verified: ").append(toIndentedString(verified)).append("\n"); + sb.append(" avatarSrc: ").append(toIndentedString(avatarSrc)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" commenterEmail: ").append(toIndentedString(commenterEmail)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" anonUserId: ").append(toIndentedString(anonUserId)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("commenterName", "firstCommentDate", "ipHash", "countryFlag", "countryCode", "websiteUrl", "bio", "karma", "locale", "verified", "avatarSrc", "displayName", "username", "commenterEmail", "email", "anonUserId", "userId")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetUserInternalProfileResponseProfile + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetUserInternalProfileResponseProfile.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetUserInternalProfileResponseProfile is not found in the empty JSON string", GetUserInternalProfileResponseProfile.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("commenterName") != null && !jsonObj.get("commenterName").isJsonNull()) && !jsonObj.get("commenterName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `commenterName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("commenterName").toString())); + } + if ((jsonObj.get("ipHash") != null && !jsonObj.get("ipHash").isJsonNull()) && !jsonObj.get("ipHash").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `ipHash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ipHash").toString())); + } + if ((jsonObj.get("countryFlag") != null && !jsonObj.get("countryFlag").isJsonNull()) && !jsonObj.get("countryFlag").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `countryFlag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("countryFlag").toString())); + } + if ((jsonObj.get("countryCode") != null && !jsonObj.get("countryCode").isJsonNull()) && !jsonObj.get("countryCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `countryCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("countryCode").toString())); + } + if ((jsonObj.get("websiteUrl") != null && !jsonObj.get("websiteUrl").isJsonNull()) && !jsonObj.get("websiteUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `websiteUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("websiteUrl").toString())); + } + if ((jsonObj.get("bio") != null && !jsonObj.get("bio").isJsonNull()) && !jsonObj.get("bio").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `bio` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bio").toString())); + } + if ((jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) && !jsonObj.get("locale").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `locale` to be a primitive type in the JSON string but got `%s`", jsonObj.get("locale").toString())); + } + if ((jsonObj.get("avatarSrc") != null && !jsonObj.get("avatarSrc").isJsonNull()) && !jsonObj.get("avatarSrc").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `avatarSrc` to be a primitive type in the JSON string but got `%s`", jsonObj.get("avatarSrc").toString())); + } + if ((jsonObj.get("displayName") != null && !jsonObj.get("displayName").isJsonNull()) && !jsonObj.get("displayName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); + } + if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + } + if ((jsonObj.get("commenterEmail") != null && !jsonObj.get("commenterEmail").isJsonNull()) && !jsonObj.get("commenterEmail").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `commenterEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("commenterEmail").toString())); + } + if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); + } + if ((jsonObj.get("anonUserId") != null && !jsonObj.get("anonUserId").isJsonNull()) && !jsonObj.get("anonUserId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `anonUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("anonUserId").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserInternalProfileResponseProfile.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserInternalProfileResponseProfile' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetUserInternalProfileResponseProfile.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUserInternalProfileResponseProfile value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GetUserInternalProfileResponseProfile read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GetUserInternalProfileResponseProfile instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetUserInternalProfileResponseProfile given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserInternalProfileResponseProfile + * @throws IOException if the JSON string is invalid with respect to GetUserInternalProfileResponseProfile + */ + public static GetUserInternalProfileResponseProfile fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserInternalProfileResponseProfile.class); + } + + /** + * Convert an instance of GetUserInternalProfileResponseProfile to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetUserManualBadgesResponse.java b/client/src/main/java/com/fastcomments/model/GetUserManualBadgesResponse.java new file mode 100644 index 00000000..01b52621 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserManualBadgesResponse.java @@ -0,0 +1,337 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.UserBadge; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GetUserManualBadgesResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetUserManualBadgesResponse { + public static final String SERIALIZED_NAME_BADGES = "badges"; + @SerializedName(SERIALIZED_NAME_BADGES) + @javax.annotation.Nonnull + private List badges = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public GetUserManualBadgesResponse() { + } + + public GetUserManualBadgesResponse badges(@javax.annotation.Nonnull List badges) { + this.badges = badges; + return this; + } + + public GetUserManualBadgesResponse addBadgesItem(UserBadge badgesItem) { + if (this.badges == null) { + this.badges = new ArrayList<>(); + } + this.badges.add(badgesItem); + return this; + } + + /** + * Get badges + * @return badges + */ + @javax.annotation.Nonnull + public List getBadges() { + return badges; + } + + public void setBadges(@javax.annotation.Nonnull List badges) { + this.badges = badges; + } + + + public GetUserManualBadgesResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GetUserManualBadgesResponse instance itself + */ + public GetUserManualBadgesResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetUserManualBadgesResponse getUserManualBadgesResponse = (GetUserManualBadgesResponse) o; + return Objects.equals(this.badges, getUserManualBadgesResponse.badges) && + Objects.equals(this.status, getUserManualBadgesResponse.status)&& + Objects.equals(this.additionalProperties, getUserManualBadgesResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(badges, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetUserManualBadgesResponse {\n"); + sb.append(" badges: ").append(toIndentedString(badges)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("badges", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("badges", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetUserManualBadgesResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetUserManualBadgesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetUserManualBadgesResponse is not found in the empty JSON string", GetUserManualBadgesResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GetUserManualBadgesResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("badges") != null) { + if (!jsonObj.get("badges").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `badges` to be an array in the JSON string but got `%s`", jsonObj.get("badges").toString())); + } + JsonArray jsonArraybadges = jsonObj.getAsJsonArray("badges"); + // validate the required field `badges` (array) + for (int i = 0; i < jsonArraybadges.size(); i++) { + UserBadge.validateJsonElement(jsonArraybadges.get(i)); + } + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserManualBadgesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserManualBadgesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetUserManualBadgesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUserManualBadgesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GetUserManualBadgesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GetUserManualBadgesResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetUserManualBadgesResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserManualBadgesResponse + * @throws IOException if the JSON string is invalid with respect to GetUserManualBadgesResponse + */ + public static GetUserManualBadgesResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserManualBadgesResponse.class); + } + + /** + * Convert an instance of GetUserManualBadgesResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetUserNotificationCount200Response.java b/client/src/main/java/com/fastcomments/model/GetUserNotificationCount200Response.java deleted file mode 100644 index f2e302ce..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserNotificationCount200Response.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetUserNotificationCountResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetUserNotificationCount200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserNotificationCount200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserNotificationCount200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserNotificationCount200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetUserNotificationCountResponse = gson.getDelegateAdapter(this, TypeToken.get(GetUserNotificationCountResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserNotificationCount200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetUserNotificationCountResponse` - if (value.getActualInstance() instanceof GetUserNotificationCountResponse) { - JsonElement element = adapterGetUserNotificationCountResponse.toJsonTree((GetUserNotificationCountResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetUserNotificationCountResponse"); - } - - @Override - public GetUserNotificationCount200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetUserNotificationCountResponse - try { - // validate the JSON object to see if any exception is thrown - GetUserNotificationCountResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetUserNotificationCountResponse; - GetUserNotificationCount200Response ret = new GetUserNotificationCount200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserNotificationCountResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetUserNotificationCountResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetUserNotificationCount200Response ret = new GetUserNotificationCount200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetUserNotificationCount200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetUserNotificationCount200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetUserNotificationCount200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetUserNotificationCountResponse", GetUserNotificationCountResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserNotificationCount200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetUserNotificationCountResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetUserNotificationCountResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetUserNotificationCountResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetUserNotificationCountResponse - * - * @return The actual instance (APIError, GetUserNotificationCountResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetUserNotificationCountResponse`. If the actual instance is not `GetUserNotificationCountResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetUserNotificationCountResponse` - * @throws ClassCastException if the instance is not `GetUserNotificationCountResponse` - */ - public GetUserNotificationCountResponse getGetUserNotificationCountResponse() throws ClassCastException { - return (GetUserNotificationCountResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetUserNotificationCount200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetUserNotificationCountResponse - try { - GetUserNotificationCountResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserNotificationCountResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetUserNotificationCount200Response with anyOf schemas: APIError, GetUserNotificationCountResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetUserNotificationCount200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserNotificationCount200Response - * @throws IOException if the JSON string is invalid with respect to GetUserNotificationCount200Response - */ - public static GetUserNotificationCount200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserNotificationCount200Response.class); - } - - /** - * Convert an instance of GetUserNotificationCount200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetUserNotificationCountResponse.java b/client/src/main/java/com/fastcomments/model/GetUserNotificationCountResponse.java index b890b8d6..62ce47ef 100644 --- a/client/src/main/java/com/fastcomments/model/GetUserNotificationCountResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetUserNotificationCountResponse.java @@ -49,7 +49,7 @@ /** * GetUserNotificationCountResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetUserNotificationCountResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -136,10 +136,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetUserNotifications200Response.java b/client/src/main/java/com/fastcomments/model/GetUserNotifications200Response.java deleted file mode 100644 index 90935320..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserNotifications200Response.java +++ /dev/null @@ -1,274 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetMyNotificationsResponse; -import com.fastcomments.model.RenderableUserNotification; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetUserNotifications200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserNotifications200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserNotifications200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserNotifications200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetMyNotificationsResponse = gson.getDelegateAdapter(this, TypeToken.get(GetMyNotificationsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserNotifications200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetMyNotificationsResponse` - if (value.getActualInstance() instanceof GetMyNotificationsResponse) { - JsonElement element = adapterGetMyNotificationsResponse.toJsonTree((GetMyNotificationsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetMyNotificationsResponse"); - } - - @Override - public GetUserNotifications200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetMyNotificationsResponse - try { - // validate the JSON object to see if any exception is thrown - GetMyNotificationsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetMyNotificationsResponse; - GetUserNotifications200Response ret = new GetUserNotifications200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetMyNotificationsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetMyNotificationsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetUserNotifications200Response ret = new GetUserNotifications200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetUserNotifications200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetUserNotifications200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetUserNotifications200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetMyNotificationsResponse", GetMyNotificationsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserNotifications200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetMyNotificationsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetMyNotificationsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetMyNotificationsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetMyNotificationsResponse - * - * @return The actual instance (APIError, GetMyNotificationsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetMyNotificationsResponse`. If the actual instance is not `GetMyNotificationsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetMyNotificationsResponse` - * @throws ClassCastException if the instance is not `GetMyNotificationsResponse` - */ - public GetMyNotificationsResponse getGetMyNotificationsResponse() throws ClassCastException { - return (GetMyNotificationsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetUserNotifications200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetMyNotificationsResponse - try { - GetMyNotificationsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetMyNotificationsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetUserNotifications200Response with anyOf schemas: APIError, GetMyNotificationsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetUserNotifications200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserNotifications200Response - * @throws IOException if the JSON string is invalid with respect to GetUserNotifications200Response - */ - public static GetUserNotifications200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserNotifications200Response.class); - } - - /** - * Convert an instance of GetUserNotifications200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetUserPresenceStatuses200Response.java b/client/src/main/java/com/fastcomments/model/GetUserPresenceStatuses200Response.java deleted file mode 100644 index e920dbf4..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserPresenceStatuses200Response.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetUserPresenceStatusesResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetUserPresenceStatuses200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserPresenceStatuses200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserPresenceStatuses200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserPresenceStatuses200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetUserPresenceStatusesResponse = gson.getDelegateAdapter(this, TypeToken.get(GetUserPresenceStatusesResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserPresenceStatuses200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetUserPresenceStatusesResponse` - if (value.getActualInstance() instanceof GetUserPresenceStatusesResponse) { - JsonElement element = adapterGetUserPresenceStatusesResponse.toJsonTree((GetUserPresenceStatusesResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetUserPresenceStatusesResponse"); - } - - @Override - public GetUserPresenceStatuses200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetUserPresenceStatusesResponse - try { - // validate the JSON object to see if any exception is thrown - GetUserPresenceStatusesResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetUserPresenceStatusesResponse; - GetUserPresenceStatuses200Response ret = new GetUserPresenceStatuses200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserPresenceStatusesResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetUserPresenceStatusesResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetUserPresenceStatuses200Response ret = new GetUserPresenceStatuses200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetUserPresenceStatuses200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetUserPresenceStatuses200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetUserPresenceStatuses200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetUserPresenceStatusesResponse", GetUserPresenceStatusesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserPresenceStatuses200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetUserPresenceStatusesResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetUserPresenceStatusesResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetUserPresenceStatusesResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetUserPresenceStatusesResponse - * - * @return The actual instance (APIError, GetUserPresenceStatusesResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetUserPresenceStatusesResponse`. If the actual instance is not `GetUserPresenceStatusesResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetUserPresenceStatusesResponse` - * @throws ClassCastException if the instance is not `GetUserPresenceStatusesResponse` - */ - public GetUserPresenceStatusesResponse getGetUserPresenceStatusesResponse() throws ClassCastException { - return (GetUserPresenceStatusesResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetUserPresenceStatuses200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetUserPresenceStatusesResponse - try { - GetUserPresenceStatusesResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserPresenceStatusesResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetUserPresenceStatuses200Response with anyOf schemas: APIError, GetUserPresenceStatusesResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetUserPresenceStatuses200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserPresenceStatuses200Response - * @throws IOException if the JSON string is invalid with respect to GetUserPresenceStatuses200Response - */ - public static GetUserPresenceStatuses200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserPresenceStatuses200Response.class); - } - - /** - * Convert an instance of GetUserPresenceStatuses200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetUserPresenceStatusesResponse.java b/client/src/main/java/com/fastcomments/model/GetUserPresenceStatusesResponse.java index a67a108b..f37521e9 100644 --- a/client/src/main/java/com/fastcomments/model/GetUserPresenceStatusesResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetUserPresenceStatusesResponse.java @@ -51,7 +51,7 @@ /** * GetUserPresenceStatusesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetUserPresenceStatusesResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -192,10 +192,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetUserReactsPublic200Response.java b/client/src/main/java/com/fastcomments/model/GetUserReactsPublic200Response.java deleted file mode 100644 index 8810683a..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserReactsPublic200Response.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.UserReactsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetUserReactsPublic200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserReactsPublic200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserReactsPublic200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserReactsPublic200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterUserReactsResponse = gson.getDelegateAdapter(this, TypeToken.get(UserReactsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserReactsPublic200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `UserReactsResponse` - if (value.getActualInstance() instanceof UserReactsResponse) { - JsonElement element = adapterUserReactsResponse.toJsonTree((UserReactsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, UserReactsResponse"); - } - - @Override - public GetUserReactsPublic200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize UserReactsResponse - try { - // validate the JSON object to see if any exception is thrown - UserReactsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterUserReactsResponse; - GetUserReactsPublic200Response ret = new GetUserReactsPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for UserReactsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'UserReactsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetUserReactsPublic200Response ret = new GetUserReactsPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetUserReactsPublic200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetUserReactsPublic200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetUserReactsPublic200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("UserReactsResponse", UserReactsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserReactsPublic200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, UserReactsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof UserReactsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, UserReactsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, UserReactsResponse - * - * @return The actual instance (APIError, UserReactsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `UserReactsResponse`. If the actual instance is not `UserReactsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `UserReactsResponse` - * @throws ClassCastException if the instance is not `UserReactsResponse` - */ - public UserReactsResponse getUserReactsResponse() throws ClassCastException { - return (UserReactsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetUserReactsPublic200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with UserReactsResponse - try { - UserReactsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for UserReactsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetUserReactsPublic200Response with anyOf schemas: APIError, UserReactsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetUserReactsPublic200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserReactsPublic200Response - * @throws IOException if the JSON string is invalid with respect to GetUserReactsPublic200Response - */ - public static GetUserReactsPublic200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserReactsPublic200Response.class); - } - - /** - * Convert an instance of GetUserReactsPublic200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetUserResponse.java b/client/src/main/java/com/fastcomments/model/GetUserResponse.java index 11664768..fac4e271 100644 --- a/client/src/main/java/com/fastcomments/model/GetUserResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetUserResponse.java @@ -50,7 +50,7 @@ /** * GetUserResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetUserResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetUserTrustFactorResponse.java b/client/src/main/java/com/fastcomments/model/GetUserTrustFactorResponse.java new file mode 100644 index 00000000..2e26ef3d --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserTrustFactorResponse.java @@ -0,0 +1,342 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GetUserTrustFactorResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetUserTrustFactorResponse { + public static final String SERIALIZED_NAME_MANUAL_TRUST_FACTOR = "manualTrustFactor"; + @SerializedName(SERIALIZED_NAME_MANUAL_TRUST_FACTOR) + @javax.annotation.Nullable + private Double manualTrustFactor; + + public static final String SERIALIZED_NAME_AUTO_TRUST_FACTOR = "autoTrustFactor"; + @SerializedName(SERIALIZED_NAME_AUTO_TRUST_FACTOR) + @javax.annotation.Nullable + private Double autoTrustFactor; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public GetUserTrustFactorResponse() { + } + + public GetUserTrustFactorResponse manualTrustFactor(@javax.annotation.Nullable Double manualTrustFactor) { + this.manualTrustFactor = manualTrustFactor; + return this; + } + + /** + * Get manualTrustFactor + * @return manualTrustFactor + */ + @javax.annotation.Nullable + public Double getManualTrustFactor() { + return manualTrustFactor; + } + + public void setManualTrustFactor(@javax.annotation.Nullable Double manualTrustFactor) { + this.manualTrustFactor = manualTrustFactor; + } + + + public GetUserTrustFactorResponse autoTrustFactor(@javax.annotation.Nullable Double autoTrustFactor) { + this.autoTrustFactor = autoTrustFactor; + return this; + } + + /** + * Get autoTrustFactor + * @return autoTrustFactor + */ + @javax.annotation.Nullable + public Double getAutoTrustFactor() { + return autoTrustFactor; + } + + public void setAutoTrustFactor(@javax.annotation.Nullable Double autoTrustFactor) { + this.autoTrustFactor = autoTrustFactor; + } + + + public GetUserTrustFactorResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GetUserTrustFactorResponse instance itself + */ + public GetUserTrustFactorResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetUserTrustFactorResponse getUserTrustFactorResponse = (GetUserTrustFactorResponse) o; + return Objects.equals(this.manualTrustFactor, getUserTrustFactorResponse.manualTrustFactor) && + Objects.equals(this.autoTrustFactor, getUserTrustFactorResponse.autoTrustFactor) && + Objects.equals(this.status, getUserTrustFactorResponse.status)&& + Objects.equals(this.additionalProperties, getUserTrustFactorResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(manualTrustFactor, autoTrustFactor, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetUserTrustFactorResponse {\n"); + sb.append(" manualTrustFactor: ").append(toIndentedString(manualTrustFactor)).append("\n"); + sb.append(" autoTrustFactor: ").append(toIndentedString(autoTrustFactor)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("manualTrustFactor", "autoTrustFactor", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetUserTrustFactorResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetUserTrustFactorResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetUserTrustFactorResponse is not found in the empty JSON string", GetUserTrustFactorResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GetUserTrustFactorResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserTrustFactorResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserTrustFactorResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetUserTrustFactorResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUserTrustFactorResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GetUserTrustFactorResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GetUserTrustFactorResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetUserTrustFactorResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserTrustFactorResponse + * @throws IOException if the JSON string is invalid with respect to GetUserTrustFactorResponse + */ + public static GetUserTrustFactorResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserTrustFactorResponse.class); + } + + /** + * Convert an instance of GetUserTrustFactorResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetV1PageLikes.java b/client/src/main/java/com/fastcomments/model/GetV1PageLikes.java new file mode 100644 index 00000000..e0197b40 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetV1PageLikes.java @@ -0,0 +1,397 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GetV1PageLikes + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetV1PageLikes { + public static final String SERIALIZED_NAME_URL_ID_W_S = "urlIdWS"; + @SerializedName(SERIALIZED_NAME_URL_ID_W_S) + @javax.annotation.Nonnull + private String urlIdWS; + + public static final String SERIALIZED_NAME_DID_LIKE = "didLike"; + @SerializedName(SERIALIZED_NAME_DID_LIKE) + @javax.annotation.Nonnull + private Boolean didLike; + + public static final String SERIALIZED_NAME_COMMENT_COUNT = "commentCount"; + @SerializedName(SERIALIZED_NAME_COMMENT_COUNT) + @javax.annotation.Nonnull + private Integer commentCount; + + public static final String SERIALIZED_NAME_LIKE_COUNT = "likeCount"; + @SerializedName(SERIALIZED_NAME_LIKE_COUNT) + @javax.annotation.Nonnull + private Integer likeCount; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public GetV1PageLikes() { + } + + public GetV1PageLikes urlIdWS(@javax.annotation.Nonnull String urlIdWS) { + this.urlIdWS = urlIdWS; + return this; + } + + /** + * Get urlIdWS + * @return urlIdWS + */ + @javax.annotation.Nonnull + public String getUrlIdWS() { + return urlIdWS; + } + + public void setUrlIdWS(@javax.annotation.Nonnull String urlIdWS) { + this.urlIdWS = urlIdWS; + } + + + public GetV1PageLikes didLike(@javax.annotation.Nonnull Boolean didLike) { + this.didLike = didLike; + return this; + } + + /** + * Get didLike + * @return didLike + */ + @javax.annotation.Nonnull + public Boolean getDidLike() { + return didLike; + } + + public void setDidLike(@javax.annotation.Nonnull Boolean didLike) { + this.didLike = didLike; + } + + + public GetV1PageLikes commentCount(@javax.annotation.Nonnull Integer commentCount) { + this.commentCount = commentCount; + return this; + } + + /** + * Get commentCount + * @return commentCount + */ + @javax.annotation.Nonnull + public Integer getCommentCount() { + return commentCount; + } + + public void setCommentCount(@javax.annotation.Nonnull Integer commentCount) { + this.commentCount = commentCount; + } + + + public GetV1PageLikes likeCount(@javax.annotation.Nonnull Integer likeCount) { + this.likeCount = likeCount; + return this; + } + + /** + * Get likeCount + * @return likeCount + */ + @javax.annotation.Nonnull + public Integer getLikeCount() { + return likeCount; + } + + public void setLikeCount(@javax.annotation.Nonnull Integer likeCount) { + this.likeCount = likeCount; + } + + + public GetV1PageLikes status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GetV1PageLikes instance itself + */ + public GetV1PageLikes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetV1PageLikes getV1PageLikes = (GetV1PageLikes) o; + return Objects.equals(this.urlIdWS, getV1PageLikes.urlIdWS) && + Objects.equals(this.didLike, getV1PageLikes.didLike) && + Objects.equals(this.commentCount, getV1PageLikes.commentCount) && + Objects.equals(this.likeCount, getV1PageLikes.likeCount) && + Objects.equals(this.status, getV1PageLikes.status)&& + Objects.equals(this.additionalProperties, getV1PageLikes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(urlIdWS, didLike, commentCount, likeCount, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetV1PageLikes {\n"); + sb.append(" urlIdWS: ").append(toIndentedString(urlIdWS)).append("\n"); + sb.append(" didLike: ").append(toIndentedString(didLike)).append("\n"); + sb.append(" commentCount: ").append(toIndentedString(commentCount)).append("\n"); + sb.append(" likeCount: ").append(toIndentedString(likeCount)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("urlIdWS", "didLike", "commentCount", "likeCount", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("urlIdWS", "didLike", "commentCount", "likeCount", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetV1PageLikes + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetV1PageLikes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetV1PageLikes is not found in the empty JSON string", GetV1PageLikes.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GetV1PageLikes.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("urlIdWS").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `urlIdWS` to be a primitive type in the JSON string but got `%s`", jsonObj.get("urlIdWS").toString())); + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetV1PageLikes.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetV1PageLikes' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetV1PageLikes.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetV1PageLikes value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GetV1PageLikes read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GetV1PageLikes instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetV1PageLikes given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetV1PageLikes + * @throws IOException if the JSON string is invalid with respect to GetV1PageLikes + */ + public static GetV1PageLikes fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetV1PageLikes.class); + } + + /** + * Convert an instance of GetV1PageLikes to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetV2PageReactUsersResponse.java b/client/src/main/java/com/fastcomments/model/GetV2PageReactUsersResponse.java new file mode 100644 index 00000000..c080c8a0 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetV2PageReactUsersResponse.java @@ -0,0 +1,332 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GetV2PageReactUsersResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetV2PageReactUsersResponse { + public static final String SERIALIZED_NAME_USER_NAMES = "userNames"; + @SerializedName(SERIALIZED_NAME_USER_NAMES) + @javax.annotation.Nonnull + private List userNames = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public GetV2PageReactUsersResponse() { + } + + public GetV2PageReactUsersResponse userNames(@javax.annotation.Nonnull List userNames) { + this.userNames = userNames; + return this; + } + + public GetV2PageReactUsersResponse addUserNamesItem(String userNamesItem) { + if (this.userNames == null) { + this.userNames = new ArrayList<>(); + } + this.userNames.add(userNamesItem); + return this; + } + + /** + * Get userNames + * @return userNames + */ + @javax.annotation.Nonnull + public List getUserNames() { + return userNames; + } + + public void setUserNames(@javax.annotation.Nonnull List userNames) { + this.userNames = userNames; + } + + + public GetV2PageReactUsersResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GetV2PageReactUsersResponse instance itself + */ + public GetV2PageReactUsersResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetV2PageReactUsersResponse getV2PageReactUsersResponse = (GetV2PageReactUsersResponse) o; + return Objects.equals(this.userNames, getV2PageReactUsersResponse.userNames) && + Objects.equals(this.status, getV2PageReactUsersResponse.status)&& + Objects.equals(this.additionalProperties, getV2PageReactUsersResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(userNames, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetV2PageReactUsersResponse {\n"); + sb.append(" userNames: ").append(toIndentedString(userNames)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("userNames", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("userNames", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetV2PageReactUsersResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetV2PageReactUsersResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetV2PageReactUsersResponse is not found in the empty JSON string", GetV2PageReactUsersResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GetV2PageReactUsersResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the required json array is present + if (jsonObj.get("userNames") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("userNames").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userNames` to be an array in the JSON string but got `%s`", jsonObj.get("userNames").toString())); + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetV2PageReactUsersResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetV2PageReactUsersResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetV2PageReactUsersResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetV2PageReactUsersResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GetV2PageReactUsersResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GetV2PageReactUsersResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetV2PageReactUsersResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetV2PageReactUsersResponse + * @throws IOException if the JSON string is invalid with respect to GetV2PageReactUsersResponse + */ + public static GetV2PageReactUsersResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetV2PageReactUsersResponse.class); + } + + /** + * Convert an instance of GetV2PageReactUsersResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetV2PageReacts.java b/client/src/main/java/com/fastcomments/model/GetV2PageReacts.java new file mode 100644 index 00000000..839afecc --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetV2PageReacts.java @@ -0,0 +1,366 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GetV2PageReacts + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GetV2PageReacts { + public static final String SERIALIZED_NAME_REACTED_IDS = "reactedIds"; + @SerializedName(SERIALIZED_NAME_REACTED_IDS) + @javax.annotation.Nullable + private List reactedIds = new ArrayList<>(); + + public static final String SERIALIZED_NAME_COUNTS = "counts"; + @SerializedName(SERIALIZED_NAME_COUNTS) + @javax.annotation.Nullable + private Map counts = new HashMap<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public GetV2PageReacts() { + } + + public GetV2PageReacts reactedIds(@javax.annotation.Nullable List reactedIds) { + this.reactedIds = reactedIds; + return this; + } + + public GetV2PageReacts addReactedIdsItem(String reactedIdsItem) { + if (this.reactedIds == null) { + this.reactedIds = new ArrayList<>(); + } + this.reactedIds.add(reactedIdsItem); + return this; + } + + /** + * Get reactedIds + * @return reactedIds + */ + @javax.annotation.Nullable + public List getReactedIds() { + return reactedIds; + } + + public void setReactedIds(@javax.annotation.Nullable List reactedIds) { + this.reactedIds = reactedIds; + } + + + public GetV2PageReacts counts(@javax.annotation.Nullable Map counts) { + this.counts = counts; + return this; + } + + public GetV2PageReacts putCountsItem(String key, Double countsItem) { + if (this.counts == null) { + this.counts = new HashMap<>(); + } + this.counts.put(key, countsItem); + return this; + } + + /** + * Construct a type with a set of properties K of type T + * @return counts + */ + @javax.annotation.Nullable + public Map getCounts() { + return counts; + } + + public void setCounts(@javax.annotation.Nullable Map counts) { + this.counts = counts; + } + + + public GetV2PageReacts status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GetV2PageReacts instance itself + */ + public GetV2PageReacts putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetV2PageReacts getV2PageReacts = (GetV2PageReacts) o; + return Objects.equals(this.reactedIds, getV2PageReacts.reactedIds) && + Objects.equals(this.counts, getV2PageReacts.counts) && + Objects.equals(this.status, getV2PageReacts.status)&& + Objects.equals(this.additionalProperties, getV2PageReacts.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(reactedIds, counts, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetV2PageReacts {\n"); + sb.append(" reactedIds: ").append(toIndentedString(reactedIds)).append("\n"); + sb.append(" counts: ").append(toIndentedString(counts)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("reactedIds", "counts", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetV2PageReacts + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetV2PageReacts.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GetV2PageReacts is not found in the empty JSON string", GetV2PageReacts.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GetV2PageReacts.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("reactedIds") != null && !jsonObj.get("reactedIds").isJsonNull() && !jsonObj.get("reactedIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `reactedIds` to be an array in the JSON string but got `%s`", jsonObj.get("reactedIds").toString())); + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetV2PageReacts.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetV2PageReacts' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetV2PageReacts.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetV2PageReacts value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GetV2PageReacts read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GetV2PageReacts instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetV2PageReacts given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetV2PageReacts + * @throws IOException if the JSON string is invalid with respect to GetV2PageReacts + */ + public static GetV2PageReacts fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetV2PageReacts.class); + } + + /** + * Convert an instance of GetV2PageReacts to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GetVotes200Response.java b/client/src/main/java/com/fastcomments/model/GetVotes200Response.java deleted file mode 100644 index cf804762..00000000 --- a/client/src/main/java/com/fastcomments/model/GetVotes200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetVotesResponse; -import com.fastcomments.model.PublicVote; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetVotes200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetVotes200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetVotes200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetVotes200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetVotesResponse = gson.getDelegateAdapter(this, TypeToken.get(GetVotesResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetVotes200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetVotesResponse` - if (value.getActualInstance() instanceof GetVotesResponse) { - JsonElement element = adapterGetVotesResponse.toJsonTree((GetVotesResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetVotesResponse"); - } - - @Override - public GetVotes200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetVotesResponse - try { - // validate the JSON object to see if any exception is thrown - GetVotesResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetVotesResponse; - GetVotes200Response ret = new GetVotes200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetVotesResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetVotesResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetVotes200Response ret = new GetVotes200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetVotes200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetVotes200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetVotes200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetVotesResponse", GetVotesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetVotes200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetVotesResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetVotesResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetVotesResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetVotesResponse - * - * @return The actual instance (APIError, GetVotesResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetVotesResponse`. If the actual instance is not `GetVotesResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetVotesResponse` - * @throws ClassCastException if the instance is not `GetVotesResponse` - */ - public GetVotesResponse getGetVotesResponse() throws ClassCastException { - return (GetVotesResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetVotes200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetVotesResponse - try { - GetVotesResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetVotesResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetVotes200Response with anyOf schemas: APIError, GetVotesResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetVotes200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetVotes200Response - * @throws IOException if the JSON string is invalid with respect to GetVotes200Response - */ - public static GetVotes200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetVotes200Response.class); - } - - /** - * Convert an instance of GetVotes200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetVotesForUser200Response.java b/client/src/main/java/com/fastcomments/model/GetVotesForUser200Response.java deleted file mode 100644 index 378f1ecf..00000000 --- a/client/src/main/java/com/fastcomments/model/GetVotesForUser200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetVotesForUserResponse; -import com.fastcomments.model.PublicVote; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetVotesForUser200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetVotesForUser200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetVotesForUser200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetVotesForUser200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetVotesForUserResponse = gson.getDelegateAdapter(this, TypeToken.get(GetVotesForUserResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetVotesForUser200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetVotesForUserResponse` - if (value.getActualInstance() instanceof GetVotesForUserResponse) { - JsonElement element = adapterGetVotesForUserResponse.toJsonTree((GetVotesForUserResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetVotesForUserResponse"); - } - - @Override - public GetVotesForUser200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetVotesForUserResponse - try { - // validate the JSON object to see if any exception is thrown - GetVotesForUserResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetVotesForUserResponse; - GetVotesForUser200Response ret = new GetVotesForUser200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetVotesForUserResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetVotesForUserResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetVotesForUser200Response ret = new GetVotesForUser200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetVotesForUser200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public GetVotesForUser200Response() { - super("anyOf", Boolean.FALSE); - } - - public GetVotesForUser200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetVotesForUserResponse", GetVotesForUserResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetVotesForUser200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetVotesForUserResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetVotesForUserResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetVotesForUserResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetVotesForUserResponse - * - * @return The actual instance (APIError, GetVotesForUserResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetVotesForUserResponse`. If the actual instance is not `GetVotesForUserResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetVotesForUserResponse` - * @throws ClassCastException if the instance is not `GetVotesForUserResponse` - */ - public GetVotesForUserResponse getGetVotesForUserResponse() throws ClassCastException { - return (GetVotesForUserResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetVotesForUser200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetVotesForUserResponse - try { - GetVotesForUserResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetVotesForUserResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetVotesForUser200Response with anyOf schemas: APIError, GetVotesForUserResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of GetVotesForUser200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetVotesForUser200Response - * @throws IOException if the JSON string is invalid with respect to GetVotesForUser200Response - */ - public static GetVotesForUser200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetVotesForUser200Response.class); - } - - /** - * Convert an instance of GetVotesForUser200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/GetVotesForUserResponse.java b/client/src/main/java/com/fastcomments/model/GetVotesForUserResponse.java index 22e4ac7a..1da7558b 100644 --- a/client/src/main/java/com/fastcomments/model/GetVotesForUserResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetVotesForUserResponse.java @@ -52,7 +52,7 @@ /** * GetVotesForUserResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetVotesForUserResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -215,10 +215,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -263,36 +260,36 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("appliedAuthorizedVotes").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `appliedAuthorizedVotes` to be an array in the JSON string but got `%s`", jsonObj.get("appliedAuthorizedVotes").toString())); + if (jsonObj.get("appliedAuthorizedVotes") != null) { + if (!jsonObj.get("appliedAuthorizedVotes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `appliedAuthorizedVotes` to be an array in the JSON string but got `%s`", jsonObj.get("appliedAuthorizedVotes").toString())); + } + JsonArray jsonArrayappliedAuthorizedVotes = jsonObj.getAsJsonArray("appliedAuthorizedVotes"); + // validate the required field `appliedAuthorizedVotes` (array) + for (int i = 0; i < jsonArrayappliedAuthorizedVotes.size(); i++) { + PublicVote.validateJsonElement(jsonArrayappliedAuthorizedVotes.get(i)); + } } - - JsonArray jsonArrayappliedAuthorizedVotes = jsonObj.getAsJsonArray("appliedAuthorizedVotes"); - // validate the required field `appliedAuthorizedVotes` (array) - for (int i = 0; i < jsonArrayappliedAuthorizedVotes.size(); i++) { - PublicVote.validateJsonElement(jsonArrayappliedAuthorizedVotes.get(i)); - }; - // ensure the json data is an array - if (!jsonObj.get("appliedAnonymousVotes").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `appliedAnonymousVotes` to be an array in the JSON string but got `%s`", jsonObj.get("appliedAnonymousVotes").toString())); + if (jsonObj.get("appliedAnonymousVotes") != null) { + if (!jsonObj.get("appliedAnonymousVotes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `appliedAnonymousVotes` to be an array in the JSON string but got `%s`", jsonObj.get("appliedAnonymousVotes").toString())); + } + JsonArray jsonArrayappliedAnonymousVotes = jsonObj.getAsJsonArray("appliedAnonymousVotes"); + // validate the required field `appliedAnonymousVotes` (array) + for (int i = 0; i < jsonArrayappliedAnonymousVotes.size(); i++) { + PublicVote.validateJsonElement(jsonArrayappliedAnonymousVotes.get(i)); + } } - - JsonArray jsonArrayappliedAnonymousVotes = jsonObj.getAsJsonArray("appliedAnonymousVotes"); - // validate the required field `appliedAnonymousVotes` (array) - for (int i = 0; i < jsonArrayappliedAnonymousVotes.size(); i++) { - PublicVote.validateJsonElement(jsonArrayappliedAnonymousVotes.get(i)); - }; - // ensure the json data is an array - if (!jsonObj.get("pendingVotes").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `pendingVotes` to be an array in the JSON string but got `%s`", jsonObj.get("pendingVotes").toString())); + if (jsonObj.get("pendingVotes") != null) { + if (!jsonObj.get("pendingVotes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `pendingVotes` to be an array in the JSON string but got `%s`", jsonObj.get("pendingVotes").toString())); + } + JsonArray jsonArraypendingVotes = jsonObj.getAsJsonArray("pendingVotes"); + // validate the required field `pendingVotes` (array) + for (int i = 0; i < jsonArraypendingVotes.size(); i++) { + PublicVote.validateJsonElement(jsonArraypendingVotes.get(i)); + } } - - JsonArray jsonArraypendingVotes = jsonObj.getAsJsonArray("pendingVotes"); - // validate the required field `pendingVotes` (array) - for (int i = 0; i < jsonArraypendingVotes.size(); i++) { - PublicVote.validateJsonElement(jsonArraypendingVotes.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetVotesResponse.java b/client/src/main/java/com/fastcomments/model/GetVotesResponse.java index 9c1b775b..a14acb06 100644 --- a/client/src/main/java/com/fastcomments/model/GetVotesResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetVotesResponse.java @@ -52,7 +52,7 @@ /** * GetVotesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class GetVotesResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -215,10 +215,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -263,36 +260,36 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("appliedAuthorizedVotes").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `appliedAuthorizedVotes` to be an array in the JSON string but got `%s`", jsonObj.get("appliedAuthorizedVotes").toString())); + if (jsonObj.get("appliedAuthorizedVotes") != null) { + if (!jsonObj.get("appliedAuthorizedVotes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `appliedAuthorizedVotes` to be an array in the JSON string but got `%s`", jsonObj.get("appliedAuthorizedVotes").toString())); + } + JsonArray jsonArrayappliedAuthorizedVotes = jsonObj.getAsJsonArray("appliedAuthorizedVotes"); + // validate the required field `appliedAuthorizedVotes` (array) + for (int i = 0; i < jsonArrayappliedAuthorizedVotes.size(); i++) { + PublicVote.validateJsonElement(jsonArrayappliedAuthorizedVotes.get(i)); + } } - - JsonArray jsonArrayappliedAuthorizedVotes = jsonObj.getAsJsonArray("appliedAuthorizedVotes"); - // validate the required field `appliedAuthorizedVotes` (array) - for (int i = 0; i < jsonArrayappliedAuthorizedVotes.size(); i++) { - PublicVote.validateJsonElement(jsonArrayappliedAuthorizedVotes.get(i)); - }; - // ensure the json data is an array - if (!jsonObj.get("appliedAnonymousVotes").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `appliedAnonymousVotes` to be an array in the JSON string but got `%s`", jsonObj.get("appliedAnonymousVotes").toString())); + if (jsonObj.get("appliedAnonymousVotes") != null) { + if (!jsonObj.get("appliedAnonymousVotes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `appliedAnonymousVotes` to be an array in the JSON string but got `%s`", jsonObj.get("appliedAnonymousVotes").toString())); + } + JsonArray jsonArrayappliedAnonymousVotes = jsonObj.getAsJsonArray("appliedAnonymousVotes"); + // validate the required field `appliedAnonymousVotes` (array) + for (int i = 0; i < jsonArrayappliedAnonymousVotes.size(); i++) { + PublicVote.validateJsonElement(jsonArrayappliedAnonymousVotes.get(i)); + } } - - JsonArray jsonArrayappliedAnonymousVotes = jsonObj.getAsJsonArray("appliedAnonymousVotes"); - // validate the required field `appliedAnonymousVotes` (array) - for (int i = 0; i < jsonArrayappliedAnonymousVotes.size(); i++) { - PublicVote.validateJsonElement(jsonArrayappliedAnonymousVotes.get(i)); - }; - // ensure the json data is an array - if (!jsonObj.get("pendingVotes").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `pendingVotes` to be an array in the JSON string but got `%s`", jsonObj.get("pendingVotes").toString())); + if (jsonObj.get("pendingVotes") != null) { + if (!jsonObj.get("pendingVotes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `pendingVotes` to be an array in the JSON string but got `%s`", jsonObj.get("pendingVotes").toString())); + } + JsonArray jsonArraypendingVotes = jsonObj.getAsJsonArray("pendingVotes"); + // validate the required field `pendingVotes` (array) + for (int i = 0; i < jsonArraypendingVotes.size(); i++) { + PublicVote.validateJsonElement(jsonArraypendingVotes.get(i)); + } } - - JsonArray jsonArraypendingVotes = jsonObj.getAsJsonArray("pendingVotes"); - // validate the required field `pendingVotes` (array) - for (int i = 0; i < jsonArraypendingVotes.size(); i++) { - PublicVote.validateJsonElement(jsonArraypendingVotes.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GifGetLargeResponse.java b/client/src/main/java/com/fastcomments/model/GifGetLargeResponse.java new file mode 100644 index 00000000..657a01db --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GifGetLargeResponse.java @@ -0,0 +1,319 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GifGetLargeResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GifGetLargeResponse { + public static final String SERIALIZED_NAME_SRC = "src"; + @SerializedName(SERIALIZED_NAME_SRC) + @javax.annotation.Nonnull + private String src; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public GifGetLargeResponse() { + } + + public GifGetLargeResponse src(@javax.annotation.Nonnull String src) { + this.src = src; + return this; + } + + /** + * Get src + * @return src + */ + @javax.annotation.Nonnull + public String getSrc() { + return src; + } + + public void setSrc(@javax.annotation.Nonnull String src) { + this.src = src; + } + + + public GifGetLargeResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GifGetLargeResponse instance itself + */ + public GifGetLargeResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GifGetLargeResponse gifGetLargeResponse = (GifGetLargeResponse) o; + return Objects.equals(this.src, gifGetLargeResponse.src) && + Objects.equals(this.status, gifGetLargeResponse.status)&& + Objects.equals(this.additionalProperties, gifGetLargeResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(src, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GifGetLargeResponse {\n"); + sb.append(" src: ").append(toIndentedString(src)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("src", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("src", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GifGetLargeResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GifGetLargeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GifGetLargeResponse is not found in the empty JSON string", GifGetLargeResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GifGetLargeResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("src").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `src` to be a primitive type in the JSON string but got `%s`", jsonObj.get("src").toString())); + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GifGetLargeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GifGetLargeResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GifGetLargeResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GifGetLargeResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GifGetLargeResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GifGetLargeResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GifGetLargeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GifGetLargeResponse + * @throws IOException if the JSON string is invalid with respect to GifGetLargeResponse + */ + public static GifGetLargeResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GifGetLargeResponse.class); + } + + /** + * Convert an instance of GifGetLargeResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GifSearchInternalError.java b/client/src/main/java/com/fastcomments/model/GifSearchInternalError.java new file mode 100644 index 00000000..6118b43e --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GifSearchInternalError.java @@ -0,0 +1,319 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GifSearchInternalError + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GifSearchInternalError { + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nonnull + private String code; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public GifSearchInternalError() { + } + + public GifSearchInternalError code(@javax.annotation.Nonnull String code) { + this.code = code; + return this; + } + + /** + * Get code + * @return code + */ + @javax.annotation.Nonnull + public String getCode() { + return code; + } + + public void setCode(@javax.annotation.Nonnull String code) { + this.code = code; + } + + + public GifSearchInternalError status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GifSearchInternalError instance itself + */ + public GifSearchInternalError putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GifSearchInternalError gifSearchInternalError = (GifSearchInternalError) o; + return Objects.equals(this.code, gifSearchInternalError.code) && + Objects.equals(this.status, gifSearchInternalError.status)&& + Objects.equals(this.additionalProperties, gifSearchInternalError.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(code, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GifSearchInternalError {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("code", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("code", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GifSearchInternalError + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GifSearchInternalError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GifSearchInternalError is not found in the empty JSON string", GifSearchInternalError.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GifSearchInternalError.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GifSearchInternalError.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GifSearchInternalError' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GifSearchInternalError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GifSearchInternalError value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GifSearchInternalError read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GifSearchInternalError instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GifSearchInternalError given an JSON string + * + * @param jsonString JSON string + * @return An instance of GifSearchInternalError + * @throws IOException if the JSON string is invalid with respect to GifSearchInternalError + */ + public static GifSearchInternalError fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GifSearchInternalError.class); + } + + /** + * Convert an instance of GifSearchInternalError to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/GifSearchResponse.java b/client/src/main/java/com/fastcomments/model/GifSearchResponse.java new file mode 100644 index 00000000..bd5be403 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GifSearchResponse.java @@ -0,0 +1,333 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.GifSearchResponseImagesInnerInner; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * GifSearchResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GifSearchResponse { + public static final String SERIALIZED_NAME_IMAGES = "images"; + @SerializedName(SERIALIZED_NAME_IMAGES) + @javax.annotation.Nonnull + private List> images = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public GifSearchResponse() { + } + + public GifSearchResponse images(@javax.annotation.Nonnull List> images) { + this.images = images; + return this; + } + + public GifSearchResponse addImagesItem(List imagesItem) { + if (this.images == null) { + this.images = new ArrayList<>(); + } + this.images.add(imagesItem); + return this; + } + + /** + * Get images + * @return images + */ + @javax.annotation.Nonnull + public List> getImages() { + return images; + } + + public void setImages(@javax.annotation.Nonnull List> images) { + this.images = images; + } + + + public GifSearchResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GifSearchResponse instance itself + */ + public GifSearchResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GifSearchResponse gifSearchResponse = (GifSearchResponse) o; + return Objects.equals(this.images, gifSearchResponse.images) && + Objects.equals(this.status, gifSearchResponse.status)&& + Objects.equals(this.additionalProperties, gifSearchResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(images, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GifSearchResponse {\n"); + sb.append(" images: ").append(toIndentedString(images)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("images", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("images", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GifSearchResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GifSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in GifSearchResponse is not found in the empty JSON string", GifSearchResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GifSearchResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the required json array is present + if (jsonObj.get("images") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("images").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `images` to be an array in the JSON string but got `%s`", jsonObj.get("images").toString())); + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GifSearchResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GifSearchResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GifSearchResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GifSearchResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GifSearchResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + GifSearchResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GifSearchResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GifSearchResponse + * @throws IOException if the JSON string is invalid with respect to GifSearchResponse + */ + public static GifSearchResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GifSearchResponse.class); + } + + /** + * Convert an instance of GifSearchResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/RecordStringStringOrNumberValue.java b/client/src/main/java/com/fastcomments/model/GifSearchResponseImagesInnerInner.java similarity index 82% rename from client/src/main/java/com/fastcomments/model/RecordStringStringOrNumberValue.java rename to client/src/main/java/com/fastcomments/model/GifSearchResponseImagesInnerInner.java index a0b3aad6..15ad227e 100644 --- a/client/src/main/java/com/fastcomments/model/RecordStringStringOrNumberValue.java +++ b/client/src/main/java/com/fastcomments/model/GifSearchResponseImagesInnerInner.java @@ -50,24 +50,24 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class RecordStringStringOrNumberValue extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(RecordStringStringOrNumberValue.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class GifSearchResponseImagesInnerInner extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GifSearchResponseImagesInnerInner.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RecordStringStringOrNumberValue.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RecordStringStringOrNumberValue' and its subtypes + if (!GifSearchResponseImagesInnerInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GifSearchResponseImagesInnerInner' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); final TypeAdapter adapterString = gson.getDelegateAdapter(this, TypeToken.get(String.class)); final TypeAdapter adapterDouble = gson.getDelegateAdapter(this, TypeToken.get(Double.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RecordStringStringOrNumberValue value) throws IOException { + public void write(JsonWriter out, GifSearchResponseImagesInnerInner value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; @@ -89,7 +89,7 @@ public void write(JsonWriter out, RecordStringStringOrNumberValue value) throws } @Override - public RecordStringStringOrNumberValue read(JsonReader in) throws IOException { + public GifSearchResponseImagesInnerInner read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); @@ -103,7 +103,7 @@ public RecordStringStringOrNumberValue read(JsonReader in) throws IOException { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected json element to be of type String in the JSON string but got `%s`", jsonElement.toString())); } actualAdapter = adapterString; - RecordStringStringOrNumberValue ret = new RecordStringStringOrNumberValue(); + GifSearchResponseImagesInnerInner ret = new GifSearchResponseImagesInnerInner(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { @@ -118,7 +118,7 @@ public RecordStringStringOrNumberValue read(JsonReader in) throws IOException { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString())); } actualAdapter = adapterDouble; - RecordStringStringOrNumberValue ret = new RecordStringStringOrNumberValue(); + GifSearchResponseImagesInnerInner ret = new GifSearchResponseImagesInnerInner(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { @@ -127,7 +127,7 @@ public RecordStringStringOrNumberValue read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data does not match schema 'Double'", e); } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for RecordStringStringOrNumberValue: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GifSearchResponseImagesInnerInner: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -136,11 +136,11 @@ public RecordStringStringOrNumberValue read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public RecordStringStringOrNumberValue() { + public GifSearchResponseImagesInnerInner() { super("anyOf", Boolean.FALSE); } - public RecordStringStringOrNumberValue(Object o) { + public GifSearchResponseImagesInnerInner(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } @@ -152,7 +152,7 @@ public RecordStringStringOrNumberValue(Object o) { @Override public Map> getSchemas() { - return RecordStringStringOrNumberValue.schemas; + return GifSearchResponseImagesInnerInner.schemas; } /** @@ -215,7 +215,7 @@ public Double getDouble() throws ClassCastException { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RecordStringStringOrNumberValue + * @throws IOException if the JSON Element is invalid with respect to GifSearchResponseImagesInnerInner */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one @@ -240,22 +240,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for Double failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for RecordStringStringOrNumberValue with anyOf schemas: Double, String. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GifSearchResponseImagesInnerInner with anyOf schemas: Double, String. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of RecordStringStringOrNumberValue given an JSON string + * Create an instance of GifSearchResponseImagesInnerInner given an JSON string * * @param jsonString JSON string - * @return An instance of RecordStringStringOrNumberValue - * @throws IOException if the JSON string is invalid with respect to RecordStringStringOrNumberValue + * @return An instance of GifSearchResponseImagesInnerInner + * @throws IOException if the JSON string is invalid with respect to GifSearchResponseImagesInnerInner */ - public static RecordStringStringOrNumberValue fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RecordStringStringOrNumberValue.class); + public static GifSearchResponseImagesInnerInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GifSearchResponseImagesInnerInner.class); } /** - * Convert an instance of RecordStringStringOrNumberValue to an JSON string + * Convert an instance of GifSearchResponseImagesInnerInner to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/HeaderAccountNotification.java b/client/src/main/java/com/fastcomments/model/HeaderAccountNotification.java index 460a0198..1007b506 100644 --- a/client/src/main/java/com/fastcomments/model/HeaderAccountNotification.java +++ b/client/src/main/java/com/fastcomments/model/HeaderAccountNotification.java @@ -51,7 +51,7 @@ /** * HeaderAccountNotification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class HeaderAccountNotification { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -98,6 +98,11 @@ public class HeaderAccountNotification { @javax.annotation.Nonnull private OffsetDateTime createdAt; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable + private String type; + public HeaderAccountNotification() { } @@ -288,6 +293,25 @@ public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { } + public HeaderAccountNotification type(@javax.annotation.Nullable String type) { + this.type = type; + return this; + } + + /** + * Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\"). + * @return type + */ + @javax.annotation.Nullable + public String getType() { + return type; + } + + public void setType(@javax.annotation.Nullable String type) { + this.type = type; + } + + @Override public boolean equals(Object o) { @@ -306,12 +330,13 @@ public boolean equals(Object o) { Objects.equals(this.severity, headerAccountNotification.severity) && Objects.equals(this.linkUrl, headerAccountNotification.linkUrl) && Objects.equals(this.linkText, headerAccountNotification.linkText) && - Objects.equals(this.createdAt, headerAccountNotification.createdAt); + Objects.equals(this.createdAt, headerAccountNotification.createdAt) && + Objects.equals(this.type, headerAccountNotification.type); } @Override public int hashCode() { - return Objects.hash(id, title, message, messagesByLocale, dates, severity, linkUrl, linkText, createdAt); + return Objects.hash(id, title, message, messagesByLocale, dates, severity, linkUrl, linkText, createdAt, type); } @Override @@ -327,6 +352,7 @@ public String toString() { sb.append(" linkUrl: ").append(toIndentedString(linkUrl)).append("\n"); sb.append(" linkText: ").append(toIndentedString(linkText)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } @@ -336,10 +362,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -348,7 +371,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("_id", "title", "message", "messagesByLocale", "dates", "severity", "linkUrl", "linkText", "createdAt")); + openapiFields = new HashSet(Arrays.asList("_id", "title", "message", "messagesByLocale", "dates", "severity", "linkUrl", "linkText", "createdAt", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("_id", "title", "message", "messagesByLocale", "dates", "severity", "linkUrl", "linkText", "createdAt")); @@ -400,6 +423,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("linkText") != null && !jsonObj.get("linkText").isJsonNull()) && !jsonObj.get("linkText").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `linkText` to be a primitive type in the JSON string but got `%s`", jsonObj.get("linkText").toString())); } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/HeaderState.java b/client/src/main/java/com/fastcomments/model/HeaderState.java index 070bab45..54f6b216 100644 --- a/client/src/main/java/com/fastcomments/model/HeaderState.java +++ b/client/src/main/java/com/fastcomments/model/HeaderState.java @@ -53,7 +53,7 @@ /** * HeaderState */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class HeaderState { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -260,10 +260,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -314,26 +311,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("userIdWS").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userIdWS` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userIdWS").toString())); } - // ensure the json data is an array - if (!jsonObj.get("notificationCounts").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `notificationCounts` to be an array in the JSON string but got `%s`", jsonObj.get("notificationCounts").toString())); + if (jsonObj.get("notificationCounts") != null) { + if (!jsonObj.get("notificationCounts").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `notificationCounts` to be an array in the JSON string but got `%s`", jsonObj.get("notificationCounts").toString())); + } + JsonArray jsonArraynotificationCounts = jsonObj.getAsJsonArray("notificationCounts"); + // validate the required field `notificationCounts` (array) + for (int i = 0; i < jsonArraynotificationCounts.size(); i++) { + NotificationAndCount.validateJsonElement(jsonArraynotificationCounts.get(i)); + } } - - JsonArray jsonArraynotificationCounts = jsonObj.getAsJsonArray("notificationCounts"); - // validate the required field `notificationCounts` (array) - for (int i = 0; i < jsonArraynotificationCounts.size(); i++) { - NotificationAndCount.validateJsonElement(jsonArraynotificationCounts.get(i)); - }; - // ensure the json data is an array - if (!jsonObj.get("accountNotifications").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `accountNotifications` to be an array in the JSON string but got `%s`", jsonObj.get("accountNotifications").toString())); + if (jsonObj.get("accountNotifications") != null) { + if (!jsonObj.get("accountNotifications").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `accountNotifications` to be an array in the JSON string but got `%s`", jsonObj.get("accountNotifications").toString())); + } + JsonArray jsonArrayaccountNotifications = jsonObj.getAsJsonArray("accountNotifications"); + // validate the required field `accountNotifications` (array) + for (int i = 0; i < jsonArrayaccountNotifications.size(); i++) { + HeaderAccountNotification.validateJsonElement(jsonArrayaccountNotifications.get(i)); + } } - - JsonArray jsonArrayaccountNotifications = jsonObj.getAsJsonArray("accountNotifications"); - // validate the required field `accountNotifications` (array) - for (int i = 0; i < jsonArrayaccountNotifications.size(); i++) { - HeaderAccountNotification.validateJsonElement(jsonArrayaccountNotifications.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/IgnoredResponse.java b/client/src/main/java/com/fastcomments/model/IgnoredResponse.java index 5b95ea77..e1c76c3d 100644 --- a/client/src/main/java/com/fastcomments/model/IgnoredResponse.java +++ b/client/src/main/java/com/fastcomments/model/IgnoredResponse.java @@ -49,7 +49,7 @@ /** * IgnoredResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class IgnoredResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -188,10 +188,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/ImportedAgentApprovalNotificationFrequency.java b/client/src/main/java/com/fastcomments/model/ImportedAgentApprovalNotificationFrequency.java new file mode 100644 index 00000000..091a8b7f --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ImportedAgentApprovalNotificationFrequency.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * Gets or Sets ImportedAgentApprovalNotificationFrequency + */ +@JsonAdapter(ImportedAgentApprovalNotificationFrequency.Adapter.class) +public enum ImportedAgentApprovalNotificationFrequency { + + NUMBER_MINUS_1(-1), + + NUMBER_0(0), + + NUMBER_1(1), + + NUMBER_2(2); + + private Integer value; + + ImportedAgentApprovalNotificationFrequency(Integer value) { + this.value = value; + } + + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ImportedAgentApprovalNotificationFrequency fromValue(Integer value) { + for (ImportedAgentApprovalNotificationFrequency b : ImportedAgentApprovalNotificationFrequency.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ImportedAgentApprovalNotificationFrequency enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ImportedAgentApprovalNotificationFrequency read(final JsonReader jsonReader) throws IOException { + Integer value = jsonReader.nextInt(); + return ImportedAgentApprovalNotificationFrequency.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + Integer value = jsonElement.getAsInt(); + ImportedAgentApprovalNotificationFrequency.fromValue(value); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/LiveEvent.java b/client/src/main/java/com/fastcomments/model/LiveEvent.java index 022923c4..3886e4db 100644 --- a/client/src/main/java/com/fastcomments/model/LiveEvent.java +++ b/client/src/main/java/com/fastcomments/model/LiveEvent.java @@ -59,7 +59,7 @@ /** * LiveEvent */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class LiveEvent { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -568,10 +568,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/LiveEventExtraInfo.java b/client/src/main/java/com/fastcomments/model/LiveEventExtraInfo.java index a19c9d38..b006c0ea 100644 --- a/client/src/main/java/com/fastcomments/model/LiveEventExtraInfo.java +++ b/client/src/main/java/com/fastcomments/model/LiveEventExtraInfo.java @@ -51,7 +51,7 @@ /** * LiveEventExtraInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class LiveEventExtraInfo { public static final String SERIALIZED_NAME_COMMENT_POSITIONS = "commentPositions"; @SerializedName(SERIALIZED_NAME_COMMENT_POSITIONS) @@ -166,10 +166,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/LiveEventType.java b/client/src/main/java/com/fastcomments/model/LiveEventType.java index eed44f4a..8412779c 100644 --- a/client/src/main/java/com/fastcomments/model/LiveEventType.java +++ b/client/src/main/java/com/fastcomments/model/LiveEventType.java @@ -69,7 +69,11 @@ public enum LiveEventType { UPDATED_TICKET_ASSIGNMENT("updated-ticket-assignment"), - DELETED_TICKET("deleted-ticket"); + DELETED_TICKET("deleted-ticket"), + + PAGE_REACT("page-react"), + + QUESTION_RESULT("question-result"); private String value; diff --git a/client/src/main/java/com/fastcomments/model/LockComment200Response.java b/client/src/main/java/com/fastcomments/model/LockComment200Response.java deleted file mode 100644 index 3cef1dab..00000000 --- a/client/src/main/java/com/fastcomments/model/LockComment200Response.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIEmptyResponse; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class LockComment200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(LockComment200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!LockComment200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'LockComment200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - final TypeAdapter adapterAPIEmptyResponse = gson.getDelegateAdapter(this, TypeToken.get(APIEmptyResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, LockComment200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIEmptyResponse` - if (value.getActualInstance() instanceof APIEmptyResponse) { - JsonElement element = adapterAPIEmptyResponse.toJsonTree((APIEmptyResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIEmptyResponse, APIError"); - } - - @Override - public LockComment200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - LockComment200Response ret = new LockComment200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - // deserialize APIEmptyResponse - try { - // validate the JSON object to see if any exception is thrown - APIEmptyResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAPIEmptyResponse; - LockComment200Response ret = new LockComment200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIEmptyResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIEmptyResponse'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for LockComment200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public LockComment200Response() { - super("anyOf", Boolean.FALSE); - } - - public LockComment200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIError", APIError.class); - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - } - - @Override - public Map> getSchemas() { - return LockComment200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIEmptyResponse, APIError - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIEmptyResponse) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIEmptyResponse, APIError"); - } - - /** - * Get the actual instance, which can be the following: - * APIEmptyResponse, APIError - * - * @return The actual instance (APIEmptyResponse, APIError) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIEmptyResponse`. If the actual instance is not `APIEmptyResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIEmptyResponse` - * @throws ClassCastException if the instance is not `APIEmptyResponse` - */ - public APIEmptyResponse getAPIEmptyResponse() throws ClassCastException { - return (APIEmptyResponse)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to LockComment200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIEmptyResponse - try { - APIEmptyResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIEmptyResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for LockComment200Response with anyOf schemas: APIEmptyResponse, APIError. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of LockComment200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of LockComment200Response - * @throws IOException if the JSON string is invalid with respect to LockComment200Response - */ - public static LockComment200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, LockComment200Response.class); - } - - /** - * Convert an instance of LockComment200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/MediaAsset.java b/client/src/main/java/com/fastcomments/model/MediaAsset.java index a0c2bba8..39e9d57e 100644 --- a/client/src/main/java/com/fastcomments/model/MediaAsset.java +++ b/client/src/main/java/com/fastcomments/model/MediaAsset.java @@ -48,7 +48,7 @@ /** * MediaAsset */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class MediaAsset { public static final String SERIALIZED_NAME_W = "w"; @SerializedName(SERIALIZED_NAME_W) @@ -161,10 +161,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/MetaItem.java b/client/src/main/java/com/fastcomments/model/MetaItem.java index 48d95937..d6eca2e3 100644 --- a/client/src/main/java/com/fastcomments/model/MetaItem.java +++ b/client/src/main/java/com/fastcomments/model/MetaItem.java @@ -50,7 +50,7 @@ /** * MetaItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class MetaItem { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -145,10 +145,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/ModerationAPIChildCommentsResponse.java b/client/src/main/java/com/fastcomments/model/ModerationAPIChildCommentsResponse.java new file mode 100644 index 00000000..5a71b5db --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationAPIChildCommentsResponse.java @@ -0,0 +1,337 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.ModerationAPIComment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationAPIChildCommentsResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationAPIChildCommentsResponse { + public static final String SERIALIZED_NAME_COMMENTS = "comments"; + @SerializedName(SERIALIZED_NAME_COMMENTS) + @javax.annotation.Nonnull + private List comments = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public ModerationAPIChildCommentsResponse() { + } + + public ModerationAPIChildCommentsResponse comments(@javax.annotation.Nonnull List comments) { + this.comments = comments; + return this; + } + + public ModerationAPIChildCommentsResponse addCommentsItem(ModerationAPIComment commentsItem) { + if (this.comments == null) { + this.comments = new ArrayList<>(); + } + this.comments.add(commentsItem); + return this; + } + + /** + * Get comments + * @return comments + */ + @javax.annotation.Nonnull + public List getComments() { + return comments; + } + + public void setComments(@javax.annotation.Nonnull List comments) { + this.comments = comments; + } + + + public ModerationAPIChildCommentsResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ModerationAPIChildCommentsResponse instance itself + */ + public ModerationAPIChildCommentsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationAPIChildCommentsResponse moderationAPIChildCommentsResponse = (ModerationAPIChildCommentsResponse) o; + return Objects.equals(this.comments, moderationAPIChildCommentsResponse.comments) && + Objects.equals(this.status, moderationAPIChildCommentsResponse.status)&& + Objects.equals(this.additionalProperties, moderationAPIChildCommentsResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(comments, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationAPIChildCommentsResponse {\n"); + sb.append(" comments: ").append(toIndentedString(comments)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("comments", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("comments", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationAPIChildCommentsResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationAPIChildCommentsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationAPIChildCommentsResponse is not found in the empty JSON string", ModerationAPIChildCommentsResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationAPIChildCommentsResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("comments") != null) { + if (!jsonObj.get("comments").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `comments` to be an array in the JSON string but got `%s`", jsonObj.get("comments").toString())); + } + JsonArray jsonArraycomments = jsonObj.getAsJsonArray("comments"); + // validate the required field `comments` (array) + for (int i = 0; i < jsonArraycomments.size(); i++) { + ModerationAPIComment.validateJsonElement(jsonArraycomments.get(i)); + } + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationAPIChildCommentsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationAPIChildCommentsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPIChildCommentsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationAPIChildCommentsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ModerationAPIChildCommentsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + ModerationAPIChildCommentsResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationAPIChildCommentsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationAPIChildCommentsResponse + * @throws IOException if the JSON string is invalid with respect to ModerationAPIChildCommentsResponse + */ + public static ModerationAPIChildCommentsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationAPIChildCommentsResponse.class); + } + + /** + * Convert an instance of ModerationAPIChildCommentsResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationAPIComment.java b/client/src/main/java/com/fastcomments/model/ModerationAPIComment.java new file mode 100644 index 00000000..cf2b0999 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationAPIComment.java @@ -0,0 +1,1370 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.CommentUserBadgeInfo; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationAPIComment + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationAPIComment { + public static final String SERIALIZED_NAME_IS_LOCAL_DELETED = "isLocalDeleted"; + @SerializedName(SERIALIZED_NAME_IS_LOCAL_DELETED) + @javax.annotation.Nullable + private Boolean isLocalDeleted; + + public static final String SERIALIZED_NAME_REPLY_COUNT = "replyCount"; + @SerializedName(SERIALIZED_NAME_REPLY_COUNT) + @javax.annotation.Nullable + private Double replyCount; + + public static final String SERIALIZED_NAME_FEEDBACK_RESULTS = "feedbackResults"; + @SerializedName(SERIALIZED_NAME_FEEDBACK_RESULTS) + @javax.annotation.Nullable + private List feedbackResults = new ArrayList<>(); + + public static final String SERIALIZED_NAME_IS_VOTED_UP = "isVotedUp"; + @SerializedName(SERIALIZED_NAME_IS_VOTED_UP) + @javax.annotation.Nullable + private Boolean isVotedUp; + + public static final String SERIALIZED_NAME_IS_VOTED_DOWN = "isVotedDown"; + @SerializedName(SERIALIZED_NAME_IS_VOTED_DOWN) + @javax.annotation.Nullable + private Boolean isVotedDown; + + public static final String SERIALIZED_NAME_MY_VOTE_ID = "myVoteId"; + @SerializedName(SERIALIZED_NAME_MY_VOTE_ID) + @javax.annotation.Nullable + private String myVoteId; + + public static final String SERIALIZED_NAME_ID = "_id"; + @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nonnull + private String id; + + public static final String SERIALIZED_NAME_TENANT_ID = "tenantId"; + @SerializedName(SERIALIZED_NAME_TENANT_ID) + @javax.annotation.Nonnull + private String tenantId; + + public static final String SERIALIZED_NAME_URL_ID = "urlId"; + @SerializedName(SERIALIZED_NAME_URL_ID) + @javax.annotation.Nonnull + private String urlId; + + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + @javax.annotation.Nonnull + private String url; + + public static final String SERIALIZED_NAME_PAGE_TITLE = "pageTitle"; + @SerializedName(SERIALIZED_NAME_PAGE_TITLE) + @javax.annotation.Nullable + private String pageTitle; + + public static final String SERIALIZED_NAME_USER_ID = "userId"; + @SerializedName(SERIALIZED_NAME_USER_ID) + @javax.annotation.Nullable + private String userId; + + public static final String SERIALIZED_NAME_ANON_USER_ID = "anonUserId"; + @SerializedName(SERIALIZED_NAME_ANON_USER_ID) + @javax.annotation.Nullable + private String anonUserId; + + public static final String SERIALIZED_NAME_COMMENTER_NAME = "commenterName"; + @SerializedName(SERIALIZED_NAME_COMMENTER_NAME) + @javax.annotation.Nonnull + private String commenterName; + + public static final String SERIALIZED_NAME_COMMENTER_LINK = "commenterLink"; + @SerializedName(SERIALIZED_NAME_COMMENTER_LINK) + @javax.annotation.Nullable + private String commenterLink; + + public static final String SERIALIZED_NAME_COMMENT_H_T_M_L = "commentHTML"; + @SerializedName(SERIALIZED_NAME_COMMENT_H_T_M_L) + @javax.annotation.Nonnull + private String commentHTML; + + public static final String SERIALIZED_NAME_PARENT_ID = "parentId"; + @SerializedName(SERIALIZED_NAME_PARENT_ID) + @javax.annotation.Nullable + private String parentId; + + public static final String SERIALIZED_NAME_DATE = "date"; + @SerializedName(SERIALIZED_NAME_DATE) + @javax.annotation.Nullable + private OffsetDateTime date; + + public static final String SERIALIZED_NAME_LOCAL_DATE_STRING = "localDateString"; + @SerializedName(SERIALIZED_NAME_LOCAL_DATE_STRING) + @javax.annotation.Nullable + private String localDateString; + + public static final String SERIALIZED_NAME_VOTES = "votes"; + @SerializedName(SERIALIZED_NAME_VOTES) + @javax.annotation.Nullable + private Double votes; + + public static final String SERIALIZED_NAME_VOTES_UP = "votesUp"; + @SerializedName(SERIALIZED_NAME_VOTES_UP) + @javax.annotation.Nullable + private Double votesUp; + + public static final String SERIALIZED_NAME_VOTES_DOWN = "votesDown"; + @SerializedName(SERIALIZED_NAME_VOTES_DOWN) + @javax.annotation.Nullable + private Double votesDown; + + public static final String SERIALIZED_NAME_EXPIRE_AT = "expireAt"; + @SerializedName(SERIALIZED_NAME_EXPIRE_AT) + @javax.annotation.Nullable + private OffsetDateTime expireAt; + + public static final String SERIALIZED_NAME_REVIEWED = "reviewed"; + @SerializedName(SERIALIZED_NAME_REVIEWED) + @javax.annotation.Nullable + private Boolean reviewed; + + public static final String SERIALIZED_NAME_AVATAR_SRC = "avatarSrc"; + @SerializedName(SERIALIZED_NAME_AVATAR_SRC) + @javax.annotation.Nullable + private String avatarSrc; + + public static final String SERIALIZED_NAME_IS_SPAM = "isSpam"; + @SerializedName(SERIALIZED_NAME_IS_SPAM) + @javax.annotation.Nullable + private Boolean isSpam; + + public static final String SERIALIZED_NAME_PERM_NOT_SPAM = "permNotSpam"; + @SerializedName(SERIALIZED_NAME_PERM_NOT_SPAM) + @javax.annotation.Nullable + private Boolean permNotSpam; + + public static final String SERIALIZED_NAME_HAS_LINKS = "hasLinks"; + @SerializedName(SERIALIZED_NAME_HAS_LINKS) + @javax.annotation.Nullable + private Boolean hasLinks; + + public static final String SERIALIZED_NAME_HAS_CODE = "hasCode"; + @SerializedName(SERIALIZED_NAME_HAS_CODE) + @javax.annotation.Nullable + private Boolean hasCode; + + public static final String SERIALIZED_NAME_APPROVED = "approved"; + @SerializedName(SERIALIZED_NAME_APPROVED) + @javax.annotation.Nonnull + private Boolean approved; + + public static final String SERIALIZED_NAME_LOCALE = "locale"; + @SerializedName(SERIALIZED_NAME_LOCALE) + @javax.annotation.Nullable + private String locale; + + public static final String SERIALIZED_NAME_IS_BANNED_USER = "isBannedUser"; + @SerializedName(SERIALIZED_NAME_IS_BANNED_USER) + @javax.annotation.Nullable + private Boolean isBannedUser; + + public static final String SERIALIZED_NAME_IS_BY_ADMIN = "isByAdmin"; + @SerializedName(SERIALIZED_NAME_IS_BY_ADMIN) + @javax.annotation.Nullable + private Boolean isByAdmin; + + public static final String SERIALIZED_NAME_IS_BY_MODERATOR = "isByModerator"; + @SerializedName(SERIALIZED_NAME_IS_BY_MODERATOR) + @javax.annotation.Nullable + private Boolean isByModerator; + + public static final String SERIALIZED_NAME_IS_PINNED = "isPinned"; + @SerializedName(SERIALIZED_NAME_IS_PINNED) + @javax.annotation.Nullable + private Boolean isPinned; + + public static final String SERIALIZED_NAME_IS_LOCKED = "isLocked"; + @SerializedName(SERIALIZED_NAME_IS_LOCKED) + @javax.annotation.Nullable + private Boolean isLocked; + + public static final String SERIALIZED_NAME_FLAG_COUNT = "flagCount"; + @SerializedName(SERIALIZED_NAME_FLAG_COUNT) + @javax.annotation.Nullable + private Double flagCount; + + public static final String SERIALIZED_NAME_DISPLAY_LABEL = "displayLabel"; + @SerializedName(SERIALIZED_NAME_DISPLAY_LABEL) + @javax.annotation.Nullable + private String displayLabel; + + public static final String SERIALIZED_NAME_BADGES = "badges"; + @SerializedName(SERIALIZED_NAME_BADGES) + @javax.annotation.Nullable + private List badges; + + public static final String SERIALIZED_NAME_VERIFIED = "verified"; + @SerializedName(SERIALIZED_NAME_VERIFIED) + @javax.annotation.Nonnull + private Boolean verified; + + public static final String SERIALIZED_NAME_FEEDBACK_IDS = "feedbackIds"; + @SerializedName(SERIALIZED_NAME_FEEDBACK_IDS) + @javax.annotation.Nullable + private List feedbackIds = new ArrayList<>(); + + public static final String SERIALIZED_NAME_IS_DELETED = "isDeleted"; + @SerializedName(SERIALIZED_NAME_IS_DELETED) + @javax.annotation.Nullable + private Boolean isDeleted; + + public ModerationAPIComment() { + } + + public ModerationAPIComment isLocalDeleted(@javax.annotation.Nullable Boolean isLocalDeleted) { + this.isLocalDeleted = isLocalDeleted; + return this; + } + + /** + * Get isLocalDeleted + * @return isLocalDeleted + */ + @javax.annotation.Nullable + public Boolean getIsLocalDeleted() { + return isLocalDeleted; + } + + public void setIsLocalDeleted(@javax.annotation.Nullable Boolean isLocalDeleted) { + this.isLocalDeleted = isLocalDeleted; + } + + + public ModerationAPIComment replyCount(@javax.annotation.Nullable Double replyCount) { + this.replyCount = replyCount; + return this; + } + + /** + * Get replyCount + * @return replyCount + */ + @javax.annotation.Nullable + public Double getReplyCount() { + return replyCount; + } + + public void setReplyCount(@javax.annotation.Nullable Double replyCount) { + this.replyCount = replyCount; + } + + + public ModerationAPIComment feedbackResults(@javax.annotation.Nullable List feedbackResults) { + this.feedbackResults = feedbackResults; + return this; + } + + public ModerationAPIComment addFeedbackResultsItem(String feedbackResultsItem) { + if (this.feedbackResults == null) { + this.feedbackResults = new ArrayList<>(); + } + this.feedbackResults.add(feedbackResultsItem); + return this; + } + + /** + * Get feedbackResults + * @return feedbackResults + */ + @javax.annotation.Nullable + public List getFeedbackResults() { + return feedbackResults; + } + + public void setFeedbackResults(@javax.annotation.Nullable List feedbackResults) { + this.feedbackResults = feedbackResults; + } + + + public ModerationAPIComment isVotedUp(@javax.annotation.Nullable Boolean isVotedUp) { + this.isVotedUp = isVotedUp; + return this; + } + + /** + * Get isVotedUp + * @return isVotedUp + */ + @javax.annotation.Nullable + public Boolean getIsVotedUp() { + return isVotedUp; + } + + public void setIsVotedUp(@javax.annotation.Nullable Boolean isVotedUp) { + this.isVotedUp = isVotedUp; + } + + + public ModerationAPIComment isVotedDown(@javax.annotation.Nullable Boolean isVotedDown) { + this.isVotedDown = isVotedDown; + return this; + } + + /** + * Get isVotedDown + * @return isVotedDown + */ + @javax.annotation.Nullable + public Boolean getIsVotedDown() { + return isVotedDown; + } + + public void setIsVotedDown(@javax.annotation.Nullable Boolean isVotedDown) { + this.isVotedDown = isVotedDown; + } + + + public ModerationAPIComment myVoteId(@javax.annotation.Nullable String myVoteId) { + this.myVoteId = myVoteId; + return this; + } + + /** + * Get myVoteId + * @return myVoteId + */ + @javax.annotation.Nullable + public String getMyVoteId() { + return myVoteId; + } + + public void setMyVoteId(@javax.annotation.Nullable String myVoteId) { + this.myVoteId = myVoteId; + } + + + public ModerationAPIComment id(@javax.annotation.Nonnull String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @javax.annotation.Nonnull + public String getId() { + return id; + } + + public void setId(@javax.annotation.Nonnull String id) { + this.id = id; + } + + + public ModerationAPIComment tenantId(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; + return this; + } + + /** + * Get tenantId + * @return tenantId + */ + @javax.annotation.Nonnull + public String getTenantId() { + return tenantId; + } + + public void setTenantId(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; + } + + + public ModerationAPIComment urlId(@javax.annotation.Nonnull String urlId) { + this.urlId = urlId; + return this; + } + + /** + * Get urlId + * @return urlId + */ + @javax.annotation.Nonnull + public String getUrlId() { + return urlId; + } + + public void setUrlId(@javax.annotation.Nonnull String urlId) { + this.urlId = urlId; + } + + + public ModerationAPIComment url(@javax.annotation.Nonnull String url) { + this.url = url; + return this; + } + + /** + * Get url + * @return url + */ + @javax.annotation.Nonnull + public String getUrl() { + return url; + } + + public void setUrl(@javax.annotation.Nonnull String url) { + this.url = url; + } + + + public ModerationAPIComment pageTitle(@javax.annotation.Nullable String pageTitle) { + this.pageTitle = pageTitle; + return this; + } + + /** + * Get pageTitle + * @return pageTitle + */ + @javax.annotation.Nullable + public String getPageTitle() { + return pageTitle; + } + + public void setPageTitle(@javax.annotation.Nullable String pageTitle) { + this.pageTitle = pageTitle; + } + + + public ModerationAPIComment userId(@javax.annotation.Nullable String userId) { + this.userId = userId; + return this; + } + + /** + * Get userId + * @return userId + */ + @javax.annotation.Nullable + public String getUserId() { + return userId; + } + + public void setUserId(@javax.annotation.Nullable String userId) { + this.userId = userId; + } + + + public ModerationAPIComment anonUserId(@javax.annotation.Nullable String anonUserId) { + this.anonUserId = anonUserId; + return this; + } + + /** + * Get anonUserId + * @return anonUserId + */ + @javax.annotation.Nullable + public String getAnonUserId() { + return anonUserId; + } + + public void setAnonUserId(@javax.annotation.Nullable String anonUserId) { + this.anonUserId = anonUserId; + } + + + public ModerationAPIComment commenterName(@javax.annotation.Nonnull String commenterName) { + this.commenterName = commenterName; + return this; + } + + /** + * Get commenterName + * @return commenterName + */ + @javax.annotation.Nonnull + public String getCommenterName() { + return commenterName; + } + + public void setCommenterName(@javax.annotation.Nonnull String commenterName) { + this.commenterName = commenterName; + } + + + public ModerationAPIComment commenterLink(@javax.annotation.Nullable String commenterLink) { + this.commenterLink = commenterLink; + return this; + } + + /** + * Get commenterLink + * @return commenterLink + */ + @javax.annotation.Nullable + public String getCommenterLink() { + return commenterLink; + } + + public void setCommenterLink(@javax.annotation.Nullable String commenterLink) { + this.commenterLink = commenterLink; + } + + + public ModerationAPIComment commentHTML(@javax.annotation.Nonnull String commentHTML) { + this.commentHTML = commentHTML; + return this; + } + + /** + * Get commentHTML + * @return commentHTML + */ + @javax.annotation.Nonnull + public String getCommentHTML() { + return commentHTML; + } + + public void setCommentHTML(@javax.annotation.Nonnull String commentHTML) { + this.commentHTML = commentHTML; + } + + + public ModerationAPIComment parentId(@javax.annotation.Nullable String parentId) { + this.parentId = parentId; + return this; + } + + /** + * Get parentId + * @return parentId + */ + @javax.annotation.Nullable + public String getParentId() { + return parentId; + } + + public void setParentId(@javax.annotation.Nullable String parentId) { + this.parentId = parentId; + } + + + public ModerationAPIComment date(@javax.annotation.Nullable OffsetDateTime date) { + this.date = date; + return this; + } + + /** + * Get date + * @return date + */ + @javax.annotation.Nullable + public OffsetDateTime getDate() { + return date; + } + + public void setDate(@javax.annotation.Nullable OffsetDateTime date) { + this.date = date; + } + + + public ModerationAPIComment localDateString(@javax.annotation.Nullable String localDateString) { + this.localDateString = localDateString; + return this; + } + + /** + * Get localDateString + * @return localDateString + */ + @javax.annotation.Nullable + public String getLocalDateString() { + return localDateString; + } + + public void setLocalDateString(@javax.annotation.Nullable String localDateString) { + this.localDateString = localDateString; + } + + + public ModerationAPIComment votes(@javax.annotation.Nullable Double votes) { + this.votes = votes; + return this; + } + + /** + * Get votes + * @return votes + */ + @javax.annotation.Nullable + public Double getVotes() { + return votes; + } + + public void setVotes(@javax.annotation.Nullable Double votes) { + this.votes = votes; + } + + + public ModerationAPIComment votesUp(@javax.annotation.Nullable Double votesUp) { + this.votesUp = votesUp; + return this; + } + + /** + * Get votesUp + * @return votesUp + */ + @javax.annotation.Nullable + public Double getVotesUp() { + return votesUp; + } + + public void setVotesUp(@javax.annotation.Nullable Double votesUp) { + this.votesUp = votesUp; + } + + + public ModerationAPIComment votesDown(@javax.annotation.Nullable Double votesDown) { + this.votesDown = votesDown; + return this; + } + + /** + * Get votesDown + * @return votesDown + */ + @javax.annotation.Nullable + public Double getVotesDown() { + return votesDown; + } + + public void setVotesDown(@javax.annotation.Nullable Double votesDown) { + this.votesDown = votesDown; + } + + + public ModerationAPIComment expireAt(@javax.annotation.Nullable OffsetDateTime expireAt) { + this.expireAt = expireAt; + return this; + } + + /** + * Get expireAt + * @return expireAt + */ + @javax.annotation.Nullable + public OffsetDateTime getExpireAt() { + return expireAt; + } + + public void setExpireAt(@javax.annotation.Nullable OffsetDateTime expireAt) { + this.expireAt = expireAt; + } + + + public ModerationAPIComment reviewed(@javax.annotation.Nullable Boolean reviewed) { + this.reviewed = reviewed; + return this; + } + + /** + * Get reviewed + * @return reviewed + */ + @javax.annotation.Nullable + public Boolean getReviewed() { + return reviewed; + } + + public void setReviewed(@javax.annotation.Nullable Boolean reviewed) { + this.reviewed = reviewed; + } + + + public ModerationAPIComment avatarSrc(@javax.annotation.Nullable String avatarSrc) { + this.avatarSrc = avatarSrc; + return this; + } + + /** + * Get avatarSrc + * @return avatarSrc + */ + @javax.annotation.Nullable + public String getAvatarSrc() { + return avatarSrc; + } + + public void setAvatarSrc(@javax.annotation.Nullable String avatarSrc) { + this.avatarSrc = avatarSrc; + } + + + public ModerationAPIComment isSpam(@javax.annotation.Nullable Boolean isSpam) { + this.isSpam = isSpam; + return this; + } + + /** + * Get isSpam + * @return isSpam + */ + @javax.annotation.Nullable + public Boolean getIsSpam() { + return isSpam; + } + + public void setIsSpam(@javax.annotation.Nullable Boolean isSpam) { + this.isSpam = isSpam; + } + + + public ModerationAPIComment permNotSpam(@javax.annotation.Nullable Boolean permNotSpam) { + this.permNotSpam = permNotSpam; + return this; + } + + /** + * Get permNotSpam + * @return permNotSpam + */ + @javax.annotation.Nullable + public Boolean getPermNotSpam() { + return permNotSpam; + } + + public void setPermNotSpam(@javax.annotation.Nullable Boolean permNotSpam) { + this.permNotSpam = permNotSpam; + } + + + public ModerationAPIComment hasLinks(@javax.annotation.Nullable Boolean hasLinks) { + this.hasLinks = hasLinks; + return this; + } + + /** + * Get hasLinks + * @return hasLinks + */ + @javax.annotation.Nullable + public Boolean getHasLinks() { + return hasLinks; + } + + public void setHasLinks(@javax.annotation.Nullable Boolean hasLinks) { + this.hasLinks = hasLinks; + } + + + public ModerationAPIComment hasCode(@javax.annotation.Nullable Boolean hasCode) { + this.hasCode = hasCode; + return this; + } + + /** + * Get hasCode + * @return hasCode + */ + @javax.annotation.Nullable + public Boolean getHasCode() { + return hasCode; + } + + public void setHasCode(@javax.annotation.Nullable Boolean hasCode) { + this.hasCode = hasCode; + } + + + public ModerationAPIComment approved(@javax.annotation.Nonnull Boolean approved) { + this.approved = approved; + return this; + } + + /** + * Get approved + * @return approved + */ + @javax.annotation.Nonnull + public Boolean getApproved() { + return approved; + } + + public void setApproved(@javax.annotation.Nonnull Boolean approved) { + this.approved = approved; + } + + + public ModerationAPIComment locale(@javax.annotation.Nullable String locale) { + this.locale = locale; + return this; + } + + /** + * Get locale + * @return locale + */ + @javax.annotation.Nullable + public String getLocale() { + return locale; + } + + public void setLocale(@javax.annotation.Nullable String locale) { + this.locale = locale; + } + + + public ModerationAPIComment isBannedUser(@javax.annotation.Nullable Boolean isBannedUser) { + this.isBannedUser = isBannedUser; + return this; + } + + /** + * Get isBannedUser + * @return isBannedUser + */ + @javax.annotation.Nullable + public Boolean getIsBannedUser() { + return isBannedUser; + } + + public void setIsBannedUser(@javax.annotation.Nullable Boolean isBannedUser) { + this.isBannedUser = isBannedUser; + } + + + public ModerationAPIComment isByAdmin(@javax.annotation.Nullable Boolean isByAdmin) { + this.isByAdmin = isByAdmin; + return this; + } + + /** + * Get isByAdmin + * @return isByAdmin + */ + @javax.annotation.Nullable + public Boolean getIsByAdmin() { + return isByAdmin; + } + + public void setIsByAdmin(@javax.annotation.Nullable Boolean isByAdmin) { + this.isByAdmin = isByAdmin; + } + + + public ModerationAPIComment isByModerator(@javax.annotation.Nullable Boolean isByModerator) { + this.isByModerator = isByModerator; + return this; + } + + /** + * Get isByModerator + * @return isByModerator + */ + @javax.annotation.Nullable + public Boolean getIsByModerator() { + return isByModerator; + } + + public void setIsByModerator(@javax.annotation.Nullable Boolean isByModerator) { + this.isByModerator = isByModerator; + } + + + public ModerationAPIComment isPinned(@javax.annotation.Nullable Boolean isPinned) { + this.isPinned = isPinned; + return this; + } + + /** + * Get isPinned + * @return isPinned + */ + @javax.annotation.Nullable + public Boolean getIsPinned() { + return isPinned; + } + + public void setIsPinned(@javax.annotation.Nullable Boolean isPinned) { + this.isPinned = isPinned; + } + + + public ModerationAPIComment isLocked(@javax.annotation.Nullable Boolean isLocked) { + this.isLocked = isLocked; + return this; + } + + /** + * Get isLocked + * @return isLocked + */ + @javax.annotation.Nullable + public Boolean getIsLocked() { + return isLocked; + } + + public void setIsLocked(@javax.annotation.Nullable Boolean isLocked) { + this.isLocked = isLocked; + } + + + public ModerationAPIComment flagCount(@javax.annotation.Nullable Double flagCount) { + this.flagCount = flagCount; + return this; + } + + /** + * Get flagCount + * @return flagCount + */ + @javax.annotation.Nullable + public Double getFlagCount() { + return flagCount; + } + + public void setFlagCount(@javax.annotation.Nullable Double flagCount) { + this.flagCount = flagCount; + } + + + public ModerationAPIComment displayLabel(@javax.annotation.Nullable String displayLabel) { + this.displayLabel = displayLabel; + return this; + } + + /** + * Get displayLabel + * @return displayLabel + */ + @javax.annotation.Nullable + public String getDisplayLabel() { + return displayLabel; + } + + public void setDisplayLabel(@javax.annotation.Nullable String displayLabel) { + this.displayLabel = displayLabel; + } + + + public ModerationAPIComment badges(@javax.annotation.Nullable List badges) { + this.badges = badges; + return this; + } + + public ModerationAPIComment addBadgesItem(CommentUserBadgeInfo badgesItem) { + if (this.badges == null) { + this.badges = new ArrayList<>(); + } + this.badges.add(badgesItem); + return this; + } + + /** + * Get badges + * @return badges + */ + @javax.annotation.Nullable + public List getBadges() { + return badges; + } + + public void setBadges(@javax.annotation.Nullable List badges) { + this.badges = badges; + } + + + public ModerationAPIComment verified(@javax.annotation.Nonnull Boolean verified) { + this.verified = verified; + return this; + } + + /** + * Get verified + * @return verified + */ + @javax.annotation.Nonnull + public Boolean getVerified() { + return verified; + } + + public void setVerified(@javax.annotation.Nonnull Boolean verified) { + this.verified = verified; + } + + + public ModerationAPIComment feedbackIds(@javax.annotation.Nullable List feedbackIds) { + this.feedbackIds = feedbackIds; + return this; + } + + public ModerationAPIComment addFeedbackIdsItem(String feedbackIdsItem) { + if (this.feedbackIds == null) { + this.feedbackIds = new ArrayList<>(); + } + this.feedbackIds.add(feedbackIdsItem); + return this; + } + + /** + * Get feedbackIds + * @return feedbackIds + */ + @javax.annotation.Nullable + public List getFeedbackIds() { + return feedbackIds; + } + + public void setFeedbackIds(@javax.annotation.Nullable List feedbackIds) { + this.feedbackIds = feedbackIds; + } + + + public ModerationAPIComment isDeleted(@javax.annotation.Nullable Boolean isDeleted) { + this.isDeleted = isDeleted; + return this; + } + + /** + * Get isDeleted + * @return isDeleted + */ + @javax.annotation.Nullable + public Boolean getIsDeleted() { + return isDeleted; + } + + public void setIsDeleted(@javax.annotation.Nullable Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationAPIComment moderationAPIComment = (ModerationAPIComment) o; + return Objects.equals(this.isLocalDeleted, moderationAPIComment.isLocalDeleted) && + Objects.equals(this.replyCount, moderationAPIComment.replyCount) && + Objects.equals(this.feedbackResults, moderationAPIComment.feedbackResults) && + Objects.equals(this.isVotedUp, moderationAPIComment.isVotedUp) && + Objects.equals(this.isVotedDown, moderationAPIComment.isVotedDown) && + Objects.equals(this.myVoteId, moderationAPIComment.myVoteId) && + Objects.equals(this.id, moderationAPIComment.id) && + Objects.equals(this.tenantId, moderationAPIComment.tenantId) && + Objects.equals(this.urlId, moderationAPIComment.urlId) && + Objects.equals(this.url, moderationAPIComment.url) && + Objects.equals(this.pageTitle, moderationAPIComment.pageTitle) && + Objects.equals(this.userId, moderationAPIComment.userId) && + Objects.equals(this.anonUserId, moderationAPIComment.anonUserId) && + Objects.equals(this.commenterName, moderationAPIComment.commenterName) && + Objects.equals(this.commenterLink, moderationAPIComment.commenterLink) && + Objects.equals(this.commentHTML, moderationAPIComment.commentHTML) && + Objects.equals(this.parentId, moderationAPIComment.parentId) && + Objects.equals(this.date, moderationAPIComment.date) && + Objects.equals(this.localDateString, moderationAPIComment.localDateString) && + Objects.equals(this.votes, moderationAPIComment.votes) && + Objects.equals(this.votesUp, moderationAPIComment.votesUp) && + Objects.equals(this.votesDown, moderationAPIComment.votesDown) && + Objects.equals(this.expireAt, moderationAPIComment.expireAt) && + Objects.equals(this.reviewed, moderationAPIComment.reviewed) && + Objects.equals(this.avatarSrc, moderationAPIComment.avatarSrc) && + Objects.equals(this.isSpam, moderationAPIComment.isSpam) && + Objects.equals(this.permNotSpam, moderationAPIComment.permNotSpam) && + Objects.equals(this.hasLinks, moderationAPIComment.hasLinks) && + Objects.equals(this.hasCode, moderationAPIComment.hasCode) && + Objects.equals(this.approved, moderationAPIComment.approved) && + Objects.equals(this.locale, moderationAPIComment.locale) && + Objects.equals(this.isBannedUser, moderationAPIComment.isBannedUser) && + Objects.equals(this.isByAdmin, moderationAPIComment.isByAdmin) && + Objects.equals(this.isByModerator, moderationAPIComment.isByModerator) && + Objects.equals(this.isPinned, moderationAPIComment.isPinned) && + Objects.equals(this.isLocked, moderationAPIComment.isLocked) && + Objects.equals(this.flagCount, moderationAPIComment.flagCount) && + Objects.equals(this.displayLabel, moderationAPIComment.displayLabel) && + Objects.equals(this.badges, moderationAPIComment.badges) && + Objects.equals(this.verified, moderationAPIComment.verified) && + Objects.equals(this.feedbackIds, moderationAPIComment.feedbackIds) && + Objects.equals(this.isDeleted, moderationAPIComment.isDeleted); + } + + @Override + public int hashCode() { + return Objects.hash(isLocalDeleted, replyCount, feedbackResults, isVotedUp, isVotedDown, myVoteId, id, tenantId, urlId, url, pageTitle, userId, anonUserId, commenterName, commenterLink, commentHTML, parentId, date, localDateString, votes, votesUp, votesDown, expireAt, reviewed, avatarSrc, isSpam, permNotSpam, hasLinks, hasCode, approved, locale, isBannedUser, isByAdmin, isByModerator, isPinned, isLocked, flagCount, displayLabel, badges, verified, feedbackIds, isDeleted); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationAPIComment {\n"); + sb.append(" isLocalDeleted: ").append(toIndentedString(isLocalDeleted)).append("\n"); + sb.append(" replyCount: ").append(toIndentedString(replyCount)).append("\n"); + sb.append(" feedbackResults: ").append(toIndentedString(feedbackResults)).append("\n"); + sb.append(" isVotedUp: ").append(toIndentedString(isVotedUp)).append("\n"); + sb.append(" isVotedDown: ").append(toIndentedString(isVotedDown)).append("\n"); + sb.append(" myVoteId: ").append(toIndentedString(myVoteId)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); + sb.append(" urlId: ").append(toIndentedString(urlId)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" pageTitle: ").append(toIndentedString(pageTitle)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" anonUserId: ").append(toIndentedString(anonUserId)).append("\n"); + sb.append(" commenterName: ").append(toIndentedString(commenterName)).append("\n"); + sb.append(" commenterLink: ").append(toIndentedString(commenterLink)).append("\n"); + sb.append(" commentHTML: ").append(toIndentedString(commentHTML)).append("\n"); + sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n"); + sb.append(" date: ").append(toIndentedString(date)).append("\n"); + sb.append(" localDateString: ").append(toIndentedString(localDateString)).append("\n"); + sb.append(" votes: ").append(toIndentedString(votes)).append("\n"); + sb.append(" votesUp: ").append(toIndentedString(votesUp)).append("\n"); + sb.append(" votesDown: ").append(toIndentedString(votesDown)).append("\n"); + sb.append(" expireAt: ").append(toIndentedString(expireAt)).append("\n"); + sb.append(" reviewed: ").append(toIndentedString(reviewed)).append("\n"); + sb.append(" avatarSrc: ").append(toIndentedString(avatarSrc)).append("\n"); + sb.append(" isSpam: ").append(toIndentedString(isSpam)).append("\n"); + sb.append(" permNotSpam: ").append(toIndentedString(permNotSpam)).append("\n"); + sb.append(" hasLinks: ").append(toIndentedString(hasLinks)).append("\n"); + sb.append(" hasCode: ").append(toIndentedString(hasCode)).append("\n"); + sb.append(" approved: ").append(toIndentedString(approved)).append("\n"); + sb.append(" locale: ").append(toIndentedString(locale)).append("\n"); + sb.append(" isBannedUser: ").append(toIndentedString(isBannedUser)).append("\n"); + sb.append(" isByAdmin: ").append(toIndentedString(isByAdmin)).append("\n"); + sb.append(" isByModerator: ").append(toIndentedString(isByModerator)).append("\n"); + sb.append(" isPinned: ").append(toIndentedString(isPinned)).append("\n"); + sb.append(" isLocked: ").append(toIndentedString(isLocked)).append("\n"); + sb.append(" flagCount: ").append(toIndentedString(flagCount)).append("\n"); + sb.append(" displayLabel: ").append(toIndentedString(displayLabel)).append("\n"); + sb.append(" badges: ").append(toIndentedString(badges)).append("\n"); + sb.append(" verified: ").append(toIndentedString(verified)).append("\n"); + sb.append(" feedbackIds: ").append(toIndentedString(feedbackIds)).append("\n"); + sb.append(" isDeleted: ").append(toIndentedString(isDeleted)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("isLocalDeleted", "replyCount", "feedbackResults", "isVotedUp", "isVotedDown", "myVoteId", "_id", "tenantId", "urlId", "url", "pageTitle", "userId", "anonUserId", "commenterName", "commenterLink", "commentHTML", "parentId", "date", "localDateString", "votes", "votesUp", "votesDown", "expireAt", "reviewed", "avatarSrc", "isSpam", "permNotSpam", "hasLinks", "hasCode", "approved", "locale", "isBannedUser", "isByAdmin", "isByModerator", "isPinned", "isLocked", "flagCount", "displayLabel", "badges", "verified", "feedbackIds", "isDeleted")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("_id", "tenantId", "urlId", "url", "commenterName", "commentHTML", "date", "approved", "locale", "verified")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationAPIComment + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationAPIComment.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationAPIComment is not found in the empty JSON string", ModerationAPIComment.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ModerationAPIComment.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ModerationAPIComment` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationAPIComment.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("feedbackResults") != null && !jsonObj.get("feedbackResults").isJsonNull() && !jsonObj.get("feedbackResults").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `feedbackResults` to be an array in the JSON string but got `%s`", jsonObj.get("feedbackResults").toString())); + } + if ((jsonObj.get("myVoteId") != null && !jsonObj.get("myVoteId").isJsonNull()) && !jsonObj.get("myVoteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `myVoteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("myVoteId").toString())); + } + if (!jsonObj.get("_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("_id").toString())); + } + if (!jsonObj.get("tenantId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tenantId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tenantId").toString())); + } + if (!jsonObj.get("urlId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `urlId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("urlId").toString())); + } + if (!jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + } + if ((jsonObj.get("pageTitle") != null && !jsonObj.get("pageTitle").isJsonNull()) && !jsonObj.get("pageTitle").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `pageTitle` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pageTitle").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("anonUserId") != null && !jsonObj.get("anonUserId").isJsonNull()) && !jsonObj.get("anonUserId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `anonUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("anonUserId").toString())); + } + if (!jsonObj.get("commenterName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `commenterName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("commenterName").toString())); + } + if ((jsonObj.get("commenterLink") != null && !jsonObj.get("commenterLink").isJsonNull()) && !jsonObj.get("commenterLink").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `commenterLink` to be a primitive type in the JSON string but got `%s`", jsonObj.get("commenterLink").toString())); + } + if (!jsonObj.get("commentHTML").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `commentHTML` to be a primitive type in the JSON string but got `%s`", jsonObj.get("commentHTML").toString())); + } + if ((jsonObj.get("parentId") != null && !jsonObj.get("parentId").isJsonNull()) && !jsonObj.get("parentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `parentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parentId").toString())); + } + if ((jsonObj.get("localDateString") != null && !jsonObj.get("localDateString").isJsonNull()) && !jsonObj.get("localDateString").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `localDateString` to be a primitive type in the JSON string but got `%s`", jsonObj.get("localDateString").toString())); + } + if ((jsonObj.get("avatarSrc") != null && !jsonObj.get("avatarSrc").isJsonNull()) && !jsonObj.get("avatarSrc").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `avatarSrc` to be a primitive type in the JSON string but got `%s`", jsonObj.get("avatarSrc").toString())); + } + if ((jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) && !jsonObj.get("locale").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `locale` to be a primitive type in the JSON string but got `%s`", jsonObj.get("locale").toString())); + } + if ((jsonObj.get("displayLabel") != null && !jsonObj.get("displayLabel").isJsonNull()) && !jsonObj.get("displayLabel").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `displayLabel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayLabel").toString())); + } + if (jsonObj.get("badges") != null && !jsonObj.get("badges").isJsonNull()) { + JsonArray jsonArraybadges = jsonObj.getAsJsonArray("badges"); + if (jsonArraybadges != null) { + // ensure the json data is an array + if (!jsonObj.get("badges").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `badges` to be an array in the JSON string but got `%s`", jsonObj.get("badges").toString())); + } + + // validate the optional field `badges` (array) + for (int i = 0; i < jsonArraybadges.size(); i++) { + CommentUserBadgeInfo.validateJsonElement(jsonArraybadges.get(i)); + }; + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("feedbackIds") != null && !jsonObj.get("feedbackIds").isJsonNull() && !jsonObj.get("feedbackIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `feedbackIds` to be an array in the JSON string but got `%s`", jsonObj.get("feedbackIds").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationAPIComment.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationAPIComment' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPIComment.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationAPIComment value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ModerationAPIComment read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationAPIComment given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationAPIComment + * @throws IOException if the JSON string is invalid with respect to ModerationAPIComment + */ + public static ModerationAPIComment fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationAPIComment.class); + } + + /** + * Convert an instance of ModerationAPIComment to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationAPICommentLog.java b/client/src/main/java/com/fastcomments/model/ModerationAPICommentLog.java new file mode 100644 index 00000000..d963f29f --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationAPICommentLog.java @@ -0,0 +1,294 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationAPICommentLog + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationAPICommentLog { + public static final String SERIALIZED_NAME_DATE = "date"; + @SerializedName(SERIALIZED_NAME_DATE) + @javax.annotation.Nonnull + private OffsetDateTime date; + + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable + private String username; + + public static final String SERIALIZED_NAME_ACTION_NAME = "actionName"; + @SerializedName(SERIALIZED_NAME_ACTION_NAME) + @javax.annotation.Nonnull + private String actionName; + + public static final String SERIALIZED_NAME_MESSAGE_H_T_M_L = "messageHTML"; + @SerializedName(SERIALIZED_NAME_MESSAGE_H_T_M_L) + @javax.annotation.Nonnull + private String messageHTML; + + public ModerationAPICommentLog() { + } + + public ModerationAPICommentLog date(@javax.annotation.Nonnull OffsetDateTime date) { + this.date = date; + return this; + } + + /** + * Get date + * @return date + */ + @javax.annotation.Nonnull + public OffsetDateTime getDate() { + return date; + } + + public void setDate(@javax.annotation.Nonnull OffsetDateTime date) { + this.date = date; + } + + + public ModerationAPICommentLog username(@javax.annotation.Nullable String username) { + this.username = username; + return this; + } + + /** + * Get username + * @return username + */ + @javax.annotation.Nullable + public String getUsername() { + return username; + } + + public void setUsername(@javax.annotation.Nullable String username) { + this.username = username; + } + + + public ModerationAPICommentLog actionName(@javax.annotation.Nonnull String actionName) { + this.actionName = actionName; + return this; + } + + /** + * Get actionName + * @return actionName + */ + @javax.annotation.Nonnull + public String getActionName() { + return actionName; + } + + public void setActionName(@javax.annotation.Nonnull String actionName) { + this.actionName = actionName; + } + + + public ModerationAPICommentLog messageHTML(@javax.annotation.Nonnull String messageHTML) { + this.messageHTML = messageHTML; + return this; + } + + /** + * Get messageHTML + * @return messageHTML + */ + @javax.annotation.Nonnull + public String getMessageHTML() { + return messageHTML; + } + + public void setMessageHTML(@javax.annotation.Nonnull String messageHTML) { + this.messageHTML = messageHTML; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationAPICommentLog moderationAPICommentLog = (ModerationAPICommentLog) o; + return Objects.equals(this.date, moderationAPICommentLog.date) && + Objects.equals(this.username, moderationAPICommentLog.username) && + Objects.equals(this.actionName, moderationAPICommentLog.actionName) && + Objects.equals(this.messageHTML, moderationAPICommentLog.messageHTML); + } + + @Override + public int hashCode() { + return Objects.hash(date, username, actionName, messageHTML); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationAPICommentLog {\n"); + sb.append(" date: ").append(toIndentedString(date)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" actionName: ").append(toIndentedString(actionName)).append("\n"); + sb.append(" messageHTML: ").append(toIndentedString(messageHTML)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("date", "username", "actionName", "messageHTML")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("date", "actionName", "messageHTML")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationAPICommentLog + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationAPICommentLog.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationAPICommentLog is not found in the empty JSON string", ModerationAPICommentLog.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ModerationAPICommentLog.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ModerationAPICommentLog` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationAPICommentLog.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + } + if (!jsonObj.get("actionName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `actionName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("actionName").toString())); + } + if (!jsonObj.get("messageHTML").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `messageHTML` to be a primitive type in the JSON string but got `%s`", jsonObj.get("messageHTML").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationAPICommentLog.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationAPICommentLog' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPICommentLog.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationAPICommentLog value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ModerationAPICommentLog read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationAPICommentLog given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationAPICommentLog + * @throws IOException if the JSON string is invalid with respect to ModerationAPICommentLog + */ + public static ModerationAPICommentLog fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationAPICommentLog.class); + } + + /** + * Convert an instance of ModerationAPICommentLog to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationAPICommentResponse.java b/client/src/main/java/com/fastcomments/model/ModerationAPICommentResponse.java new file mode 100644 index 00000000..eca6d246 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationAPICommentResponse.java @@ -0,0 +1,319 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.ModerationAPIComment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationAPICommentResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationAPICommentResponse { + public static final String SERIALIZED_NAME_COMMENT = "comment"; + @SerializedName(SERIALIZED_NAME_COMMENT) + @javax.annotation.Nonnull + private ModerationAPIComment comment; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public ModerationAPICommentResponse() { + } + + public ModerationAPICommentResponse comment(@javax.annotation.Nonnull ModerationAPIComment comment) { + this.comment = comment; + return this; + } + + /** + * Get comment + * @return comment + */ + @javax.annotation.Nonnull + public ModerationAPIComment getComment() { + return comment; + } + + public void setComment(@javax.annotation.Nonnull ModerationAPIComment comment) { + this.comment = comment; + } + + + public ModerationAPICommentResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ModerationAPICommentResponse instance itself + */ + public ModerationAPICommentResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationAPICommentResponse moderationAPICommentResponse = (ModerationAPICommentResponse) o; + return Objects.equals(this.comment, moderationAPICommentResponse.comment) && + Objects.equals(this.status, moderationAPICommentResponse.status)&& + Objects.equals(this.additionalProperties, moderationAPICommentResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(comment, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationAPICommentResponse {\n"); + sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("comment", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("comment", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationAPICommentResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationAPICommentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationAPICommentResponse is not found in the empty JSON string", ModerationAPICommentResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationAPICommentResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `comment` + ModerationAPIComment.validateJsonElement(jsonObj.get("comment")); + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationAPICommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationAPICommentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPICommentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationAPICommentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ModerationAPICommentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + ModerationAPICommentResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationAPICommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationAPICommentResponse + * @throws IOException if the JSON string is invalid with respect to ModerationAPICommentResponse + */ + public static ModerationAPICommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationAPICommentResponse.class); + } + + /** + * Convert an instance of ModerationAPICommentResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationAPICountCommentsResponse.java b/client/src/main/java/com/fastcomments/model/ModerationAPICountCommentsResponse.java new file mode 100644 index 00000000..3a58c493 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationAPICountCommentsResponse.java @@ -0,0 +1,235 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationAPICountCommentsResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationAPICountCommentsResponse { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public static final String SERIALIZED_NAME_COUNT = "count"; + @SerializedName(SERIALIZED_NAME_COUNT) + @javax.annotation.Nonnull + private Double count; + + public ModerationAPICountCommentsResponse() { + } + + public ModerationAPICountCommentsResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + + public ModerationAPICountCommentsResponse count(@javax.annotation.Nonnull Double count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + */ + @javax.annotation.Nonnull + public Double getCount() { + return count; + } + + public void setCount(@javax.annotation.Nonnull Double count) { + this.count = count; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationAPICountCommentsResponse moderationAPICountCommentsResponse = (ModerationAPICountCommentsResponse) o; + return Objects.equals(this.status, moderationAPICountCommentsResponse.status) && + Objects.equals(this.count, moderationAPICountCommentsResponse.count); + } + + @Override + public int hashCode() { + return Objects.hash(status, count); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationAPICountCommentsResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("status", "count")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status", "count")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationAPICountCommentsResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationAPICountCommentsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationAPICountCommentsResponse is not found in the empty JSON string", ModerationAPICountCommentsResponse.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ModerationAPICountCommentsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ModerationAPICountCommentsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationAPICountCommentsResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationAPICountCommentsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationAPICountCommentsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPICountCommentsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationAPICountCommentsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ModerationAPICountCommentsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationAPICountCommentsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationAPICountCommentsResponse + * @throws IOException if the JSON string is invalid with respect to ModerationAPICountCommentsResponse + */ + public static ModerationAPICountCommentsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationAPICountCommentsResponse.class); + } + + /** + * Convert an instance of ModerationAPICountCommentsResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationAPIGetCommentIdsResponse.java b/client/src/main/java/com/fastcomments/model/ModerationAPIGetCommentIdsResponse.java new file mode 100644 index 00000000..604b8959 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationAPIGetCommentIdsResponse.java @@ -0,0 +1,358 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationAPIGetCommentIdsResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationAPIGetCommentIdsResponse { + public static final String SERIALIZED_NAME_IDS = "ids"; + @SerializedName(SERIALIZED_NAME_IDS) + @javax.annotation.Nonnull + private List ids = new ArrayList<>(); + + public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; + @SerializedName(SERIALIZED_NAME_HAS_MORE) + @javax.annotation.Nonnull + private Boolean hasMore; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public ModerationAPIGetCommentIdsResponse() { + } + + public ModerationAPIGetCommentIdsResponse ids(@javax.annotation.Nonnull List ids) { + this.ids = ids; + return this; + } + + public ModerationAPIGetCommentIdsResponse addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList<>(); + } + this.ids.add(idsItem); + return this; + } + + /** + * Get ids + * @return ids + */ + @javax.annotation.Nonnull + public List getIds() { + return ids; + } + + public void setIds(@javax.annotation.Nonnull List ids) { + this.ids = ids; + } + + + public ModerationAPIGetCommentIdsResponse hasMore(@javax.annotation.Nonnull Boolean hasMore) { + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + */ + @javax.annotation.Nonnull + public Boolean getHasMore() { + return hasMore; + } + + public void setHasMore(@javax.annotation.Nonnull Boolean hasMore) { + this.hasMore = hasMore; + } + + + public ModerationAPIGetCommentIdsResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ModerationAPIGetCommentIdsResponse instance itself + */ + public ModerationAPIGetCommentIdsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationAPIGetCommentIdsResponse moderationAPIGetCommentIdsResponse = (ModerationAPIGetCommentIdsResponse) o; + return Objects.equals(this.ids, moderationAPIGetCommentIdsResponse.ids) && + Objects.equals(this.hasMore, moderationAPIGetCommentIdsResponse.hasMore) && + Objects.equals(this.status, moderationAPIGetCommentIdsResponse.status)&& + Objects.equals(this.additionalProperties, moderationAPIGetCommentIdsResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(ids, hasMore, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationAPIGetCommentIdsResponse {\n"); + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("ids", "hasMore", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("ids", "hasMore", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationAPIGetCommentIdsResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationAPIGetCommentIdsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationAPIGetCommentIdsResponse is not found in the empty JSON string", ModerationAPIGetCommentIdsResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationAPIGetCommentIdsResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the required json array is present + if (jsonObj.get("ids") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("ids").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `ids` to be an array in the JSON string but got `%s`", jsonObj.get("ids").toString())); + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationAPIGetCommentIdsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationAPIGetCommentIdsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPIGetCommentIdsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationAPIGetCommentIdsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ModerationAPIGetCommentIdsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + ModerationAPIGetCommentIdsResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationAPIGetCommentIdsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationAPIGetCommentIdsResponse + * @throws IOException if the JSON string is invalid with respect to ModerationAPIGetCommentIdsResponse + */ + public static ModerationAPIGetCommentIdsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationAPIGetCommentIdsResponse.class); + } + + /** + * Convert an instance of ModerationAPIGetCommentIdsResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationAPIGetCommentsResponse.java b/client/src/main/java/com/fastcomments/model/ModerationAPIGetCommentsResponse.java new file mode 100644 index 00000000..9e23e5ac --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationAPIGetCommentsResponse.java @@ -0,0 +1,313 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.ModerationAPIComment; +import com.fastcomments.model.ModerationFilter; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationAPIGetCommentsResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationAPIGetCommentsResponse { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public static final String SERIALIZED_NAME_TRANSLATIONS = "translations"; + @SerializedName(SERIALIZED_NAME_TRANSLATIONS) + @javax.annotation.Nonnull + private Object translations; + + public static final String SERIALIZED_NAME_COMMENTS = "comments"; + @SerializedName(SERIALIZED_NAME_COMMENTS) + @javax.annotation.Nonnull + private List comments = new ArrayList<>(); + + public static final String SERIALIZED_NAME_MODERATION_FILTER = "moderationFilter"; + @SerializedName(SERIALIZED_NAME_MODERATION_FILTER) + @javax.annotation.Nullable + private ModerationFilter moderationFilter; + + public ModerationAPIGetCommentsResponse() { + } + + public ModerationAPIGetCommentsResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + + public ModerationAPIGetCommentsResponse translations(@javax.annotation.Nonnull Object translations) { + this.translations = translations; + return this; + } + + /** + * Get translations + * @return translations + */ + @javax.annotation.Nonnull + public Object getTranslations() { + return translations; + } + + public void setTranslations(@javax.annotation.Nonnull Object translations) { + this.translations = translations; + } + + + public ModerationAPIGetCommentsResponse comments(@javax.annotation.Nonnull List comments) { + this.comments = comments; + return this; + } + + public ModerationAPIGetCommentsResponse addCommentsItem(ModerationAPIComment commentsItem) { + if (this.comments == null) { + this.comments = new ArrayList<>(); + } + this.comments.add(commentsItem); + return this; + } + + /** + * Get comments + * @return comments + */ + @javax.annotation.Nonnull + public List getComments() { + return comments; + } + + public void setComments(@javax.annotation.Nonnull List comments) { + this.comments = comments; + } + + + public ModerationAPIGetCommentsResponse moderationFilter(@javax.annotation.Nullable ModerationFilter moderationFilter) { + this.moderationFilter = moderationFilter; + return this; + } + + /** + * Get moderationFilter + * @return moderationFilter + */ + @javax.annotation.Nullable + public ModerationFilter getModerationFilter() { + return moderationFilter; + } + + public void setModerationFilter(@javax.annotation.Nullable ModerationFilter moderationFilter) { + this.moderationFilter = moderationFilter; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationAPIGetCommentsResponse moderationAPIGetCommentsResponse = (ModerationAPIGetCommentsResponse) o; + return Objects.equals(this.status, moderationAPIGetCommentsResponse.status) && + Objects.equals(this.translations, moderationAPIGetCommentsResponse.translations) && + Objects.equals(this.comments, moderationAPIGetCommentsResponse.comments) && + Objects.equals(this.moderationFilter, moderationAPIGetCommentsResponse.moderationFilter); + } + + @Override + public int hashCode() { + return Objects.hash(status, translations, comments, moderationFilter); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationAPIGetCommentsResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" translations: ").append(toIndentedString(translations)).append("\n"); + sb.append(" comments: ").append(toIndentedString(comments)).append("\n"); + sb.append(" moderationFilter: ").append(toIndentedString(moderationFilter)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("status", "translations", "comments", "moderationFilter")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status", "translations", "comments")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationAPIGetCommentsResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationAPIGetCommentsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationAPIGetCommentsResponse is not found in the empty JSON string", ModerationAPIGetCommentsResponse.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ModerationAPIGetCommentsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ModerationAPIGetCommentsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationAPIGetCommentsResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + if (jsonObj.get("comments") != null) { + if (!jsonObj.get("comments").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `comments` to be an array in the JSON string but got `%s`", jsonObj.get("comments").toString())); + } + JsonArray jsonArraycomments = jsonObj.getAsJsonArray("comments"); + // validate the required field `comments` (array) + for (int i = 0; i < jsonArraycomments.size(); i++) { + ModerationAPIComment.validateJsonElement(jsonArraycomments.get(i)); + } + } + // validate the optional field `moderationFilter` + if (jsonObj.get("moderationFilter") != null && !jsonObj.get("moderationFilter").isJsonNull()) { + ModerationFilter.validateJsonElement(jsonObj.get("moderationFilter")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationAPIGetCommentsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationAPIGetCommentsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPIGetCommentsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationAPIGetCommentsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ModerationAPIGetCommentsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationAPIGetCommentsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationAPIGetCommentsResponse + * @throws IOException if the JSON string is invalid with respect to ModerationAPIGetCommentsResponse + */ + public static ModerationAPIGetCommentsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationAPIGetCommentsResponse.class); + } + + /** + * Convert an instance of ModerationAPIGetCommentsResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationAPIGetLogsResponse.java b/client/src/main/java/com/fastcomments/model/ModerationAPIGetLogsResponse.java new file mode 100644 index 00000000..dc750f19 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationAPIGetLogsResponse.java @@ -0,0 +1,337 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.ModerationAPICommentLog; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationAPIGetLogsResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationAPIGetLogsResponse { + public static final String SERIALIZED_NAME_LOGS = "logs"; + @SerializedName(SERIALIZED_NAME_LOGS) + @javax.annotation.Nonnull + private List logs = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public ModerationAPIGetLogsResponse() { + } + + public ModerationAPIGetLogsResponse logs(@javax.annotation.Nonnull List logs) { + this.logs = logs; + return this; + } + + public ModerationAPIGetLogsResponse addLogsItem(ModerationAPICommentLog logsItem) { + if (this.logs == null) { + this.logs = new ArrayList<>(); + } + this.logs.add(logsItem); + return this; + } + + /** + * Get logs + * @return logs + */ + @javax.annotation.Nonnull + public List getLogs() { + return logs; + } + + public void setLogs(@javax.annotation.Nonnull List logs) { + this.logs = logs; + } + + + public ModerationAPIGetLogsResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ModerationAPIGetLogsResponse instance itself + */ + public ModerationAPIGetLogsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationAPIGetLogsResponse moderationAPIGetLogsResponse = (ModerationAPIGetLogsResponse) o; + return Objects.equals(this.logs, moderationAPIGetLogsResponse.logs) && + Objects.equals(this.status, moderationAPIGetLogsResponse.status)&& + Objects.equals(this.additionalProperties, moderationAPIGetLogsResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(logs, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationAPIGetLogsResponse {\n"); + sb.append(" logs: ").append(toIndentedString(logs)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("logs", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("logs", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationAPIGetLogsResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationAPIGetLogsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationAPIGetLogsResponse is not found in the empty JSON string", ModerationAPIGetLogsResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationAPIGetLogsResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("logs") != null) { + if (!jsonObj.get("logs").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `logs` to be an array in the JSON string but got `%s`", jsonObj.get("logs").toString())); + } + JsonArray jsonArraylogs = jsonObj.getAsJsonArray("logs"); + // validate the required field `logs` (array) + for (int i = 0; i < jsonArraylogs.size(); i++) { + ModerationAPICommentLog.validateJsonElement(jsonArraylogs.get(i)); + } + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationAPIGetLogsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationAPIGetLogsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPIGetLogsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationAPIGetLogsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ModerationAPIGetLogsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + ModerationAPIGetLogsResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationAPIGetLogsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationAPIGetLogsResponse + * @throws IOException if the JSON string is invalid with respect to ModerationAPIGetLogsResponse + */ + public static ModerationAPIGetLogsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationAPIGetLogsResponse.class); + } + + /** + * Convert an instance of ModerationAPIGetLogsResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationCommentSearchResponse.java b/client/src/main/java/com/fastcomments/model/ModerationCommentSearchResponse.java new file mode 100644 index 00000000..ea394388 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationCommentSearchResponse.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationCommentSearchResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationCommentSearchResponse { + public static final String SERIALIZED_NAME_COMMENT_COUNT = "commentCount"; + @SerializedName(SERIALIZED_NAME_COMMENT_COUNT) + @javax.annotation.Nonnull + private Integer commentCount; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public ModerationCommentSearchResponse() { + } + + public ModerationCommentSearchResponse commentCount(@javax.annotation.Nonnull Integer commentCount) { + this.commentCount = commentCount; + return this; + } + + /** + * Get commentCount + * @return commentCount + */ + @javax.annotation.Nonnull + public Integer getCommentCount() { + return commentCount; + } + + public void setCommentCount(@javax.annotation.Nonnull Integer commentCount) { + this.commentCount = commentCount; + } + + + public ModerationCommentSearchResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ModerationCommentSearchResponse instance itself + */ + public ModerationCommentSearchResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationCommentSearchResponse moderationCommentSearchResponse = (ModerationCommentSearchResponse) o; + return Objects.equals(this.commentCount, moderationCommentSearchResponse.commentCount) && + Objects.equals(this.status, moderationCommentSearchResponse.status)&& + Objects.equals(this.additionalProperties, moderationCommentSearchResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(commentCount, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationCommentSearchResponse {\n"); + sb.append(" commentCount: ").append(toIndentedString(commentCount)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("commentCount", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("commentCount", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationCommentSearchResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationCommentSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationCommentSearchResponse is not found in the empty JSON string", ModerationCommentSearchResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationCommentSearchResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationCommentSearchResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationCommentSearchResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationCommentSearchResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationCommentSearchResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ModerationCommentSearchResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + ModerationCommentSearchResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationCommentSearchResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationCommentSearchResponse + * @throws IOException if the JSON string is invalid with respect to ModerationCommentSearchResponse + */ + public static ModerationCommentSearchResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationCommentSearchResponse.class); + } + + /** + * Convert an instance of ModerationCommentSearchResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationExportResponse.java b/client/src/main/java/com/fastcomments/model/ModerationExportResponse.java new file mode 100644 index 00000000..b2157d11 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationExportResponse.java @@ -0,0 +1,238 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationExportResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationExportResponse { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private String status; + + public static final String SERIALIZED_NAME_BATCH_JOB_ID = "batchJobId"; + @SerializedName(SERIALIZED_NAME_BATCH_JOB_ID) + @javax.annotation.Nonnull + private String batchJobId; + + public ModerationExportResponse() { + } + + public ModerationExportResponse status(@javax.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public String getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull String status) { + this.status = status; + } + + + public ModerationExportResponse batchJobId(@javax.annotation.Nonnull String batchJobId) { + this.batchJobId = batchJobId; + return this; + } + + /** + * Get batchJobId + * @return batchJobId + */ + @javax.annotation.Nonnull + public String getBatchJobId() { + return batchJobId; + } + + public void setBatchJobId(@javax.annotation.Nonnull String batchJobId) { + this.batchJobId = batchJobId; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationExportResponse moderationExportResponse = (ModerationExportResponse) o; + return Objects.equals(this.status, moderationExportResponse.status) && + Objects.equals(this.batchJobId, moderationExportResponse.batchJobId); + } + + @Override + public int hashCode() { + return Objects.hash(status, batchJobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationExportResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" batchJobId: ").append(toIndentedString(batchJobId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("status", "batchJobId")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status", "batchJobId")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationExportResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationExportResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationExportResponse is not found in the empty JSON string", ModerationExportResponse.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ModerationExportResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ModerationExportResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationExportResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("batchJobId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `batchJobId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("batchJobId").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationExportResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationExportResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationExportResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationExportResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ModerationExportResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationExportResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationExportResponse + * @throws IOException if the JSON string is invalid with respect to ModerationExportResponse + */ + public static ModerationExportResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationExportResponse.class); + } + + /** + * Convert an instance of ModerationExportResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationExportStatusResponse.java b/client/src/main/java/com/fastcomments/model/ModerationExportStatusResponse.java new file mode 100644 index 00000000..4ab008f2 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationExportStatusResponse.java @@ -0,0 +1,293 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationExportStatusResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationExportStatusResponse { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private String status; + + public static final String SERIALIZED_NAME_JOB_STATUS = "jobStatus"; + @SerializedName(SERIALIZED_NAME_JOB_STATUS) + @javax.annotation.Nonnull + private String jobStatus; + + public static final String SERIALIZED_NAME_RECORD_COUNT = "recordCount"; + @SerializedName(SERIALIZED_NAME_RECORD_COUNT) + @javax.annotation.Nonnull + private Integer recordCount; + + public static final String SERIALIZED_NAME_DOWNLOAD_URL = "downloadUrl"; + @SerializedName(SERIALIZED_NAME_DOWNLOAD_URL) + @javax.annotation.Nullable + private String downloadUrl; + + public ModerationExportStatusResponse() { + } + + public ModerationExportStatusResponse status(@javax.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public String getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull String status) { + this.status = status; + } + + + public ModerationExportStatusResponse jobStatus(@javax.annotation.Nonnull String jobStatus) { + this.jobStatus = jobStatus; + return this; + } + + /** + * Get jobStatus + * @return jobStatus + */ + @javax.annotation.Nonnull + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(@javax.annotation.Nonnull String jobStatus) { + this.jobStatus = jobStatus; + } + + + public ModerationExportStatusResponse recordCount(@javax.annotation.Nonnull Integer recordCount) { + this.recordCount = recordCount; + return this; + } + + /** + * Get recordCount + * @return recordCount + */ + @javax.annotation.Nonnull + public Integer getRecordCount() { + return recordCount; + } + + public void setRecordCount(@javax.annotation.Nonnull Integer recordCount) { + this.recordCount = recordCount; + } + + + public ModerationExportStatusResponse downloadUrl(@javax.annotation.Nullable String downloadUrl) { + this.downloadUrl = downloadUrl; + return this; + } + + /** + * Get downloadUrl + * @return downloadUrl + */ + @javax.annotation.Nullable + public String getDownloadUrl() { + return downloadUrl; + } + + public void setDownloadUrl(@javax.annotation.Nullable String downloadUrl) { + this.downloadUrl = downloadUrl; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationExportStatusResponse moderationExportStatusResponse = (ModerationExportStatusResponse) o; + return Objects.equals(this.status, moderationExportStatusResponse.status) && + Objects.equals(this.jobStatus, moderationExportStatusResponse.jobStatus) && + Objects.equals(this.recordCount, moderationExportStatusResponse.recordCount) && + Objects.equals(this.downloadUrl, moderationExportStatusResponse.downloadUrl); + } + + @Override + public int hashCode() { + return Objects.hash(status, jobStatus, recordCount, downloadUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationExportStatusResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" jobStatus: ").append(toIndentedString(jobStatus)).append("\n"); + sb.append(" recordCount: ").append(toIndentedString(recordCount)).append("\n"); + sb.append(" downloadUrl: ").append(toIndentedString(downloadUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("status", "jobStatus", "recordCount", "downloadUrl")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status", "jobStatus", "recordCount")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationExportStatusResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationExportStatusResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationExportStatusResponse is not found in the empty JSON string", ModerationExportStatusResponse.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ModerationExportStatusResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ModerationExportStatusResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationExportStatusResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("jobStatus").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `jobStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("jobStatus").toString())); + } + if ((jsonObj.get("downloadUrl") != null && !jsonObj.get("downloadUrl").isJsonNull()) && !jsonObj.get("downloadUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `downloadUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("downloadUrl").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationExportStatusResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationExportStatusResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationExportStatusResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationExportStatusResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ModerationExportStatusResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationExportStatusResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationExportStatusResponse + * @throws IOException if the JSON string is invalid with respect to ModerationExportStatusResponse + */ + public static ModerationExportStatusResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationExportStatusResponse.class); + } + + /** + * Convert an instance of ModerationExportStatusResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationFilter.java b/client/src/main/java/com/fastcomments/model/ModerationFilter.java new file mode 100644 index 00000000..a1050e81 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationFilter.java @@ -0,0 +1,523 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationFilter + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationFilter { + public static final String SERIALIZED_NAME_REVIEWED = "reviewed"; + @SerializedName(SERIALIZED_NAME_REVIEWED) + @javax.annotation.Nullable + private Boolean reviewed; + + public static final String SERIALIZED_NAME_APPROVED = "approved"; + @SerializedName(SERIALIZED_NAME_APPROVED) + @javax.annotation.Nullable + private Boolean approved; + + public static final String SERIALIZED_NAME_IS_SPAM = "isSpam"; + @SerializedName(SERIALIZED_NAME_IS_SPAM) + @javax.annotation.Nullable + private Boolean isSpam; + + public static final String SERIALIZED_NAME_IS_BANNED_USER = "isBannedUser"; + @SerializedName(SERIALIZED_NAME_IS_BANNED_USER) + @javax.annotation.Nullable + private Boolean isBannedUser; + + public static final String SERIALIZED_NAME_IS_LOCKED = "isLocked"; + @SerializedName(SERIALIZED_NAME_IS_LOCKED) + @javax.annotation.Nullable + private Boolean isLocked; + + public static final String SERIALIZED_NAME_FLAG_COUNT_GT = "flagCountGt"; + @SerializedName(SERIALIZED_NAME_FLAG_COUNT_GT) + @javax.annotation.Nullable + private Double flagCountGt; + + public static final String SERIALIZED_NAME_USER_ID = "userId"; + @SerializedName(SERIALIZED_NAME_USER_ID) + @javax.annotation.Nullable + private String userId; + + public static final String SERIALIZED_NAME_URL_ID = "urlId"; + @SerializedName(SERIALIZED_NAME_URL_ID) + @javax.annotation.Nullable + private String urlId; + + public static final String SERIALIZED_NAME_DOMAIN = "domain"; + @SerializedName(SERIALIZED_NAME_DOMAIN) + @javax.annotation.Nullable + private String domain; + + public static final String SERIALIZED_NAME_MODERATION_GROUP_IDS = "moderationGroupIds"; + @SerializedName(SERIALIZED_NAME_MODERATION_GROUP_IDS) + @javax.annotation.Nullable + private List moderationGroupIds = new ArrayList<>(); + + public static final String SERIALIZED_NAME_COMMENT_TEXT_SEARCH = "commentTextSearch"; + @SerializedName(SERIALIZED_NAME_COMMENT_TEXT_SEARCH) + @javax.annotation.Nullable + private List commentTextSearch = new ArrayList<>(); + + public static final String SERIALIZED_NAME_EXACT_COMMENT_TEXT = "exactCommentText"; + @SerializedName(SERIALIZED_NAME_EXACT_COMMENT_TEXT) + @javax.annotation.Nullable + private String exactCommentText; + + public ModerationFilter() { + } + + public ModerationFilter reviewed(@javax.annotation.Nullable Boolean reviewed) { + this.reviewed = reviewed; + return this; + } + + /** + * Get reviewed + * @return reviewed + */ + @javax.annotation.Nullable + public Boolean getReviewed() { + return reviewed; + } + + public void setReviewed(@javax.annotation.Nullable Boolean reviewed) { + this.reviewed = reviewed; + } + + + public ModerationFilter approved(@javax.annotation.Nullable Boolean approved) { + this.approved = approved; + return this; + } + + /** + * Get approved + * @return approved + */ + @javax.annotation.Nullable + public Boolean getApproved() { + return approved; + } + + public void setApproved(@javax.annotation.Nullable Boolean approved) { + this.approved = approved; + } + + + public ModerationFilter isSpam(@javax.annotation.Nullable Boolean isSpam) { + this.isSpam = isSpam; + return this; + } + + /** + * Get isSpam + * @return isSpam + */ + @javax.annotation.Nullable + public Boolean getIsSpam() { + return isSpam; + } + + public void setIsSpam(@javax.annotation.Nullable Boolean isSpam) { + this.isSpam = isSpam; + } + + + public ModerationFilter isBannedUser(@javax.annotation.Nullable Boolean isBannedUser) { + this.isBannedUser = isBannedUser; + return this; + } + + /** + * Get isBannedUser + * @return isBannedUser + */ + @javax.annotation.Nullable + public Boolean getIsBannedUser() { + return isBannedUser; + } + + public void setIsBannedUser(@javax.annotation.Nullable Boolean isBannedUser) { + this.isBannedUser = isBannedUser; + } + + + public ModerationFilter isLocked(@javax.annotation.Nullable Boolean isLocked) { + this.isLocked = isLocked; + return this; + } + + /** + * Get isLocked + * @return isLocked + */ + @javax.annotation.Nullable + public Boolean getIsLocked() { + return isLocked; + } + + public void setIsLocked(@javax.annotation.Nullable Boolean isLocked) { + this.isLocked = isLocked; + } + + + public ModerationFilter flagCountGt(@javax.annotation.Nullable Double flagCountGt) { + this.flagCountGt = flagCountGt; + return this; + } + + /** + * Get flagCountGt + * @return flagCountGt + */ + @javax.annotation.Nullable + public Double getFlagCountGt() { + return flagCountGt; + } + + public void setFlagCountGt(@javax.annotation.Nullable Double flagCountGt) { + this.flagCountGt = flagCountGt; + } + + + public ModerationFilter userId(@javax.annotation.Nullable String userId) { + this.userId = userId; + return this; + } + + /** + * Get userId + * @return userId + */ + @javax.annotation.Nullable + public String getUserId() { + return userId; + } + + public void setUserId(@javax.annotation.Nullable String userId) { + this.userId = userId; + } + + + public ModerationFilter urlId(@javax.annotation.Nullable String urlId) { + this.urlId = urlId; + return this; + } + + /** + * Get urlId + * @return urlId + */ + @javax.annotation.Nullable + public String getUrlId() { + return urlId; + } + + public void setUrlId(@javax.annotation.Nullable String urlId) { + this.urlId = urlId; + } + + + public ModerationFilter domain(@javax.annotation.Nullable String domain) { + this.domain = domain; + return this; + } + + /** + * Get domain + * @return domain + */ + @javax.annotation.Nullable + public String getDomain() { + return domain; + } + + public void setDomain(@javax.annotation.Nullable String domain) { + this.domain = domain; + } + + + public ModerationFilter moderationGroupIds(@javax.annotation.Nullable List moderationGroupIds) { + this.moderationGroupIds = moderationGroupIds; + return this; + } + + public ModerationFilter addModerationGroupIdsItem(String moderationGroupIdsItem) { + if (this.moderationGroupIds == null) { + this.moderationGroupIds = new ArrayList<>(); + } + this.moderationGroupIds.add(moderationGroupIdsItem); + return this; + } + + /** + * Get moderationGroupIds + * @return moderationGroupIds + */ + @javax.annotation.Nullable + public List getModerationGroupIds() { + return moderationGroupIds; + } + + public void setModerationGroupIds(@javax.annotation.Nullable List moderationGroupIds) { + this.moderationGroupIds = moderationGroupIds; + } + + + public ModerationFilter commentTextSearch(@javax.annotation.Nullable List commentTextSearch) { + this.commentTextSearch = commentTextSearch; + return this; + } + + public ModerationFilter addCommentTextSearchItem(String commentTextSearchItem) { + if (this.commentTextSearch == null) { + this.commentTextSearch = new ArrayList<>(); + } + this.commentTextSearch.add(commentTextSearchItem); + return this; + } + + /** + * Text search terms. Each term is matched case-insensitively against the comment text. A term wrapped in quotes means exact phrase match. + * @return commentTextSearch + */ + @javax.annotation.Nullable + public List getCommentTextSearch() { + return commentTextSearch; + } + + public void setCommentTextSearch(@javax.annotation.Nullable List commentTextSearch) { + this.commentTextSearch = commentTextSearch; + } + + + public ModerationFilter exactCommentText(@javax.annotation.Nullable String exactCommentText) { + this.exactCommentText = exactCommentText; + return this; + } + + /** + * 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. + * @return exactCommentText + */ + @javax.annotation.Nullable + public String getExactCommentText() { + return exactCommentText; + } + + public void setExactCommentText(@javax.annotation.Nullable String exactCommentText) { + this.exactCommentText = exactCommentText; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationFilter moderationFilter = (ModerationFilter) o; + return Objects.equals(this.reviewed, moderationFilter.reviewed) && + Objects.equals(this.approved, moderationFilter.approved) && + Objects.equals(this.isSpam, moderationFilter.isSpam) && + Objects.equals(this.isBannedUser, moderationFilter.isBannedUser) && + Objects.equals(this.isLocked, moderationFilter.isLocked) && + Objects.equals(this.flagCountGt, moderationFilter.flagCountGt) && + Objects.equals(this.userId, moderationFilter.userId) && + Objects.equals(this.urlId, moderationFilter.urlId) && + Objects.equals(this.domain, moderationFilter.domain) && + Objects.equals(this.moderationGroupIds, moderationFilter.moderationGroupIds) && + Objects.equals(this.commentTextSearch, moderationFilter.commentTextSearch) && + Objects.equals(this.exactCommentText, moderationFilter.exactCommentText); + } + + @Override + public int hashCode() { + return Objects.hash(reviewed, approved, isSpam, isBannedUser, isLocked, flagCountGt, userId, urlId, domain, moderationGroupIds, commentTextSearch, exactCommentText); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationFilter {\n"); + sb.append(" reviewed: ").append(toIndentedString(reviewed)).append("\n"); + sb.append(" approved: ").append(toIndentedString(approved)).append("\n"); + sb.append(" isSpam: ").append(toIndentedString(isSpam)).append("\n"); + sb.append(" isBannedUser: ").append(toIndentedString(isBannedUser)).append("\n"); + sb.append(" isLocked: ").append(toIndentedString(isLocked)).append("\n"); + sb.append(" flagCountGt: ").append(toIndentedString(flagCountGt)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" urlId: ").append(toIndentedString(urlId)).append("\n"); + sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); + sb.append(" moderationGroupIds: ").append(toIndentedString(moderationGroupIds)).append("\n"); + sb.append(" commentTextSearch: ").append(toIndentedString(commentTextSearch)).append("\n"); + sb.append(" exactCommentText: ").append(toIndentedString(exactCommentText)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("reviewed", "approved", "isSpam", "isBannedUser", "isLocked", "flagCountGt", "userId", "urlId", "domain", "moderationGroupIds", "commentTextSearch", "exactCommentText")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationFilter + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationFilter is not found in the empty JSON string", ModerationFilter.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ModerationFilter.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ModerationFilter` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("urlId") != null && !jsonObj.get("urlId").isJsonNull()) && !jsonObj.get("urlId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `urlId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("urlId").toString())); + } + if ((jsonObj.get("domain") != null && !jsonObj.get("domain").isJsonNull()) && !jsonObj.get("domain").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `domain` to be a primitive type in the JSON string but got `%s`", jsonObj.get("domain").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("moderationGroupIds") != null && !jsonObj.get("moderationGroupIds").isJsonNull() && !jsonObj.get("moderationGroupIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `moderationGroupIds` to be an array in the JSON string but got `%s`", jsonObj.get("moderationGroupIds").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("commentTextSearch") != null && !jsonObj.get("commentTextSearch").isJsonNull() && !jsonObj.get("commentTextSearch").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `commentTextSearch` to be an array in the JSON string but got `%s`", jsonObj.get("commentTextSearch").toString())); + } + if ((jsonObj.get("exactCommentText") != null && !jsonObj.get("exactCommentText").isJsonNull()) && !jsonObj.get("exactCommentText").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `exactCommentText` to be a primitive type in the JSON string but got `%s`", jsonObj.get("exactCommentText").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationFilter.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationFilter' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationFilter.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationFilter value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ModerationFilter read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationFilter given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationFilter + * @throws IOException if the JSON string is invalid with respect to ModerationFilter + */ + public static ModerationFilter fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationFilter.class); + } + + /** + * Convert an instance of ModerationFilter to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationPageSearchProjected.java b/client/src/main/java/com/fastcomments/model/ModerationPageSearchProjected.java new file mode 100644 index 00000000..4f5e849b --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationPageSearchProjected.java @@ -0,0 +1,293 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationPageSearchProjected + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationPageSearchProjected { + public static final String SERIALIZED_NAME_URL_ID = "urlId"; + @SerializedName(SERIALIZED_NAME_URL_ID) + @javax.annotation.Nonnull + private String urlId; + + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + @javax.annotation.Nonnull + private String url; + + public static final String SERIALIZED_NAME_TITLE = "title"; + @SerializedName(SERIALIZED_NAME_TITLE) + @javax.annotation.Nonnull + private String title; + + public static final String SERIALIZED_NAME_COMMENT_COUNT = "commentCount"; + @SerializedName(SERIALIZED_NAME_COMMENT_COUNT) + @javax.annotation.Nonnull + private Double commentCount; + + public ModerationPageSearchProjected() { + } + + public ModerationPageSearchProjected urlId(@javax.annotation.Nonnull String urlId) { + this.urlId = urlId; + return this; + } + + /** + * Get urlId + * @return urlId + */ + @javax.annotation.Nonnull + public String getUrlId() { + return urlId; + } + + public void setUrlId(@javax.annotation.Nonnull String urlId) { + this.urlId = urlId; + } + + + public ModerationPageSearchProjected url(@javax.annotation.Nonnull String url) { + this.url = url; + return this; + } + + /** + * Get url + * @return url + */ + @javax.annotation.Nonnull + public String getUrl() { + return url; + } + + public void setUrl(@javax.annotation.Nonnull String url) { + this.url = url; + } + + + public ModerationPageSearchProjected title(@javax.annotation.Nonnull String title) { + this.title = title; + return this; + } + + /** + * Get title + * @return title + */ + @javax.annotation.Nonnull + public String getTitle() { + return title; + } + + public void setTitle(@javax.annotation.Nonnull String title) { + this.title = title; + } + + + public ModerationPageSearchProjected commentCount(@javax.annotation.Nonnull Double commentCount) { + this.commentCount = commentCount; + return this; + } + + /** + * Get commentCount + * @return commentCount + */ + @javax.annotation.Nonnull + public Double getCommentCount() { + return commentCount; + } + + public void setCommentCount(@javax.annotation.Nonnull Double commentCount) { + this.commentCount = commentCount; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationPageSearchProjected moderationPageSearchProjected = (ModerationPageSearchProjected) o; + return Objects.equals(this.urlId, moderationPageSearchProjected.urlId) && + Objects.equals(this.url, moderationPageSearchProjected.url) && + Objects.equals(this.title, moderationPageSearchProjected.title) && + Objects.equals(this.commentCount, moderationPageSearchProjected.commentCount); + } + + @Override + public int hashCode() { + return Objects.hash(urlId, url, title, commentCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationPageSearchProjected {\n"); + sb.append(" urlId: ").append(toIndentedString(urlId)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" commentCount: ").append(toIndentedString(commentCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("urlId", "url", "title", "commentCount")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("urlId", "url", "title", "commentCount")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationPageSearchProjected + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationPageSearchProjected.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationPageSearchProjected is not found in the empty JSON string", ModerationPageSearchProjected.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ModerationPageSearchProjected.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ModerationPageSearchProjected` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationPageSearchProjected.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("urlId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `urlId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("urlId").toString())); + } + if (!jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + } + if (!jsonObj.get("title").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationPageSearchProjected.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationPageSearchProjected' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationPageSearchProjected.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationPageSearchProjected value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ModerationPageSearchProjected read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationPageSearchProjected given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationPageSearchProjected + * @throws IOException if the JSON string is invalid with respect to ModerationPageSearchProjected + */ + public static ModerationPageSearchProjected fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationPageSearchProjected.class); + } + + /** + * Convert an instance of ModerationPageSearchProjected to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationPageSearchResponse.java b/client/src/main/java/com/fastcomments/model/ModerationPageSearchResponse.java new file mode 100644 index 00000000..5c7f1cc1 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationPageSearchResponse.java @@ -0,0 +1,337 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.ModerationPageSearchProjected; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationPageSearchResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationPageSearchResponse { + public static final String SERIALIZED_NAME_PAGES = "pages"; + @SerializedName(SERIALIZED_NAME_PAGES) + @javax.annotation.Nonnull + private List pages = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public ModerationPageSearchResponse() { + } + + public ModerationPageSearchResponse pages(@javax.annotation.Nonnull List pages) { + this.pages = pages; + return this; + } + + public ModerationPageSearchResponse addPagesItem(ModerationPageSearchProjected pagesItem) { + if (this.pages == null) { + this.pages = new ArrayList<>(); + } + this.pages.add(pagesItem); + return this; + } + + /** + * Get pages + * @return pages + */ + @javax.annotation.Nonnull + public List getPages() { + return pages; + } + + public void setPages(@javax.annotation.Nonnull List pages) { + this.pages = pages; + } + + + public ModerationPageSearchResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ModerationPageSearchResponse instance itself + */ + public ModerationPageSearchResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationPageSearchResponse moderationPageSearchResponse = (ModerationPageSearchResponse) o; + return Objects.equals(this.pages, moderationPageSearchResponse.pages) && + Objects.equals(this.status, moderationPageSearchResponse.status)&& + Objects.equals(this.additionalProperties, moderationPageSearchResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(pages, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationPageSearchResponse {\n"); + sb.append(" pages: ").append(toIndentedString(pages)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("pages", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("pages", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationPageSearchResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationPageSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationPageSearchResponse is not found in the empty JSON string", ModerationPageSearchResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationPageSearchResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("pages") != null) { + if (!jsonObj.get("pages").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `pages` to be an array in the JSON string but got `%s`", jsonObj.get("pages").toString())); + } + JsonArray jsonArraypages = jsonObj.getAsJsonArray("pages"); + // validate the required field `pages` (array) + for (int i = 0; i < jsonArraypages.size(); i++) { + ModerationPageSearchProjected.validateJsonElement(jsonArraypages.get(i)); + } + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationPageSearchResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationPageSearchResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationPageSearchResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationPageSearchResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ModerationPageSearchResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + ModerationPageSearchResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationPageSearchResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationPageSearchResponse + * @throws IOException if the JSON string is invalid with respect to ModerationPageSearchResponse + */ + public static ModerationPageSearchResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationPageSearchResponse.class); + } + + /** + * Convert an instance of ModerationPageSearchResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationSiteSearchProjected.java b/client/src/main/java/com/fastcomments/model/ModerationSiteSearchProjected.java new file mode 100644 index 00000000..3a2894c6 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationSiteSearchProjected.java @@ -0,0 +1,238 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationSiteSearchProjected + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationSiteSearchProjected { + public static final String SERIALIZED_NAME_DOMAIN = "domain"; + @SerializedName(SERIALIZED_NAME_DOMAIN) + @javax.annotation.Nonnull + private String domain; + + public static final String SERIALIZED_NAME_LOGO_SRC100PX = "logoSrc100px"; + @SerializedName(SERIALIZED_NAME_LOGO_SRC100PX) + @javax.annotation.Nullable + private String logoSrc100px; + + public ModerationSiteSearchProjected() { + } + + public ModerationSiteSearchProjected domain(@javax.annotation.Nonnull String domain) { + this.domain = domain; + return this; + } + + /** + * Get domain + * @return domain + */ + @javax.annotation.Nonnull + public String getDomain() { + return domain; + } + + public void setDomain(@javax.annotation.Nonnull String domain) { + this.domain = domain; + } + + + public ModerationSiteSearchProjected logoSrc100px(@javax.annotation.Nullable String logoSrc100px) { + this.logoSrc100px = logoSrc100px; + return this; + } + + /** + * Get logoSrc100px + * @return logoSrc100px + */ + @javax.annotation.Nullable + public String getLogoSrc100px() { + return logoSrc100px; + } + + public void setLogoSrc100px(@javax.annotation.Nullable String logoSrc100px) { + this.logoSrc100px = logoSrc100px; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationSiteSearchProjected moderationSiteSearchProjected = (ModerationSiteSearchProjected) o; + return Objects.equals(this.domain, moderationSiteSearchProjected.domain) && + Objects.equals(this.logoSrc100px, moderationSiteSearchProjected.logoSrc100px); + } + + @Override + public int hashCode() { + return Objects.hash(domain, logoSrc100px); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationSiteSearchProjected {\n"); + sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); + sb.append(" logoSrc100px: ").append(toIndentedString(logoSrc100px)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("domain", "logoSrc100px")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("domain")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationSiteSearchProjected + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationSiteSearchProjected.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationSiteSearchProjected is not found in the empty JSON string", ModerationSiteSearchProjected.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ModerationSiteSearchProjected.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ModerationSiteSearchProjected` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationSiteSearchProjected.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("domain").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `domain` to be a primitive type in the JSON string but got `%s`", jsonObj.get("domain").toString())); + } + if ((jsonObj.get("logoSrc100px") != null && !jsonObj.get("logoSrc100px").isJsonNull()) && !jsonObj.get("logoSrc100px").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `logoSrc100px` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logoSrc100px").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationSiteSearchProjected.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationSiteSearchProjected' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationSiteSearchProjected.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationSiteSearchProjected value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ModerationSiteSearchProjected read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationSiteSearchProjected given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationSiteSearchProjected + * @throws IOException if the JSON string is invalid with respect to ModerationSiteSearchProjected + */ + public static ModerationSiteSearchProjected fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationSiteSearchProjected.class); + } + + /** + * Convert an instance of ModerationSiteSearchProjected to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationSiteSearchResponse.java b/client/src/main/java/com/fastcomments/model/ModerationSiteSearchResponse.java new file mode 100644 index 00000000..7390f51e --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationSiteSearchResponse.java @@ -0,0 +1,337 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.ModerationSiteSearchProjected; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationSiteSearchResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationSiteSearchResponse { + public static final String SERIALIZED_NAME_SITES = "sites"; + @SerializedName(SERIALIZED_NAME_SITES) + @javax.annotation.Nonnull + private List sites = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public ModerationSiteSearchResponse() { + } + + public ModerationSiteSearchResponse sites(@javax.annotation.Nonnull List sites) { + this.sites = sites; + return this; + } + + public ModerationSiteSearchResponse addSitesItem(ModerationSiteSearchProjected sitesItem) { + if (this.sites == null) { + this.sites = new ArrayList<>(); + } + this.sites.add(sitesItem); + return this; + } + + /** + * Get sites + * @return sites + */ + @javax.annotation.Nonnull + public List getSites() { + return sites; + } + + public void setSites(@javax.annotation.Nonnull List sites) { + this.sites = sites; + } + + + public ModerationSiteSearchResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ModerationSiteSearchResponse instance itself + */ + public ModerationSiteSearchResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationSiteSearchResponse moderationSiteSearchResponse = (ModerationSiteSearchResponse) o; + return Objects.equals(this.sites, moderationSiteSearchResponse.sites) && + Objects.equals(this.status, moderationSiteSearchResponse.status)&& + Objects.equals(this.additionalProperties, moderationSiteSearchResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(sites, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationSiteSearchResponse {\n"); + sb.append(" sites: ").append(toIndentedString(sites)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("sites", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("sites", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationSiteSearchResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationSiteSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationSiteSearchResponse is not found in the empty JSON string", ModerationSiteSearchResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationSiteSearchResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("sites") != null) { + if (!jsonObj.get("sites").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `sites` to be an array in the JSON string but got `%s`", jsonObj.get("sites").toString())); + } + JsonArray jsonArraysites = jsonObj.getAsJsonArray("sites"); + // validate the required field `sites` (array) + for (int i = 0; i < jsonArraysites.size(); i++) { + ModerationSiteSearchProjected.validateJsonElement(jsonArraysites.get(i)); + } + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationSiteSearchResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationSiteSearchResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationSiteSearchResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationSiteSearchResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ModerationSiteSearchResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + ModerationSiteSearchResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationSiteSearchResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationSiteSearchResponse + * @throws IOException if the JSON string is invalid with respect to ModerationSiteSearchResponse + */ + public static ModerationSiteSearchResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationSiteSearchResponse.class); + } + + /** + * Convert an instance of ModerationSiteSearchResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationSuggestResponse.java b/client/src/main/java/com/fastcomments/model/ModerationSuggestResponse.java new file mode 100644 index 00000000..389ede77 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationSuggestResponse.java @@ -0,0 +1,338 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.ModerationPageSearchProjected; +import com.fastcomments.model.ModerationUserSearchProjected; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationSuggestResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationSuggestResponse { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private String status; + + public static final String SERIALIZED_NAME_PAGES = "pages"; + @SerializedName(SERIALIZED_NAME_PAGES) + @javax.annotation.Nullable + private List pages = new ArrayList<>(); + + public static final String SERIALIZED_NAME_USERS = "users"; + @SerializedName(SERIALIZED_NAME_USERS) + @javax.annotation.Nullable + private List users = new ArrayList<>(); + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable + private String code; + + public ModerationSuggestResponse() { + } + + public ModerationSuggestResponse status(@javax.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public String getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull String status) { + this.status = status; + } + + + public ModerationSuggestResponse pages(@javax.annotation.Nullable List pages) { + this.pages = pages; + return this; + } + + public ModerationSuggestResponse addPagesItem(ModerationPageSearchProjected pagesItem) { + if (this.pages == null) { + this.pages = new ArrayList<>(); + } + this.pages.add(pagesItem); + return this; + } + + /** + * Get pages + * @return pages + */ + @javax.annotation.Nullable + public List getPages() { + return pages; + } + + public void setPages(@javax.annotation.Nullable List pages) { + this.pages = pages; + } + + + public ModerationSuggestResponse users(@javax.annotation.Nullable List users) { + this.users = users; + return this; + } + + public ModerationSuggestResponse addUsersItem(ModerationUserSearchProjected usersItem) { + if (this.users == null) { + this.users = new ArrayList<>(); + } + this.users.add(usersItem); + return this; + } + + /** + * Get users + * @return users + */ + @javax.annotation.Nullable + public List getUsers() { + return users; + } + + public void setUsers(@javax.annotation.Nullable List users) { + this.users = users; + } + + + public ModerationSuggestResponse code(@javax.annotation.Nullable String code) { + this.code = code; + return this; + } + + /** + * Get code + * @return code + */ + @javax.annotation.Nullable + public String getCode() { + return code; + } + + public void setCode(@javax.annotation.Nullable String code) { + this.code = code; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationSuggestResponse moderationSuggestResponse = (ModerationSuggestResponse) o; + return Objects.equals(this.status, moderationSuggestResponse.status) && + Objects.equals(this.pages, moderationSuggestResponse.pages) && + Objects.equals(this.users, moderationSuggestResponse.users) && + Objects.equals(this.code, moderationSuggestResponse.code); + } + + @Override + public int hashCode() { + return Objects.hash(status, pages, users, code); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationSuggestResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" pages: ").append(toIndentedString(pages)).append("\n"); + sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("status", "pages", "users", "code")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationSuggestResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationSuggestResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationSuggestResponse is not found in the empty JSON string", ModerationSuggestResponse.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ModerationSuggestResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ModerationSuggestResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationSuggestResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (jsonObj.get("pages") != null && !jsonObj.get("pages").isJsonNull()) { + JsonArray jsonArraypages = jsonObj.getAsJsonArray("pages"); + if (jsonArraypages != null) { + // ensure the json data is an array + if (!jsonObj.get("pages").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `pages` to be an array in the JSON string but got `%s`", jsonObj.get("pages").toString())); + } + + // validate the optional field `pages` (array) + for (int i = 0; i < jsonArraypages.size(); i++) { + ModerationPageSearchProjected.validateJsonElement(jsonArraypages.get(i)); + }; + } + } + if (jsonObj.get("users") != null && !jsonObj.get("users").isJsonNull()) { + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + if (jsonArrayusers != null) { + // ensure the json data is an array + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + } + + // validate the optional field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + ModerationUserSearchProjected.validateJsonElement(jsonArrayusers.get(i)); + }; + } + } + if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationSuggestResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationSuggestResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationSuggestResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationSuggestResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ModerationSuggestResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationSuggestResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationSuggestResponse + * @throws IOException if the JSON string is invalid with respect to ModerationSuggestResponse + */ + public static ModerationSuggestResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationSuggestResponse.class); + } + + /** + * Convert an instance of ModerationSuggestResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationUserSearchProjected.java b/client/src/main/java/com/fastcomments/model/ModerationUserSearchProjected.java new file mode 100644 index 00000000..53c44dfe --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationUserSearchProjected.java @@ -0,0 +1,296 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationUserSearchProjected + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationUserSearchProjected { + public static final String SERIALIZED_NAME_ID = "_id"; + @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nonnull + private String id; + + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nonnull + private String username; + + public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName"; + @SerializedName(SERIALIZED_NAME_DISPLAY_NAME) + @javax.annotation.Nullable + private String displayName; + + public static final String SERIALIZED_NAME_AVATAR_SRC = "avatarSrc"; + @SerializedName(SERIALIZED_NAME_AVATAR_SRC) + @javax.annotation.Nullable + private String avatarSrc; + + public ModerationUserSearchProjected() { + } + + public ModerationUserSearchProjected id(@javax.annotation.Nonnull String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @javax.annotation.Nonnull + public String getId() { + return id; + } + + public void setId(@javax.annotation.Nonnull String id) { + this.id = id; + } + + + public ModerationUserSearchProjected username(@javax.annotation.Nonnull String username) { + this.username = username; + return this; + } + + /** + * Get username + * @return username + */ + @javax.annotation.Nonnull + public String getUsername() { + return username; + } + + public void setUsername(@javax.annotation.Nonnull String username) { + this.username = username; + } + + + public ModerationUserSearchProjected displayName(@javax.annotation.Nullable String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get displayName + * @return displayName + */ + @javax.annotation.Nullable + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(@javax.annotation.Nullable String displayName) { + this.displayName = displayName; + } + + + public ModerationUserSearchProjected avatarSrc(@javax.annotation.Nullable String avatarSrc) { + this.avatarSrc = avatarSrc; + return this; + } + + /** + * Get avatarSrc + * @return avatarSrc + */ + @javax.annotation.Nullable + public String getAvatarSrc() { + return avatarSrc; + } + + public void setAvatarSrc(@javax.annotation.Nullable String avatarSrc) { + this.avatarSrc = avatarSrc; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationUserSearchProjected moderationUserSearchProjected = (ModerationUserSearchProjected) o; + return Objects.equals(this.id, moderationUserSearchProjected.id) && + Objects.equals(this.username, moderationUserSearchProjected.username) && + Objects.equals(this.displayName, moderationUserSearchProjected.displayName) && + Objects.equals(this.avatarSrc, moderationUserSearchProjected.avatarSrc); + } + + @Override + public int hashCode() { + return Objects.hash(id, username, displayName, avatarSrc); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationUserSearchProjected {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" avatarSrc: ").append(toIndentedString(avatarSrc)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("_id", "username", "displayName", "avatarSrc")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("_id", "username")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationUserSearchProjected + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationUserSearchProjected.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationUserSearchProjected is not found in the empty JSON string", ModerationUserSearchProjected.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ModerationUserSearchProjected.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ModerationUserSearchProjected` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationUserSearchProjected.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("_id").toString())); + } + if (!jsonObj.get("username").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + } + if ((jsonObj.get("displayName") != null && !jsonObj.get("displayName").isJsonNull()) && !jsonObj.get("displayName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); + } + if ((jsonObj.get("avatarSrc") != null && !jsonObj.get("avatarSrc").isJsonNull()) && !jsonObj.get("avatarSrc").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `avatarSrc` to be a primitive type in the JSON string but got `%s`", jsonObj.get("avatarSrc").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationUserSearchProjected.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationUserSearchProjected' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationUserSearchProjected.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationUserSearchProjected value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ModerationUserSearchProjected read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationUserSearchProjected given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationUserSearchProjected + * @throws IOException if the JSON string is invalid with respect to ModerationUserSearchProjected + */ + public static ModerationUserSearchProjected fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationUserSearchProjected.class); + } + + /** + * Convert an instance of ModerationUserSearchProjected to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/ModerationUserSearchResponse.java b/client/src/main/java/com/fastcomments/model/ModerationUserSearchResponse.java new file mode 100644 index 00000000..2ebb0914 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ModerationUserSearchResponse.java @@ -0,0 +1,337 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.ModerationUserSearchProjected; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * ModerationUserSearchResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class ModerationUserSearchResponse { + public static final String SERIALIZED_NAME_USERS = "users"; + @SerializedName(SERIALIZED_NAME_USERS) + @javax.annotation.Nonnull + private List users = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public ModerationUserSearchResponse() { + } + + public ModerationUserSearchResponse users(@javax.annotation.Nonnull List users) { + this.users = users; + return this; + } + + public ModerationUserSearchResponse addUsersItem(ModerationUserSearchProjected usersItem) { + if (this.users == null) { + this.users = new ArrayList<>(); + } + this.users.add(usersItem); + return this; + } + + /** + * Get users + * @return users + */ + @javax.annotation.Nonnull + public List getUsers() { + return users; + } + + public void setUsers(@javax.annotation.Nonnull List users) { + this.users = users; + } + + + public ModerationUserSearchResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ModerationUserSearchResponse instance itself + */ + public ModerationUserSearchResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModerationUserSearchResponse moderationUserSearchResponse = (ModerationUserSearchResponse) o; + return Objects.equals(this.users, moderationUserSearchResponse.users) && + Objects.equals(this.status, moderationUserSearchResponse.status)&& + Objects.equals(this.additionalProperties, moderationUserSearchResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(users, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModerationUserSearchResponse {\n"); + sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("users", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("users", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ModerationUserSearchResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ModerationUserSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ModerationUserSearchResponse is not found in the empty JSON string", ModerationUserSearchResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ModerationUserSearchResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("users") != null) { + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + } + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + // validate the required field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + ModerationUserSearchProjected.validateJsonElement(jsonArrayusers.get(i)); + } + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ModerationUserSearchResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModerationUserSearchResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModerationUserSearchResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModerationUserSearchResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ModerationUserSearchResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + ModerationUserSearchResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ModerationUserSearchResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ModerationUserSearchResponse + * @throws IOException if the JSON string is invalid with respect to ModerationUserSearchResponse + */ + public static ModerationUserSearchResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ModerationUserSearchResponse.class); + } + + /** + * Convert an instance of ModerationUserSearchResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/Moderator.java b/client/src/main/java/com/fastcomments/model/Moderator.java index 7dffcbef..19c44bcf 100644 --- a/client/src/main/java/com/fastcomments/model/Moderator.java +++ b/client/src/main/java/com/fastcomments/model/Moderator.java @@ -51,7 +51,7 @@ /** * Moderator */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class Moderator { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -588,10 +588,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -655,7 +652,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // ensure the required json array is present if (jsonObj.get("moderationGroupIds") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("moderationGroupIds").isJsonArray()) { + } else if (!jsonObj.get("moderationGroupIds").isJsonArray() && !jsonObj.get("moderationGroupIds").isJsonNull()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `moderationGroupIds` to be an array in the JSON string but got `%s`", jsonObj.get("moderationGroupIds").toString())); } } diff --git a/client/src/main/java/com/fastcomments/model/NotificationAndCount.java b/client/src/main/java/com/fastcomments/model/NotificationAndCount.java index 8f1a689b..6877a300 100644 --- a/client/src/main/java/com/fastcomments/model/NotificationAndCount.java +++ b/client/src/main/java/com/fastcomments/model/NotificationAndCount.java @@ -49,7 +49,7 @@ /** * NotificationAndCount */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class NotificationAndCount { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -136,10 +136,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/PageUserEntry.java b/client/src/main/java/com/fastcomments/model/PageUserEntry.java new file mode 100644 index 00000000..e0260620 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PageUserEntry.java @@ -0,0 +1,374 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * PageUserEntry + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class PageUserEntry { + public static final String SERIALIZED_NAME_IS_PRIVATE = "isPrivate"; + @SerializedName(SERIALIZED_NAME_IS_PRIVATE) + @javax.annotation.Nullable + private Boolean isPrivate; + + public static final String SERIALIZED_NAME_AVATAR_SRC = "avatarSrc"; + @SerializedName(SERIALIZED_NAME_AVATAR_SRC) + @javax.annotation.Nullable + private String avatarSrc; + + public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName"; + @SerializedName(SERIALIZED_NAME_DISPLAY_NAME) + @javax.annotation.Nonnull + private String displayName; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nonnull + private String id; + + public PageUserEntry() { + } + + public PageUserEntry isPrivate(@javax.annotation.Nullable Boolean isPrivate) { + this.isPrivate = isPrivate; + return this; + } + + /** + * Get isPrivate + * @return isPrivate + */ + @javax.annotation.Nullable + public Boolean getIsPrivate() { + return isPrivate; + } + + public void setIsPrivate(@javax.annotation.Nullable Boolean isPrivate) { + this.isPrivate = isPrivate; + } + + + public PageUserEntry avatarSrc(@javax.annotation.Nullable String avatarSrc) { + this.avatarSrc = avatarSrc; + return this; + } + + /** + * Get avatarSrc + * @return avatarSrc + */ + @javax.annotation.Nullable + public String getAvatarSrc() { + return avatarSrc; + } + + public void setAvatarSrc(@javax.annotation.Nullable String avatarSrc) { + this.avatarSrc = avatarSrc; + } + + + public PageUserEntry displayName(@javax.annotation.Nonnull String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get displayName + * @return displayName + */ + @javax.annotation.Nonnull + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(@javax.annotation.Nonnull String displayName) { + this.displayName = displayName; + } + + + public PageUserEntry id(@javax.annotation.Nonnull String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @javax.annotation.Nonnull + public String getId() { + return id; + } + + public void setId(@javax.annotation.Nonnull String id) { + this.id = id; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the PageUserEntry instance itself + */ + public PageUserEntry putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PageUserEntry pageUserEntry = (PageUserEntry) o; + return Objects.equals(this.isPrivate, pageUserEntry.isPrivate) && + Objects.equals(this.avatarSrc, pageUserEntry.avatarSrc) && + Objects.equals(this.displayName, pageUserEntry.displayName) && + Objects.equals(this.id, pageUserEntry.id)&& + Objects.equals(this.additionalProperties, pageUserEntry.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(isPrivate, avatarSrc, displayName, id, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PageUserEntry {\n"); + sb.append(" isPrivate: ").append(toIndentedString(isPrivate)).append("\n"); + sb.append(" avatarSrc: ").append(toIndentedString(avatarSrc)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("isPrivate", "avatarSrc", "displayName", "id")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("displayName", "id")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to PageUserEntry + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!PageUserEntry.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in PageUserEntry is not found in the empty JSON string", PageUserEntry.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PageUserEntry.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("avatarSrc") != null && !jsonObj.get("avatarSrc").isJsonNull()) && !jsonObj.get("avatarSrc").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `avatarSrc` to be a primitive type in the JSON string but got `%s`", jsonObj.get("avatarSrc").toString())); + } + if (!jsonObj.get("displayName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); + } + if (!jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PageUserEntry.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PageUserEntry' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PageUserEntry.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PageUserEntry value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public PageUserEntry read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + PageUserEntry instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PageUserEntry given an JSON string + * + * @param jsonString JSON string + * @return An instance of PageUserEntry + * @throws IOException if the JSON string is invalid with respect to PageUserEntry + */ + public static PageUserEntry fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PageUserEntry.class); + } + + /** + * Convert an instance of PageUserEntry to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/PageUsersInfoResponse.java b/client/src/main/java/com/fastcomments/model/PageUsersInfoResponse.java new file mode 100644 index 00000000..2b4cba14 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PageUsersInfoResponse.java @@ -0,0 +1,337 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.PageUserEntry; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * PageUsersInfoResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class PageUsersInfoResponse { + public static final String SERIALIZED_NAME_USERS = "users"; + @SerializedName(SERIALIZED_NAME_USERS) + @javax.annotation.Nonnull + private List users = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public PageUsersInfoResponse() { + } + + public PageUsersInfoResponse users(@javax.annotation.Nonnull List users) { + this.users = users; + return this; + } + + public PageUsersInfoResponse addUsersItem(PageUserEntry usersItem) { + if (this.users == null) { + this.users = new ArrayList<>(); + } + this.users.add(usersItem); + return this; + } + + /** + * Get users + * @return users + */ + @javax.annotation.Nonnull + public List getUsers() { + return users; + } + + public void setUsers(@javax.annotation.Nonnull List users) { + this.users = users; + } + + + public PageUsersInfoResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the PageUsersInfoResponse instance itself + */ + public PageUsersInfoResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PageUsersInfoResponse pageUsersInfoResponse = (PageUsersInfoResponse) o; + return Objects.equals(this.users, pageUsersInfoResponse.users) && + Objects.equals(this.status, pageUsersInfoResponse.status)&& + Objects.equals(this.additionalProperties, pageUsersInfoResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(users, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PageUsersInfoResponse {\n"); + sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("users", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("users", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to PageUsersInfoResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!PageUsersInfoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in PageUsersInfoResponse is not found in the empty JSON string", PageUsersInfoResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PageUsersInfoResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("users") != null) { + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + } + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + // validate the required field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + PageUserEntry.validateJsonElement(jsonArrayusers.get(i)); + } + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PageUsersInfoResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PageUsersInfoResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PageUsersInfoResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PageUsersInfoResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public PageUsersInfoResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + PageUsersInfoResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PageUsersInfoResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PageUsersInfoResponse + * @throws IOException if the JSON string is invalid with respect to PageUsersInfoResponse + */ + public static PageUsersInfoResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PageUsersInfoResponse.class); + } + + /** + * Convert an instance of PageUsersInfoResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/PageUsersOfflineResponse.java b/client/src/main/java/com/fastcomments/model/PageUsersOfflineResponse.java new file mode 100644 index 00000000..b9175a14 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PageUsersOfflineResponse.java @@ -0,0 +1,395 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.PageUserEntry; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * PageUsersOfflineResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class PageUsersOfflineResponse { + public static final String SERIALIZED_NAME_NEXT_AFTER_USER_ID = "nextAfterUserId"; + @SerializedName(SERIALIZED_NAME_NEXT_AFTER_USER_ID) + @javax.annotation.Nullable + private String nextAfterUserId; + + public static final String SERIALIZED_NAME_NEXT_AFTER_NAME = "nextAfterName"; + @SerializedName(SERIALIZED_NAME_NEXT_AFTER_NAME) + @javax.annotation.Nullable + private String nextAfterName; + + public static final String SERIALIZED_NAME_USERS = "users"; + @SerializedName(SERIALIZED_NAME_USERS) + @javax.annotation.Nonnull + private List users = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public PageUsersOfflineResponse() { + } + + public PageUsersOfflineResponse nextAfterUserId(@javax.annotation.Nullable String nextAfterUserId) { + this.nextAfterUserId = nextAfterUserId; + return this; + } + + /** + * Get nextAfterUserId + * @return nextAfterUserId + */ + @javax.annotation.Nullable + public String getNextAfterUserId() { + return nextAfterUserId; + } + + public void setNextAfterUserId(@javax.annotation.Nullable String nextAfterUserId) { + this.nextAfterUserId = nextAfterUserId; + } + + + public PageUsersOfflineResponse nextAfterName(@javax.annotation.Nullable String nextAfterName) { + this.nextAfterName = nextAfterName; + return this; + } + + /** + * Get nextAfterName + * @return nextAfterName + */ + @javax.annotation.Nullable + public String getNextAfterName() { + return nextAfterName; + } + + public void setNextAfterName(@javax.annotation.Nullable String nextAfterName) { + this.nextAfterName = nextAfterName; + } + + + public PageUsersOfflineResponse users(@javax.annotation.Nonnull List users) { + this.users = users; + return this; + } + + public PageUsersOfflineResponse addUsersItem(PageUserEntry usersItem) { + if (this.users == null) { + this.users = new ArrayList<>(); + } + this.users.add(usersItem); + return this; + } + + /** + * Get users + * @return users + */ + @javax.annotation.Nonnull + public List getUsers() { + return users; + } + + public void setUsers(@javax.annotation.Nonnull List users) { + this.users = users; + } + + + public PageUsersOfflineResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the PageUsersOfflineResponse instance itself + */ + public PageUsersOfflineResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PageUsersOfflineResponse pageUsersOfflineResponse = (PageUsersOfflineResponse) o; + return Objects.equals(this.nextAfterUserId, pageUsersOfflineResponse.nextAfterUserId) && + Objects.equals(this.nextAfterName, pageUsersOfflineResponse.nextAfterName) && + Objects.equals(this.users, pageUsersOfflineResponse.users) && + Objects.equals(this.status, pageUsersOfflineResponse.status)&& + Objects.equals(this.additionalProperties, pageUsersOfflineResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(nextAfterUserId, nextAfterName, users, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PageUsersOfflineResponse {\n"); + sb.append(" nextAfterUserId: ").append(toIndentedString(nextAfterUserId)).append("\n"); + sb.append(" nextAfterName: ").append(toIndentedString(nextAfterName)).append("\n"); + sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("nextAfterUserId", "nextAfterName", "users", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("nextAfterUserId", "nextAfterName", "users", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to PageUsersOfflineResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!PageUsersOfflineResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in PageUsersOfflineResponse is not found in the empty JSON string", PageUsersOfflineResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PageUsersOfflineResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("nextAfterUserId") != null && !jsonObj.get("nextAfterUserId").isJsonNull()) && !jsonObj.get("nextAfterUserId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `nextAfterUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nextAfterUserId").toString())); + } + if ((jsonObj.get("nextAfterName") != null && !jsonObj.get("nextAfterName").isJsonNull()) && !jsonObj.get("nextAfterName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `nextAfterName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nextAfterName").toString())); + } + if (jsonObj.get("users") != null) { + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + } + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + // validate the required field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + PageUserEntry.validateJsonElement(jsonArrayusers.get(i)); + } + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PageUsersOfflineResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PageUsersOfflineResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PageUsersOfflineResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PageUsersOfflineResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public PageUsersOfflineResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + PageUsersOfflineResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PageUsersOfflineResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PageUsersOfflineResponse + * @throws IOException if the JSON string is invalid with respect to PageUsersOfflineResponse + */ + public static PageUsersOfflineResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PageUsersOfflineResponse.class); + } + + /** + * Convert an instance of PageUsersOfflineResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/PageUsersOnlineResponse.java b/client/src/main/java/com/fastcomments/model/PageUsersOnlineResponse.java new file mode 100644 index 00000000..e195983a --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PageUsersOnlineResponse.java @@ -0,0 +1,447 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.PageUserEntry; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * PageUsersOnlineResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class PageUsersOnlineResponse { + public static final String SERIALIZED_NAME_NEXT_AFTER_USER_ID = "nextAfterUserId"; + @SerializedName(SERIALIZED_NAME_NEXT_AFTER_USER_ID) + @javax.annotation.Nullable + private String nextAfterUserId; + + public static final String SERIALIZED_NAME_NEXT_AFTER_NAME = "nextAfterName"; + @SerializedName(SERIALIZED_NAME_NEXT_AFTER_NAME) + @javax.annotation.Nullable + private String nextAfterName; + + public static final String SERIALIZED_NAME_TOTAL_COUNT = "totalCount"; + @SerializedName(SERIALIZED_NAME_TOTAL_COUNT) + @javax.annotation.Nonnull + private Double totalCount; + + public static final String SERIALIZED_NAME_ANON_COUNT = "anonCount"; + @SerializedName(SERIALIZED_NAME_ANON_COUNT) + @javax.annotation.Nonnull + private Double anonCount; + + public static final String SERIALIZED_NAME_USERS = "users"; + @SerializedName(SERIALIZED_NAME_USERS) + @javax.annotation.Nonnull + private List users = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public PageUsersOnlineResponse() { + } + + public PageUsersOnlineResponse nextAfterUserId(@javax.annotation.Nullable String nextAfterUserId) { + this.nextAfterUserId = nextAfterUserId; + return this; + } + + /** + * Get nextAfterUserId + * @return nextAfterUserId + */ + @javax.annotation.Nullable + public String getNextAfterUserId() { + return nextAfterUserId; + } + + public void setNextAfterUserId(@javax.annotation.Nullable String nextAfterUserId) { + this.nextAfterUserId = nextAfterUserId; + } + + + public PageUsersOnlineResponse nextAfterName(@javax.annotation.Nullable String nextAfterName) { + this.nextAfterName = nextAfterName; + return this; + } + + /** + * Get nextAfterName + * @return nextAfterName + */ + @javax.annotation.Nullable + public String getNextAfterName() { + return nextAfterName; + } + + public void setNextAfterName(@javax.annotation.Nullable String nextAfterName) { + this.nextAfterName = nextAfterName; + } + + + public PageUsersOnlineResponse totalCount(@javax.annotation.Nonnull Double totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + */ + @javax.annotation.Nonnull + public Double getTotalCount() { + return totalCount; + } + + public void setTotalCount(@javax.annotation.Nonnull Double totalCount) { + this.totalCount = totalCount; + } + + + public PageUsersOnlineResponse anonCount(@javax.annotation.Nonnull Double anonCount) { + this.anonCount = anonCount; + return this; + } + + /** + * Get anonCount + * @return anonCount + */ + @javax.annotation.Nonnull + public Double getAnonCount() { + return anonCount; + } + + public void setAnonCount(@javax.annotation.Nonnull Double anonCount) { + this.anonCount = anonCount; + } + + + public PageUsersOnlineResponse users(@javax.annotation.Nonnull List users) { + this.users = users; + return this; + } + + public PageUsersOnlineResponse addUsersItem(PageUserEntry usersItem) { + if (this.users == null) { + this.users = new ArrayList<>(); + } + this.users.add(usersItem); + return this; + } + + /** + * Get users + * @return users + */ + @javax.annotation.Nonnull + public List getUsers() { + return users; + } + + public void setUsers(@javax.annotation.Nonnull List users) { + this.users = users; + } + + + public PageUsersOnlineResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the PageUsersOnlineResponse instance itself + */ + public PageUsersOnlineResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PageUsersOnlineResponse pageUsersOnlineResponse = (PageUsersOnlineResponse) o; + return Objects.equals(this.nextAfterUserId, pageUsersOnlineResponse.nextAfterUserId) && + Objects.equals(this.nextAfterName, pageUsersOnlineResponse.nextAfterName) && + Objects.equals(this.totalCount, pageUsersOnlineResponse.totalCount) && + Objects.equals(this.anonCount, pageUsersOnlineResponse.anonCount) && + Objects.equals(this.users, pageUsersOnlineResponse.users) && + Objects.equals(this.status, pageUsersOnlineResponse.status)&& + Objects.equals(this.additionalProperties, pageUsersOnlineResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(nextAfterUserId, nextAfterName, totalCount, anonCount, users, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PageUsersOnlineResponse {\n"); + sb.append(" nextAfterUserId: ").append(toIndentedString(nextAfterUserId)).append("\n"); + sb.append(" nextAfterName: ").append(toIndentedString(nextAfterName)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" anonCount: ").append(toIndentedString(anonCount)).append("\n"); + sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("nextAfterUserId", "nextAfterName", "totalCount", "anonCount", "users", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("nextAfterUserId", "nextAfterName", "totalCount", "anonCount", "users", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to PageUsersOnlineResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!PageUsersOnlineResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in PageUsersOnlineResponse is not found in the empty JSON string", PageUsersOnlineResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PageUsersOnlineResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("nextAfterUserId") != null && !jsonObj.get("nextAfterUserId").isJsonNull()) && !jsonObj.get("nextAfterUserId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `nextAfterUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nextAfterUserId").toString())); + } + if ((jsonObj.get("nextAfterName") != null && !jsonObj.get("nextAfterName").isJsonNull()) && !jsonObj.get("nextAfterName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `nextAfterName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nextAfterName").toString())); + } + if (jsonObj.get("users") != null) { + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + } + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + // validate the required field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + PageUserEntry.validateJsonElement(jsonArrayusers.get(i)); + } + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PageUsersOnlineResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PageUsersOnlineResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PageUsersOnlineResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PageUsersOnlineResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public PageUsersOnlineResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + PageUsersOnlineResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PageUsersOnlineResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PageUsersOnlineResponse + * @throws IOException if the JSON string is invalid with respect to PageUsersOnlineResponse + */ + public static PageUsersOnlineResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PageUsersOnlineResponse.class); + } + + /** + * Convert an instance of PageUsersOnlineResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/PagesSortBy.java b/client/src/main/java/com/fastcomments/model/PagesSortBy.java new file mode 100644 index 00000000..fbd50b31 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PagesSortBy.java @@ -0,0 +1,80 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * Gets or Sets PagesSortBy + */ +@JsonAdapter(PagesSortBy.Adapter.class) +public enum PagesSortBy { + + UPDATED_AT("updatedAt"), + + COMMENT_COUNT("commentCount"), + + TITLE("title"); + + private String value; + + PagesSortBy(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static PagesSortBy fromValue(String value) { + for (PagesSortBy b : PagesSortBy.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final PagesSortBy enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public PagesSortBy read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return PagesSortBy.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + PagesSortBy.fromValue(value); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/PatchDomainConfigParams.java b/client/src/main/java/com/fastcomments/model/PatchDomainConfigParams.java index 74e6aa39..1c078f1c 100644 --- a/client/src/main/java/com/fastcomments/model/PatchDomainConfigParams.java +++ b/client/src/main/java/com/fastcomments/model/PatchDomainConfigParams.java @@ -50,7 +50,7 @@ /** * PatchDomainConfigParams */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PatchDomainConfigParams { public static final String SERIALIZED_NAME_DOMAIN = "domain"; @SerializedName(SERIALIZED_NAME_DOMAIN) @@ -275,10 +275,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/PatchDomainConfigResponse.java b/client/src/main/java/com/fastcomments/model/PatchDomainConfigResponse.java new file mode 100644 index 00000000..808c87e0 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PatchDomainConfigResponse.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.AddDomainConfigResponseAnyOf; +import com.fastcomments.model.GetDomainConfigsResponseAnyOf1; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + + + +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.JsonPrimitive; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonArray; +import com.google.gson.JsonParseException; + +import com.fastcomments.invoker.JSON; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class PatchDomainConfigResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PatchDomainConfigResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PatchDomainConfigResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PatchDomainConfigResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterAddDomainConfigResponseAnyOf = gson.getDelegateAdapter(this, TypeToken.get(AddDomainConfigResponseAnyOf.class)); + final TypeAdapter adapterGetDomainConfigsResponseAnyOf1 = gson.getDelegateAdapter(this, TypeToken.get(GetDomainConfigsResponseAnyOf1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PatchDomainConfigResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `AddDomainConfigResponseAnyOf` + if (value.getActualInstance() instanceof AddDomainConfigResponseAnyOf) { + JsonElement element = adapterAddDomainConfigResponseAnyOf.toJsonTree((AddDomainConfigResponseAnyOf)value.getActualInstance()); + elementAdapter.write(out, element); + return; + } + // check if the actual instance is of the type `GetDomainConfigsResponseAnyOf1` + if (value.getActualInstance() instanceof GetDomainConfigsResponseAnyOf1) { + JsonElement element = adapterGetDomainConfigsResponseAnyOf1.toJsonTree((GetDomainConfigsResponseAnyOf1)value.getActualInstance()); + elementAdapter.write(out, element); + return; + } + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1"); + } + + @Override + public PatchDomainConfigResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize AddDomainConfigResponseAnyOf + try { + // validate the JSON object to see if any exception is thrown + AddDomainConfigResponseAnyOf.validateJsonElement(jsonElement); + actualAdapter = adapterAddDomainConfigResponseAnyOf; + PatchDomainConfigResponse ret = new PatchDomainConfigResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AddDomainConfigResponseAnyOf failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AddDomainConfigResponseAnyOf'", e); + } + // deserialize GetDomainConfigsResponseAnyOf1 + try { + // validate the JSON object to see if any exception is thrown + GetDomainConfigsResponseAnyOf1.validateJsonElement(jsonElement); + actualAdapter = adapterGetDomainConfigsResponseAnyOf1; + PatchDomainConfigResponse ret = new PatchDomainConfigResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigsResponseAnyOf1 failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetDomainConfigsResponseAnyOf1'", e); + } + + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for PatchDomainConfigResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + } + }.nullSafe(); + } + } + + // store a list of schema names defined in anyOf + public static final Map> schemas = new HashMap>(); + + public PatchDomainConfigResponse() { + super("anyOf", Boolean.FALSE); + } + + public PatchDomainConfigResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AddDomainConfigResponseAnyOf", AddDomainConfigResponseAnyOf.class); + schemas.put("GetDomainConfigsResponseAnyOf1", GetDomainConfigsResponseAnyOf1.class); + } + + @Override + public Map> getSchemas() { + return PatchDomainConfigResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1 + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof AddDomainConfigResponseAnyOf) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof GetDomainConfigsResponseAnyOf1) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1"); + } + + /** + * Get the actual instance, which can be the following: + * AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1 + * + * @return The actual instance (AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AddDomainConfigResponseAnyOf`. If the actual instance is not `AddDomainConfigResponseAnyOf`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AddDomainConfigResponseAnyOf` + * @throws ClassCastException if the instance is not `AddDomainConfigResponseAnyOf` + */ + public AddDomainConfigResponseAnyOf getAddDomainConfigResponseAnyOf() throws ClassCastException { + return (AddDomainConfigResponseAnyOf)super.getActualInstance(); + } + + /** + * Get the actual instance of `GetDomainConfigsResponseAnyOf1`. If the actual instance is not `GetDomainConfigsResponseAnyOf1`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetDomainConfigsResponseAnyOf1` + * @throws ClassCastException if the instance is not `GetDomainConfigsResponseAnyOf1` + */ + public GetDomainConfigsResponseAnyOf1 getGetDomainConfigsResponseAnyOf1() throws ClassCastException { + return (GetDomainConfigsResponseAnyOf1)super.getActualInstance(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to PatchDomainConfigResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with AddDomainConfigResponseAnyOf + try { + AddDomainConfigResponseAnyOf.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AddDomainConfigResponseAnyOf failed with `%s`.", e.getMessage())); + // continue to the next one + } + // validate the json string with GetDomainConfigsResponseAnyOf1 + try { + GetDomainConfigsResponseAnyOf1.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigsResponseAnyOf1 failed with `%s`.", e.getMessage())); + // continue to the next one + } + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for PatchDomainConfigResponse with anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + } + + /** + * Create an instance of PatchDomainConfigResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PatchDomainConfigResponse + * @throws IOException if the JSON string is invalid with respect to PatchDomainConfigResponse + */ + public static PatchDomainConfigResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PatchDomainConfigResponse.class); + } + + /** + * Convert an instance of PatchDomainConfigResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/PatchHashTag200Response.java b/client/src/main/java/com/fastcomments/model/PatchHashTag200Response.java deleted file mode 100644 index fa1475f8..00000000 --- a/client/src/main/java/com/fastcomments/model/PatchHashTag200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.TenantHashTag; -import com.fastcomments.model.UpdateHashTagResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class PatchHashTag200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PatchHashTag200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PatchHashTag200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PatchHashTag200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterUpdateHashTagResponse = gson.getDelegateAdapter(this, TypeToken.get(UpdateHashTagResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PatchHashTag200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `UpdateHashTagResponse` - if (value.getActualInstance() instanceof UpdateHashTagResponse) { - JsonElement element = adapterUpdateHashTagResponse.toJsonTree((UpdateHashTagResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, UpdateHashTagResponse"); - } - - @Override - public PatchHashTag200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize UpdateHashTagResponse - try { - // validate the JSON object to see if any exception is thrown - UpdateHashTagResponse.validateJsonElement(jsonElement); - actualAdapter = adapterUpdateHashTagResponse; - PatchHashTag200Response ret = new PatchHashTag200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for UpdateHashTagResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'UpdateHashTagResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - PatchHashTag200Response ret = new PatchHashTag200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for PatchHashTag200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public PatchHashTag200Response() { - super("anyOf", Boolean.FALSE); - } - - public PatchHashTag200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("UpdateHashTagResponse", UpdateHashTagResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PatchHashTag200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, UpdateHashTagResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof UpdateHashTagResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, UpdateHashTagResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, UpdateHashTagResponse - * - * @return The actual instance (APIError, UpdateHashTagResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `UpdateHashTagResponse`. If the actual instance is not `UpdateHashTagResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `UpdateHashTagResponse` - * @throws ClassCastException if the instance is not `UpdateHashTagResponse` - */ - public UpdateHashTagResponse getUpdateHashTagResponse() throws ClassCastException { - return (UpdateHashTagResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to PatchHashTag200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with UpdateHashTagResponse - try { - UpdateHashTagResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for UpdateHashTagResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for PatchHashTag200Response with anyOf schemas: APIError, UpdateHashTagResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of PatchHashTag200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of PatchHashTag200Response - * @throws IOException if the JSON string is invalid with respect to PatchHashTag200Response - */ - public static PatchHashTag200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PatchHashTag200Response.class); - } - - /** - * Convert an instance of PatchHashTag200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/PatchPageAPIResponse.java b/client/src/main/java/com/fastcomments/model/PatchPageAPIResponse.java index 6c70e3b5..bc409287 100644 --- a/client/src/main/java/com/fastcomments/model/PatchPageAPIResponse.java +++ b/client/src/main/java/com/fastcomments/model/PatchPageAPIResponse.java @@ -49,7 +49,7 @@ /** * PatchPageAPIResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PatchPageAPIResponse { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -260,10 +260,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/PatchSSOUserAPIResponse.java b/client/src/main/java/com/fastcomments/model/PatchSSOUserAPIResponse.java index c4b7eb32..126e432c 100644 --- a/client/src/main/java/com/fastcomments/model/PatchSSOUserAPIResponse.java +++ b/client/src/main/java/com/fastcomments/model/PatchSSOUserAPIResponse.java @@ -49,7 +49,7 @@ /** * PatchSSOUserAPIResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PatchSSOUserAPIResponse { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -234,10 +234,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/PendingCommentToSyncOutbound.java b/client/src/main/java/com/fastcomments/model/PendingCommentToSyncOutbound.java index e970d38e..d4ad8a98 100644 --- a/client/src/main/java/com/fastcomments/model/PendingCommentToSyncOutbound.java +++ b/client/src/main/java/com/fastcomments/model/PendingCommentToSyncOutbound.java @@ -50,7 +50,7 @@ /** * PendingCommentToSyncOutbound */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PendingCommentToSyncOutbound { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -423,10 +423,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/PinComment200Response.java b/client/src/main/java/com/fastcomments/model/PinComment200Response.java deleted file mode 100644 index a6ae1be1..00000000 --- a/client/src/main/java/com/fastcomments/model/PinComment200Response.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.ChangeCommentPinStatusResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.RecordStringBeforeStringOrNullAfterStringOrNullValue; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class PinComment200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PinComment200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PinComment200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PinComment200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterChangeCommentPinStatusResponse = gson.getDelegateAdapter(this, TypeToken.get(ChangeCommentPinStatusResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PinComment200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ChangeCommentPinStatusResponse` - if (value.getActualInstance() instanceof ChangeCommentPinStatusResponse) { - JsonElement element = adapterChangeCommentPinStatusResponse.toJsonTree((ChangeCommentPinStatusResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, ChangeCommentPinStatusResponse"); - } - - @Override - public PinComment200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ChangeCommentPinStatusResponse - try { - // validate the JSON object to see if any exception is thrown - ChangeCommentPinStatusResponse.validateJsonElement(jsonElement); - actualAdapter = adapterChangeCommentPinStatusResponse; - PinComment200Response ret = new PinComment200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ChangeCommentPinStatusResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ChangeCommentPinStatusResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - PinComment200Response ret = new PinComment200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for PinComment200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public PinComment200Response() { - super("anyOf", Boolean.FALSE); - } - - public PinComment200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ChangeCommentPinStatusResponse", ChangeCommentPinStatusResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PinComment200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ChangeCommentPinStatusResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ChangeCommentPinStatusResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ChangeCommentPinStatusResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ChangeCommentPinStatusResponse - * - * @return The actual instance (APIError, ChangeCommentPinStatusResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ChangeCommentPinStatusResponse`. If the actual instance is not `ChangeCommentPinStatusResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ChangeCommentPinStatusResponse` - * @throws ClassCastException if the instance is not `ChangeCommentPinStatusResponse` - */ - public ChangeCommentPinStatusResponse getChangeCommentPinStatusResponse() throws ClassCastException { - return (ChangeCommentPinStatusResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to PinComment200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ChangeCommentPinStatusResponse - try { - ChangeCommentPinStatusResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ChangeCommentPinStatusResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for PinComment200Response with anyOf schemas: APIError, ChangeCommentPinStatusResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of PinComment200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of PinComment200Response - * @throws IOException if the JSON string is invalid with respect to PinComment200Response - */ - public static PinComment200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PinComment200Response.class); - } - - /** - * Convert an instance of PinComment200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/DeleteComment200Response.java b/client/src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java similarity index 67% rename from client/src/main/java/com/fastcomments/model/DeleteComment200Response.java rename to client/src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java index c26d57fd..1cad6175 100644 --- a/client/src/main/java/com/fastcomments/model/DeleteComment200Response.java +++ b/client/src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java @@ -14,11 +14,8 @@ package com.fastcomments.model; import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.DeleteCommentAction; import com.fastcomments.model.DeleteCommentResult; +import com.fastcomments.model.RemoveCommentActionResponse; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -62,24 +59,24 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class DeleteComment200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteComment200Response.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class PostRemoveCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostRemoveCommentResponse.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteComment200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteComment200Response' and its subtypes + if (!PostRemoveCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostRemoveCommentResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); final TypeAdapter adapterDeleteCommentResult = gson.getDelegateAdapter(this, TypeToken.get(DeleteCommentResult.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + final TypeAdapter adapterRemoveCommentActionResponse = gson.getDelegateAdapter(this, TypeToken.get(RemoveCommentActionResponse.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, DeleteComment200Response value) throws IOException { + public void write(JsonWriter out, PostRemoveCommentResponse value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; @@ -91,17 +88,17 @@ public void write(JsonWriter out, DeleteComment200Response value) throws IOExcep elementAdapter.write(out, element); return; } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); + // check if the actual instance is of the type `RemoveCommentActionResponse` + if (value.getActualInstance() instanceof RemoveCommentActionResponse) { + JsonElement element = adapterRemoveCommentActionResponse.toJsonTree((RemoveCommentActionResponse)value.getActualInstance()); elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, DeleteCommentResult"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: DeleteCommentResult, RemoveCommentActionResponse"); } @Override - public DeleteComment200Response read(JsonReader in) throws IOException { + public PostRemoveCommentResponse read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); @@ -113,7 +110,7 @@ public DeleteComment200Response read(JsonReader in) throws IOException { // validate the JSON object to see if any exception is thrown DeleteCommentResult.validateJsonElement(jsonElement); actualAdapter = adapterDeleteCommentResult; - DeleteComment200Response ret = new DeleteComment200Response(); + PostRemoveCommentResponse ret = new PostRemoveCommentResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { @@ -121,21 +118,21 @@ public DeleteComment200Response read(JsonReader in) throws IOException { errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for DeleteCommentResult failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'DeleteCommentResult'", e); } - // deserialize APIError + // deserialize RemoveCommentActionResponse try { // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - DeleteComment200Response ret = new DeleteComment200Response(); + RemoveCommentActionResponse.validateJsonElement(jsonElement); + actualAdapter = adapterRemoveCommentActionResponse; + PostRemoveCommentResponse ret = new PostRemoveCommentResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for RemoveCommentActionResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'RemoveCommentActionResponse'", e); } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for DeleteComment200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for PostRemoveCommentResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -144,29 +141,29 @@ public DeleteComment200Response read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public DeleteComment200Response() { + public PostRemoveCommentResponse() { super("anyOf", Boolean.FALSE); } - public DeleteComment200Response(Object o) { + public PostRemoveCommentResponse(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } static { schemas.put("DeleteCommentResult", DeleteCommentResult.class); - schemas.put("APIError", APIError.class); + schemas.put("RemoveCommentActionResponse", RemoveCommentActionResponse.class); } @Override public Map> getSchemas() { - return DeleteComment200Response.schemas; + return PostRemoveCommentResponse.schemas; } /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * APIError, DeleteCommentResult + * DeleteCommentResult, RemoveCommentActionResponse * * It could be an instance of the 'anyOf' schemas. */ @@ -177,19 +174,19 @@ public void setActualInstance(Object instance) { return; } - if (instance instanceof APIError) { + if (instance instanceof RemoveCommentActionResponse) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be APIError, DeleteCommentResult"); + throw new RuntimeException("Invalid instance type. Must be DeleteCommentResult, RemoveCommentActionResponse"); } /** * Get the actual instance, which can be the following: - * APIError, DeleteCommentResult + * DeleteCommentResult, RemoveCommentActionResponse * - * @return The actual instance (APIError, DeleteCommentResult) + * @return The actual instance (DeleteCommentResult, RemoveCommentActionResponse) */ @SuppressWarnings("unchecked") @Override @@ -209,21 +206,21 @@ public DeleteCommentResult getDeleteCommentResult() throws ClassCastException { } /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, + * Get the actual instance of `RemoveCommentActionResponse`. If the actual instance is not `RemoveCommentActionResponse`, * the ClassCastException will be thrown. * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` + * @return The actual instance of `RemoveCommentActionResponse` + * @throws ClassCastException if the instance is not `RemoveCommentActionResponse` */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); + public RemoveCommentActionResponse getRemoveCommentActionResponse() throws ClassCastException { + return (RemoveCommentActionResponse)super.getActualInstance(); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DeleteComment200Response + * @throws IOException if the JSON Element is invalid with respect to PostRemoveCommentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one @@ -236,30 +233,30 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for DeleteCommentResult failed with `%s`.", e.getMessage())); // continue to the next one } - // validate the json string with APIError + // validate the json string with RemoveCommentActionResponse try { - APIError.validateJsonElement(jsonElement); + RemoveCommentActionResponse.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for RemoveCommentActionResponse failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for DeleteComment200Response with anyOf schemas: APIError, DeleteCommentResult. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for PostRemoveCommentResponse with anyOf schemas: DeleteCommentResult, RemoveCommentActionResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of DeleteComment200Response given an JSON string + * Create an instance of PostRemoveCommentResponse given an JSON string * * @param jsonString JSON string - * @return An instance of DeleteComment200Response - * @throws IOException if the JSON string is invalid with respect to DeleteComment200Response + * @return An instance of PostRemoveCommentResponse + * @throws IOException if the JSON string is invalid with respect to PostRemoveCommentResponse */ - public static DeleteComment200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteComment200Response.class); + public static PostRemoveCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostRemoveCommentResponse.class); } /** - * Convert an instance of DeleteComment200Response to an JSON string + * Convert an instance of PostRemoveCommentResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/PreBanSummary.java b/client/src/main/java/com/fastcomments/model/PreBanSummary.java new file mode 100644 index 00000000..c9957b81 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PreBanSummary.java @@ -0,0 +1,277 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * PreBanSummary + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class PreBanSummary { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public static final String SERIALIZED_NAME_USERNAMES = "usernames"; + @SerializedName(SERIALIZED_NAME_USERNAMES) + @javax.annotation.Nonnull + private List usernames = new ArrayList<>(); + + public static final String SERIALIZED_NAME_COUNT = "count"; + @SerializedName(SERIALIZED_NAME_COUNT) + @javax.annotation.Nonnull + private Double count; + + public PreBanSummary() { + } + + public PreBanSummary status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + + public PreBanSummary usernames(@javax.annotation.Nonnull List usernames) { + this.usernames = usernames; + return this; + } + + public PreBanSummary addUsernamesItem(String usernamesItem) { + if (this.usernames == null) { + this.usernames = new ArrayList<>(); + } + this.usernames.add(usernamesItem); + return this; + } + + /** + * Get usernames + * @return usernames + */ + @javax.annotation.Nonnull + public List getUsernames() { + return usernames; + } + + public void setUsernames(@javax.annotation.Nonnull List usernames) { + this.usernames = usernames; + } + + + public PreBanSummary count(@javax.annotation.Nonnull Double count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + */ + @javax.annotation.Nonnull + public Double getCount() { + return count; + } + + public void setCount(@javax.annotation.Nonnull Double count) { + this.count = count; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PreBanSummary preBanSummary = (PreBanSummary) o; + return Objects.equals(this.status, preBanSummary.status) && + Objects.equals(this.usernames, preBanSummary.usernames) && + Objects.equals(this.count, preBanSummary.count); + } + + @Override + public int hashCode() { + return Objects.hash(status, usernames, count); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PreBanSummary {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" usernames: ").append(toIndentedString(usernames)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("status", "usernames", "count")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status", "usernames", "count")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to PreBanSummary + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!PreBanSummary.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in PreBanSummary is not found in the empty JSON string", PreBanSummary.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!PreBanSummary.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PreBanSummary` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PreBanSummary.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + // ensure the required json array is present + if (jsonObj.get("usernames") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("usernames").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `usernames` to be an array in the JSON string but got `%s`", jsonObj.get("usernames").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PreBanSummary.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PreBanSummary' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PreBanSummary.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PreBanSummary value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PreBanSummary read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PreBanSummary given an JSON string + * + * @param jsonString JSON string + * @return An instance of PreBanSummary + * @throws IOException if the JSON string is invalid with respect to PreBanSummary + */ + public static PreBanSummary fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PreBanSummary.class); + } + + /** + * Convert an instance of PreBanSummary to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/PubSubComment.java b/client/src/main/java/com/fastcomments/model/PubSubComment.java index 52cef312..ad6c1880 100644 --- a/client/src/main/java/com/fastcomments/model/PubSubComment.java +++ b/client/src/main/java/com/fastcomments/model/PubSubComment.java @@ -52,7 +52,7 @@ /** * PubSubComment */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PubSubComment { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -1275,10 +1275,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/PubSubCommentBase.java b/client/src/main/java/com/fastcomments/model/PubSubCommentBase.java index cf780216..4eb8a658 100644 --- a/client/src/main/java/com/fastcomments/model/PubSubCommentBase.java +++ b/client/src/main/java/com/fastcomments/model/PubSubCommentBase.java @@ -52,7 +52,7 @@ /** * PubSubCommentBase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PubSubCommentBase { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -1151,10 +1151,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/PubSubVote.java b/client/src/main/java/com/fastcomments/model/PubSubVote.java index d3c109b7..430a95a8 100644 --- a/client/src/main/java/com/fastcomments/model/PubSubVote.java +++ b/client/src/main/java/com/fastcomments/model/PubSubVote.java @@ -48,7 +48,7 @@ /** * PubSubVote */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PubSubVote { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -317,10 +317,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/PublicAPIDeleteCommentResponse.java b/client/src/main/java/com/fastcomments/model/PublicAPIDeleteCommentResponse.java index c1aa44d6..07159167 100644 --- a/client/src/main/java/com/fastcomments/model/PublicAPIDeleteCommentResponse.java +++ b/client/src/main/java/com/fastcomments/model/PublicAPIDeleteCommentResponse.java @@ -50,7 +50,7 @@ /** * PublicAPIDeleteCommentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PublicAPIDeleteCommentResponse { public static final String SERIALIZED_NAME_COMMENT = "comment"; @SerializedName(SERIALIZED_NAME_COMMENT) @@ -209,10 +209,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/PublicAPIGetCommentTextResponse.java b/client/src/main/java/com/fastcomments/model/PublicAPIGetCommentTextResponse.java index 8147ae05..0e117d05 100644 --- a/client/src/main/java/com/fastcomments/model/PublicAPIGetCommentTextResponse.java +++ b/client/src/main/java/com/fastcomments/model/PublicAPIGetCommentTextResponse.java @@ -49,7 +49,7 @@ /** * PublicAPIGetCommentTextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PublicAPIGetCommentTextResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -208,10 +208,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/PublicAPISetCommentTextResponse.java b/client/src/main/java/com/fastcomments/model/PublicAPISetCommentTextResponse.java index 641894cf..45ba9c02 100644 --- a/client/src/main/java/com/fastcomments/model/PublicAPISetCommentTextResponse.java +++ b/client/src/main/java/com/fastcomments/model/PublicAPISetCommentTextResponse.java @@ -50,7 +50,7 @@ /** * PublicAPISetCommentTextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PublicAPISetCommentTextResponse { public static final String SERIALIZED_NAME_COMMENT = "comment"; @SerializedName(SERIALIZED_NAME_COMMENT) @@ -183,10 +183,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/PublicBlockFromCommentParams.java b/client/src/main/java/com/fastcomments/model/PublicBlockFromCommentParams.java index 933811fa..d9e74043 100644 --- a/client/src/main/java/com/fastcomments/model/PublicBlockFromCommentParams.java +++ b/client/src/main/java/com/fastcomments/model/PublicBlockFromCommentParams.java @@ -50,7 +50,7 @@ /** * PublicBlockFromCommentParams */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PublicBlockFromCommentParams { public static final String SERIALIZED_NAME_COMMENT_IDS = "commentIds"; @SerializedName(SERIALIZED_NAME_COMMENT_IDS) @@ -119,10 +119,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -168,7 +165,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // ensure the required json array is present if (jsonObj.get("commentIds") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("commentIds").isJsonArray()) { + } else if (!jsonObj.get("commentIds").isJsonArray() && !jsonObj.get("commentIds").isJsonNull()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `commentIds` to be an array in the JSON string but got `%s`", jsonObj.get("commentIds").toString())); } } diff --git a/client/src/main/java/com/fastcomments/model/PublicComment.java b/client/src/main/java/com/fastcomments/model/PublicComment.java index 409015ef..90324859 100644 --- a/client/src/main/java/com/fastcomments/model/PublicComment.java +++ b/client/src/main/java/com/fastcomments/model/PublicComment.java @@ -52,7 +52,7 @@ /** * PublicComment */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PublicComment { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -1171,10 +1171,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/PublicCommentBase.java b/client/src/main/java/com/fastcomments/model/PublicCommentBase.java index a76eb832..e92d730a 100644 --- a/client/src/main/java/com/fastcomments/model/PublicCommentBase.java +++ b/client/src/main/java/com/fastcomments/model/PublicCommentBase.java @@ -52,7 +52,7 @@ /** * PublicCommentBase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PublicCommentBase { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -857,10 +857,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/PublicFeedPostsResponse.java b/client/src/main/java/com/fastcomments/model/PublicFeedPostsResponse.java index 5c9f7a33..5e3bc40d 100644 --- a/client/src/main/java/com/fastcomments/model/PublicFeedPostsResponse.java +++ b/client/src/main/java/com/fastcomments/model/PublicFeedPostsResponse.java @@ -55,7 +55,7 @@ /** * PublicFeedPostsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PublicFeedPostsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -334,10 +334,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -374,16 +371,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("feedPosts").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `feedPosts` to be an array in the JSON string but got `%s`", jsonObj.get("feedPosts").toString())); + if (jsonObj.get("feedPosts") != null) { + if (!jsonObj.get("feedPosts").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `feedPosts` to be an array in the JSON string but got `%s`", jsonObj.get("feedPosts").toString())); + } + JsonArray jsonArrayfeedPosts = jsonObj.getAsJsonArray("feedPosts"); + // validate the required field `feedPosts` (array) + for (int i = 0; i < jsonArrayfeedPosts.size(); i++) { + FeedPost.validateJsonElement(jsonArrayfeedPosts.get(i)); + } } - - JsonArray jsonArrayfeedPosts = jsonObj.getAsJsonArray("feedPosts"); - // validate the required field `feedPosts` (array) - for (int i = 0; i < jsonArrayfeedPosts.size(); i++) { - FeedPost.validateJsonElement(jsonArrayfeedPosts.get(i)); - }; // validate the optional field `user` if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { UserSessionInfo.validateJsonElement(jsonObj.get("user")); diff --git a/client/src/main/java/com/fastcomments/model/PublicPage.java b/client/src/main/java/com/fastcomments/model/PublicPage.java new file mode 100644 index 00000000..c07400ed --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PublicPage.java @@ -0,0 +1,400 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * PublicPage + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class PublicPage { + public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; + @SerializedName(SERIALIZED_NAME_UPDATED_AT) + @javax.annotation.Nonnull + private Long updatedAt; + + public static final String SERIALIZED_NAME_COMMENT_COUNT = "commentCount"; + @SerializedName(SERIALIZED_NAME_COMMENT_COUNT) + @javax.annotation.Nonnull + private Integer commentCount; + + public static final String SERIALIZED_NAME_TITLE = "title"; + @SerializedName(SERIALIZED_NAME_TITLE) + @javax.annotation.Nonnull + private String title; + + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + @javax.annotation.Nonnull + private String url; + + public static final String SERIALIZED_NAME_URL_ID = "urlId"; + @SerializedName(SERIALIZED_NAME_URL_ID) + @javax.annotation.Nonnull + private String urlId; + + public PublicPage() { + } + + public PublicPage updatedAt(@javax.annotation.Nonnull Long updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * @return updatedAt + */ + @javax.annotation.Nonnull + public Long getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(@javax.annotation.Nonnull Long updatedAt) { + this.updatedAt = updatedAt; + } + + + public PublicPage commentCount(@javax.annotation.Nonnull Integer commentCount) { + this.commentCount = commentCount; + return this; + } + + /** + * Get commentCount + * @return commentCount + */ + @javax.annotation.Nonnull + public Integer getCommentCount() { + return commentCount; + } + + public void setCommentCount(@javax.annotation.Nonnull Integer commentCount) { + this.commentCount = commentCount; + } + + + public PublicPage title(@javax.annotation.Nonnull String title) { + this.title = title; + return this; + } + + /** + * Get title + * @return title + */ + @javax.annotation.Nonnull + public String getTitle() { + return title; + } + + public void setTitle(@javax.annotation.Nonnull String title) { + this.title = title; + } + + + public PublicPage url(@javax.annotation.Nonnull String url) { + this.url = url; + return this; + } + + /** + * Get url + * @return url + */ + @javax.annotation.Nonnull + public String getUrl() { + return url; + } + + public void setUrl(@javax.annotation.Nonnull String url) { + this.url = url; + } + + + public PublicPage urlId(@javax.annotation.Nonnull String urlId) { + this.urlId = urlId; + return this; + } + + /** + * Get urlId + * @return urlId + */ + @javax.annotation.Nonnull + public String getUrlId() { + return urlId; + } + + public void setUrlId(@javax.annotation.Nonnull String urlId) { + this.urlId = urlId; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the PublicPage instance itself + */ + public PublicPage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PublicPage publicPage = (PublicPage) o; + return Objects.equals(this.updatedAt, publicPage.updatedAt) && + Objects.equals(this.commentCount, publicPage.commentCount) && + Objects.equals(this.title, publicPage.title) && + Objects.equals(this.url, publicPage.url) && + Objects.equals(this.urlId, publicPage.urlId)&& + Objects.equals(this.additionalProperties, publicPage.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(updatedAt, commentCount, title, url, urlId, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PublicPage {\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" commentCount: ").append(toIndentedString(commentCount)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" urlId: ").append(toIndentedString(urlId)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("updatedAt", "commentCount", "title", "url", "urlId")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("updatedAt", "commentCount", "title", "url", "urlId")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to PublicPage + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!PublicPage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in PublicPage is not found in the empty JSON string", PublicPage.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PublicPage.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("title").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); + } + if (!jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + } + if (!jsonObj.get("urlId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `urlId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("urlId").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PublicPage.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PublicPage' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PublicPage.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PublicPage value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public PublicPage read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + PublicPage instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PublicPage given an JSON string + * + * @param jsonString JSON string + * @return An instance of PublicPage + * @throws IOException if the JSON string is invalid with respect to PublicPage + */ + public static PublicPage fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PublicPage.class); + } + + /** + * Convert an instance of PublicPage to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/PublicVote.java b/client/src/main/java/com/fastcomments/model/PublicVote.java index a2b99cb3..7f96fa41 100644 --- a/client/src/main/java/com/fastcomments/model/PublicVote.java +++ b/client/src/main/java/com/fastcomments/model/PublicVote.java @@ -49,7 +49,7 @@ /** * PublicVote */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PublicVote { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -240,10 +240,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/GetModerator200Response.java b/client/src/main/java/com/fastcomments/model/PutDomainConfigResponse.java similarity index 55% rename from client/src/main/java/com/fastcomments/model/GetModerator200Response.java rename to client/src/main/java/com/fastcomments/model/PutDomainConfigResponse.java index 5102fe3b..424a9718 100644 --- a/client/src/main/java/com/fastcomments/model/GetModerator200Response.java +++ b/client/src/main/java/com/fastcomments/model/PutDomainConfigResponse.java @@ -14,11 +14,8 @@ package com.fastcomments.model; import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetModeratorResponse; -import com.fastcomments.model.Moderator; +import com.fastcomments.model.AddDomainConfigResponseAnyOf; +import com.fastcomments.model.GetDomainConfigsResponseAnyOf1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -62,80 +59,80 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetModerator200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetModerator200Response.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class PutDomainConfigResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PutDomainConfigResponse.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetModerator200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetModerator200Response' and its subtypes + if (!PutDomainConfigResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PutDomainConfigResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetModeratorResponse = gson.getDelegateAdapter(this, TypeToken.get(GetModeratorResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + final TypeAdapter adapterAddDomainConfigResponseAnyOf = gson.getDelegateAdapter(this, TypeToken.get(AddDomainConfigResponseAnyOf.class)); + final TypeAdapter adapterGetDomainConfigsResponseAnyOf1 = gson.getDelegateAdapter(this, TypeToken.get(GetDomainConfigsResponseAnyOf1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, GetModerator200Response value) throws IOException { + public void write(JsonWriter out, PutDomainConfigResponse value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; } - // check if the actual instance is of the type `GetModeratorResponse` - if (value.getActualInstance() instanceof GetModeratorResponse) { - JsonElement element = adapterGetModeratorResponse.toJsonTree((GetModeratorResponse)value.getActualInstance()); + // check if the actual instance is of the type `AddDomainConfigResponseAnyOf` + if (value.getActualInstance() instanceof AddDomainConfigResponseAnyOf) { + JsonElement element = adapterAddDomainConfigResponseAnyOf.toJsonTree((AddDomainConfigResponseAnyOf)value.getActualInstance()); elementAdapter.write(out, element); return; } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); + // check if the actual instance is of the type `GetDomainConfigsResponseAnyOf1` + if (value.getActualInstance() instanceof GetDomainConfigsResponseAnyOf1) { + JsonElement element = adapterGetDomainConfigsResponseAnyOf1.toJsonTree((GetDomainConfigsResponseAnyOf1)value.getActualInstance()); elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, GetModeratorResponse"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1"); } @Override - public GetModerator200Response read(JsonReader in) throws IOException { + public PutDomainConfigResponse read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); ArrayList errorMessages = new ArrayList<>(); TypeAdapter actualAdapter = elementAdapter; - // deserialize GetModeratorResponse + // deserialize AddDomainConfigResponseAnyOf try { // validate the JSON object to see if any exception is thrown - GetModeratorResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetModeratorResponse; - GetModerator200Response ret = new GetModerator200Response(); + AddDomainConfigResponseAnyOf.validateJsonElement(jsonElement); + actualAdapter = adapterAddDomainConfigResponseAnyOf; + PutDomainConfigResponse ret = new PutDomainConfigResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetModeratorResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetModeratorResponse'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AddDomainConfigResponseAnyOf failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AddDomainConfigResponseAnyOf'", e); } - // deserialize APIError + // deserialize GetDomainConfigsResponseAnyOf1 try { // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetModerator200Response ret = new GetModerator200Response(); + GetDomainConfigsResponseAnyOf1.validateJsonElement(jsonElement); + actualAdapter = adapterGetDomainConfigsResponseAnyOf1; + PutDomainConfigResponse ret = new PutDomainConfigResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigsResponseAnyOf1 failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetDomainConfigsResponseAnyOf1'", e); } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetModerator200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for PutDomainConfigResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -144,52 +141,52 @@ public GetModerator200Response read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public GetModerator200Response() { + public PutDomainConfigResponse() { super("anyOf", Boolean.FALSE); } - public GetModerator200Response(Object o) { + public PutDomainConfigResponse(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("GetModeratorResponse", GetModeratorResponse.class); - schemas.put("APIError", APIError.class); + schemas.put("AddDomainConfigResponseAnyOf", AddDomainConfigResponseAnyOf.class); + schemas.put("GetDomainConfigsResponseAnyOf1", GetDomainConfigsResponseAnyOf1.class); } @Override public Map> getSchemas() { - return GetModerator200Response.schemas; + return PutDomainConfigResponse.schemas; } /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * APIError, GetModeratorResponse + * AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1 * * It could be an instance of the 'anyOf' schemas. */ @Override public void setActualInstance(Object instance) { - if (instance instanceof GetModeratorResponse) { + if (instance instanceof AddDomainConfigResponseAnyOf) { super.setActualInstance(instance); return; } - if (instance instanceof APIError) { + if (instance instanceof GetDomainConfigsResponseAnyOf1) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be APIError, GetModeratorResponse"); + throw new RuntimeException("Invalid instance type. Must be AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1"); } /** * Get the actual instance, which can be the following: - * APIError, GetModeratorResponse + * AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1 * - * @return The actual instance (APIError, GetModeratorResponse) + * @return The actual instance (AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1) */ @SuppressWarnings("unchecked") @Override @@ -198,68 +195,68 @@ public Object getActualInstance() { } /** - * Get the actual instance of `GetModeratorResponse`. If the actual instance is not `GetModeratorResponse`, + * Get the actual instance of `AddDomainConfigResponseAnyOf`. If the actual instance is not `AddDomainConfigResponseAnyOf`, * the ClassCastException will be thrown. * - * @return The actual instance of `GetModeratorResponse` - * @throws ClassCastException if the instance is not `GetModeratorResponse` + * @return The actual instance of `AddDomainConfigResponseAnyOf` + * @throws ClassCastException if the instance is not `AddDomainConfigResponseAnyOf` */ - public GetModeratorResponse getGetModeratorResponse() throws ClassCastException { - return (GetModeratorResponse)super.getActualInstance(); + public AddDomainConfigResponseAnyOf getAddDomainConfigResponseAnyOf() throws ClassCastException { + return (AddDomainConfigResponseAnyOf)super.getActualInstance(); } /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, + * Get the actual instance of `GetDomainConfigsResponseAnyOf1`. If the actual instance is not `GetDomainConfigsResponseAnyOf1`, * the ClassCastException will be thrown. * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` + * @return The actual instance of `GetDomainConfigsResponseAnyOf1` + * @throws ClassCastException if the instance is not `GetDomainConfigsResponseAnyOf1` */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); + public GetDomainConfigsResponseAnyOf1 getGetDomainConfigsResponseAnyOf1() throws ClassCastException { + return (GetDomainConfigsResponseAnyOf1)super.getActualInstance(); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetModerator200Response + * @throws IOException if the JSON Element is invalid with respect to PutDomainConfigResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetModeratorResponse + // validate the json string with AddDomainConfigResponseAnyOf try { - GetModeratorResponse.validateJsonElement(jsonElement); + AddDomainConfigResponseAnyOf.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetModeratorResponse failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AddDomainConfigResponseAnyOf failed with `%s`.", e.getMessage())); // continue to the next one } - // validate the json string with APIError + // validate the json string with GetDomainConfigsResponseAnyOf1 try { - APIError.validateJsonElement(jsonElement); + GetDomainConfigsResponseAnyOf1.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetDomainConfigsResponseAnyOf1 failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetModerator200Response with anyOf schemas: APIError, GetModeratorResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for PutDomainConfigResponse with anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of GetModerator200Response given an JSON string + * Create an instance of PutDomainConfigResponse given an JSON string * * @param jsonString JSON string - * @return An instance of GetModerator200Response - * @throws IOException if the JSON string is invalid with respect to GetModerator200Response + * @return An instance of PutDomainConfigResponse + * @throws IOException if the JSON string is invalid with respect to PutDomainConfigResponse */ - public static GetModerator200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetModerator200Response.class); + public static PutDomainConfigResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PutDomainConfigResponse.class); } /** - * Convert an instance of GetModerator200Response to an JSON string + * Convert an instance of PutDomainConfigResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/PutSSOUserAPIResponse.java b/client/src/main/java/com/fastcomments/model/PutSSOUserAPIResponse.java index e4bea0e4..65c97b87 100644 --- a/client/src/main/java/com/fastcomments/model/PutSSOUserAPIResponse.java +++ b/client/src/main/java/com/fastcomments/model/PutSSOUserAPIResponse.java @@ -49,7 +49,7 @@ /** * PutSSOUserAPIResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class PutSSOUserAPIResponse { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -234,10 +234,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/QueryPredicate.java b/client/src/main/java/com/fastcomments/model/QueryPredicate.java index d0bd9719..2dc91a77 100644 --- a/client/src/main/java/com/fastcomments/model/QueryPredicate.java +++ b/client/src/main/java/com/fastcomments/model/QueryPredicate.java @@ -49,7 +49,7 @@ /** * QueryPredicate */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class QueryPredicate { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -220,10 +220,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/QueryPredicateValue.java b/client/src/main/java/com/fastcomments/model/QueryPredicateValue.java index d8634db4..fb645bb9 100644 --- a/client/src/main/java/com/fastcomments/model/QueryPredicateValue.java +++ b/client/src/main/java/com/fastcomments/model/QueryPredicateValue.java @@ -50,7 +50,7 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class QueryPredicateValue extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(QueryPredicateValue.class.getName()); diff --git a/client/src/main/java/com/fastcomments/model/QuestionConfig.java b/client/src/main/java/com/fastcomments/model/QuestionConfig.java index 74de84fb..8af803c8 100644 --- a/client/src/main/java/com/fastcomments/model/QuestionConfig.java +++ b/client/src/main/java/com/fastcomments/model/QuestionConfig.java @@ -52,7 +52,7 @@ /** * QuestionConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class QuestionConfig { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -649,10 +649,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -725,16 +722,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("labelPositive").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `labelPositive` to be a primitive type in the JSON string but got `%s`", jsonObj.get("labelPositive").toString())); } - // ensure the json data is an array - if (!jsonObj.get("customOptions").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `customOptions` to be an array in the JSON string but got `%s`", jsonObj.get("customOptions").toString())); + if (jsonObj.get("customOptions") != null) { + if (!jsonObj.get("customOptions").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `customOptions` to be an array in the JSON string but got `%s`", jsonObj.get("customOptions").toString())); + } + JsonArray jsonArraycustomOptions = jsonObj.getAsJsonArray("customOptions"); + // validate the required field `customOptions` (array) + for (int i = 0; i < jsonArraycustomOptions.size(); i++) { + QuestionConfigCustomOptionsInner.validateJsonElement(jsonArraycustomOptions.get(i)); + } } - - JsonArray jsonArraycustomOptions = jsonObj.getAsJsonArray("customOptions"); - // validate the required field `customOptions` (array) - for (int i = 0; i < jsonArraycustomOptions.size(); i++) { - QuestionConfigCustomOptionsInner.validateJsonElement(jsonArraycustomOptions.get(i)); - }; // ensure the required json array is present if (jsonObj.get("subQuestionIds") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); diff --git a/client/src/main/java/com/fastcomments/model/QuestionConfigCustomOptionsInner.java b/client/src/main/java/com/fastcomments/model/QuestionConfigCustomOptionsInner.java index 92259631..db30031b 100644 --- a/client/src/main/java/com/fastcomments/model/QuestionConfigCustomOptionsInner.java +++ b/client/src/main/java/com/fastcomments/model/QuestionConfigCustomOptionsInner.java @@ -48,7 +48,7 @@ /** * QuestionConfigCustomOptionsInner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class QuestionConfigCustomOptionsInner { public static final String SERIALIZED_NAME_IMAGE_SRC = "imageSrc"; @SerializedName(SERIALIZED_NAME_IMAGE_SRC) @@ -181,10 +181,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/QuestionDatum.java b/client/src/main/java/com/fastcomments/model/QuestionDatum.java index 8f7c7149..0c5476ac 100644 --- a/client/src/main/java/com/fastcomments/model/QuestionDatum.java +++ b/client/src/main/java/com/fastcomments/model/QuestionDatum.java @@ -50,7 +50,7 @@ /** * QuestionDatum */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class QuestionDatum { public static final String SERIALIZED_NAME_V = "v"; @SerializedName(SERIALIZED_NAME_V) @@ -145,10 +145,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/QuestionResult.java b/client/src/main/java/com/fastcomments/model/QuestionResult.java index 3b488c1f..d4df838a 100644 --- a/client/src/main/java/com/fastcomments/model/QuestionResult.java +++ b/client/src/main/java/com/fastcomments/model/QuestionResult.java @@ -52,7 +52,7 @@ /** * QuestionResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class QuestionResult { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -381,10 +381,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/QuestionResultAggregationOverall.java b/client/src/main/java/com/fastcomments/model/QuestionResultAggregationOverall.java index b723a71c..6a6944ad 100644 --- a/client/src/main/java/com/fastcomments/model/QuestionResultAggregationOverall.java +++ b/client/src/main/java/com/fastcomments/model/QuestionResultAggregationOverall.java @@ -52,7 +52,7 @@ /** * QuestionResultAggregationOverall */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class QuestionResultAggregationOverall { public static final String SERIALIZED_NAME_DATA_BY_DATE_BUCKET = "dataByDateBucket"; @SerializedName(SERIALIZED_NAME_DATA_BY_DATE_BUCKET) @@ -267,10 +267,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/ReactBodyParams.java b/client/src/main/java/com/fastcomments/model/ReactBodyParams.java index c791d05e..4317923c 100644 --- a/client/src/main/java/com/fastcomments/model/ReactBodyParams.java +++ b/client/src/main/java/com/fastcomments/model/ReactBodyParams.java @@ -48,7 +48,7 @@ /** * ReactBodyParams */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class ReactBodyParams { public static final String SERIALIZED_NAME_REACT_TYPE = "reactType"; @SerializedName(SERIALIZED_NAME_REACT_TYPE) @@ -109,10 +109,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/ReactFeedPostPublic200Response.java b/client/src/main/java/com/fastcomments/model/ReactFeedPostPublic200Response.java deleted file mode 100644 index e42ee954..00000000 --- a/client/src/main/java/com/fastcomments/model/ReactFeedPostPublic200Response.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.ReactFeedPostResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class ReactFeedPostPublic200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(ReactFeedPostPublic200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ReactFeedPostPublic200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ReactFeedPostPublic200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterReactFeedPostResponse = gson.getDelegateAdapter(this, TypeToken.get(ReactFeedPostResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ReactFeedPostPublic200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ReactFeedPostResponse` - if (value.getActualInstance() instanceof ReactFeedPostResponse) { - JsonElement element = adapterReactFeedPostResponse.toJsonTree((ReactFeedPostResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, ReactFeedPostResponse"); - } - - @Override - public ReactFeedPostPublic200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ReactFeedPostResponse - try { - // validate the JSON object to see if any exception is thrown - ReactFeedPostResponse.validateJsonElement(jsonElement); - actualAdapter = adapterReactFeedPostResponse; - ReactFeedPostPublic200Response ret = new ReactFeedPostPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ReactFeedPostResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ReactFeedPostResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - ReactFeedPostPublic200Response ret = new ReactFeedPostPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for ReactFeedPostPublic200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public ReactFeedPostPublic200Response() { - super("anyOf", Boolean.FALSE); - } - - public ReactFeedPostPublic200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ReactFeedPostResponse", ReactFeedPostResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return ReactFeedPostPublic200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ReactFeedPostResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ReactFeedPostResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ReactFeedPostResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ReactFeedPostResponse - * - * @return The actual instance (APIError, ReactFeedPostResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ReactFeedPostResponse`. If the actual instance is not `ReactFeedPostResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ReactFeedPostResponse` - * @throws ClassCastException if the instance is not `ReactFeedPostResponse` - */ - public ReactFeedPostResponse getReactFeedPostResponse() throws ClassCastException { - return (ReactFeedPostResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ReactFeedPostPublic200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ReactFeedPostResponse - try { - ReactFeedPostResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ReactFeedPostResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for ReactFeedPostPublic200Response with anyOf schemas: APIError, ReactFeedPostResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of ReactFeedPostPublic200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of ReactFeedPostPublic200Response - * @throws IOException if the JSON string is invalid with respect to ReactFeedPostPublic200Response - */ - public static ReactFeedPostPublic200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ReactFeedPostPublic200Response.class); - } - - /** - * Convert an instance of ReactFeedPostPublic200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/ReactFeedPostResponse.java b/client/src/main/java/com/fastcomments/model/ReactFeedPostResponse.java index a1271afc..78e5fc5b 100644 --- a/client/src/main/java/com/fastcomments/model/ReactFeedPostResponse.java +++ b/client/src/main/java/com/fastcomments/model/ReactFeedPostResponse.java @@ -49,7 +49,7 @@ /** * ReactFeedPostResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class ReactFeedPostResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -162,10 +162,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/RecordStringBeforeStringOrNullAfterStringOrNullValue.java b/client/src/main/java/com/fastcomments/model/RecordStringBeforeStringOrNullAfterStringOrNullValue.java index 3f882375..01d8beb2 100644 --- a/client/src/main/java/com/fastcomments/model/RecordStringBeforeStringOrNullAfterStringOrNullValue.java +++ b/client/src/main/java/com/fastcomments/model/RecordStringBeforeStringOrNullAfterStringOrNullValue.java @@ -48,7 +48,7 @@ /** * RecordStringBeforeStringOrNullAfterStringOrNullValue */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class RecordStringBeforeStringOrNullAfterStringOrNullValue { public static final String SERIALIZED_NAME_AFTER = "after"; @SerializedName(SERIALIZED_NAME_AFTER) @@ -181,10 +181,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/RemoveCommentActionResponse.java b/client/src/main/java/com/fastcomments/model/RemoveCommentActionResponse.java new file mode 100644 index 00000000..5604fe96 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/RemoveCommentActionResponse.java @@ -0,0 +1,238 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * RemoveCommentActionResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class RemoveCommentActionResponse { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private String status; + + public static final String SERIALIZED_NAME_ACTION = "action"; + @SerializedName(SERIALIZED_NAME_ACTION) + @javax.annotation.Nonnull + private String action; + + public RemoveCommentActionResponse() { + } + + public RemoveCommentActionResponse status(@javax.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public String getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull String status) { + this.status = status; + } + + + public RemoveCommentActionResponse action(@javax.annotation.Nonnull String action) { + this.action = action; + return this; + } + + /** + * Get action + * @return action + */ + @javax.annotation.Nonnull + public String getAction() { + return action; + } + + public void setAction(@javax.annotation.Nonnull String action) { + this.action = action; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RemoveCommentActionResponse removeCommentActionResponse = (RemoveCommentActionResponse) o; + return Objects.equals(this.status, removeCommentActionResponse.status) && + Objects.equals(this.action, removeCommentActionResponse.action); + } + + @Override + public int hashCode() { + return Objects.hash(status, action); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RemoveCommentActionResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("status", "action")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status", "action")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RemoveCommentActionResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!RemoveCommentActionResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in RemoveCommentActionResponse is not found in the empty JSON string", RemoveCommentActionResponse.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!RemoveCommentActionResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `RemoveCommentActionResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : RemoveCommentActionResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("action").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `action` to be a primitive type in the JSON string but got `%s`", jsonObj.get("action").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RemoveCommentActionResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RemoveCommentActionResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RemoveCommentActionResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RemoveCommentActionResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public RemoveCommentActionResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RemoveCommentActionResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of RemoveCommentActionResponse + * @throws IOException if the JSON string is invalid with respect to RemoveCommentActionResponse + */ + public static RemoveCommentActionResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RemoveCommentActionResponse.class); + } + + /** + * Convert an instance of RemoveCommentActionResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/RemoveUserBadgeResponse.java b/client/src/main/java/com/fastcomments/model/RemoveUserBadgeResponse.java new file mode 100644 index 00000000..203ef0fb --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/RemoveUserBadgeResponse.java @@ -0,0 +1,341 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CommentUserBadgeInfo; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * RemoveUserBadgeResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class RemoveUserBadgeResponse { + public static final String SERIALIZED_NAME_BADGES = "badges"; + @SerializedName(SERIALIZED_NAME_BADGES) + @javax.annotation.Nullable + private List badges = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public RemoveUserBadgeResponse() { + } + + public RemoveUserBadgeResponse badges(@javax.annotation.Nullable List badges) { + this.badges = badges; + return this; + } + + public RemoveUserBadgeResponse addBadgesItem(CommentUserBadgeInfo badgesItem) { + if (this.badges == null) { + this.badges = new ArrayList<>(); + } + this.badges.add(badgesItem); + return this; + } + + /** + * Get badges + * @return badges + */ + @javax.annotation.Nullable + public List getBadges() { + return badges; + } + + public void setBadges(@javax.annotation.Nullable List badges) { + this.badges = badges; + } + + + public RemoveUserBadgeResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RemoveUserBadgeResponse instance itself + */ + public RemoveUserBadgeResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RemoveUserBadgeResponse removeUserBadgeResponse = (RemoveUserBadgeResponse) o; + return Objects.equals(this.badges, removeUserBadgeResponse.badges) && + Objects.equals(this.status, removeUserBadgeResponse.status)&& + Objects.equals(this.additionalProperties, removeUserBadgeResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(badges, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RemoveUserBadgeResponse {\n"); + sb.append(" badges: ").append(toIndentedString(badges)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("badges", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RemoveUserBadgeResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!RemoveUserBadgeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in RemoveUserBadgeResponse is not found in the empty JSON string", RemoveUserBadgeResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : RemoveUserBadgeResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("badges") != null && !jsonObj.get("badges").isJsonNull()) { + JsonArray jsonArraybadges = jsonObj.getAsJsonArray("badges"); + if (jsonArraybadges != null) { + // ensure the json data is an array + if (!jsonObj.get("badges").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `badges` to be an array in the JSON string but got `%s`", jsonObj.get("badges").toString())); + } + + // validate the optional field `badges` (array) + for (int i = 0; i < jsonArraybadges.size(); i++) { + CommentUserBadgeInfo.validateJsonElement(jsonArraybadges.get(i)); + }; + } + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RemoveUserBadgeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RemoveUserBadgeResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RemoveUserBadgeResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RemoveUserBadgeResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RemoveUserBadgeResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + RemoveUserBadgeResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RemoveUserBadgeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of RemoveUserBadgeResponse + * @throws IOException if the JSON string is invalid with respect to RemoveUserBadgeResponse + */ + public static RemoveUserBadgeResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RemoveUserBadgeResponse.class); + } + + /** + * Convert an instance of RemoveUserBadgeResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/RenderEmailTemplate200Response.java b/client/src/main/java/com/fastcomments/model/RenderEmailTemplate200Response.java deleted file mode 100644 index 12a526f9..00000000 --- a/client/src/main/java/com/fastcomments/model/RenderEmailTemplate200Response.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.RenderEmailTemplateResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class RenderEmailTemplate200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(RenderEmailTemplate200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RenderEmailTemplate200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RenderEmailTemplate200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterRenderEmailTemplateResponse = gson.getDelegateAdapter(this, TypeToken.get(RenderEmailTemplateResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RenderEmailTemplate200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `RenderEmailTemplateResponse` - if (value.getActualInstance() instanceof RenderEmailTemplateResponse) { - JsonElement element = adapterRenderEmailTemplateResponse.toJsonTree((RenderEmailTemplateResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, RenderEmailTemplateResponse"); - } - - @Override - public RenderEmailTemplate200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize RenderEmailTemplateResponse - try { - // validate the JSON object to see if any exception is thrown - RenderEmailTemplateResponse.validateJsonElement(jsonElement); - actualAdapter = adapterRenderEmailTemplateResponse; - RenderEmailTemplate200Response ret = new RenderEmailTemplate200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for RenderEmailTemplateResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'RenderEmailTemplateResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - RenderEmailTemplate200Response ret = new RenderEmailTemplate200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for RenderEmailTemplate200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public RenderEmailTemplate200Response() { - super("anyOf", Boolean.FALSE); - } - - public RenderEmailTemplate200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("RenderEmailTemplateResponse", RenderEmailTemplateResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return RenderEmailTemplate200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, RenderEmailTemplateResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof RenderEmailTemplateResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, RenderEmailTemplateResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, RenderEmailTemplateResponse - * - * @return The actual instance (APIError, RenderEmailTemplateResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `RenderEmailTemplateResponse`. If the actual instance is not `RenderEmailTemplateResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `RenderEmailTemplateResponse` - * @throws ClassCastException if the instance is not `RenderEmailTemplateResponse` - */ - public RenderEmailTemplateResponse getRenderEmailTemplateResponse() throws ClassCastException { - return (RenderEmailTemplateResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RenderEmailTemplate200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with RenderEmailTemplateResponse - try { - RenderEmailTemplateResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for RenderEmailTemplateResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for RenderEmailTemplate200Response with anyOf schemas: APIError, RenderEmailTemplateResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of RenderEmailTemplate200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of RenderEmailTemplate200Response - * @throws IOException if the JSON string is invalid with respect to RenderEmailTemplate200Response - */ - public static RenderEmailTemplate200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RenderEmailTemplate200Response.class); - } - - /** - * Convert an instance of RenderEmailTemplate200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/RenderEmailTemplateBody.java b/client/src/main/java/com/fastcomments/model/RenderEmailTemplateBody.java index 72f8704d..6a8ea019 100644 --- a/client/src/main/java/com/fastcomments/model/RenderEmailTemplateBody.java +++ b/client/src/main/java/com/fastcomments/model/RenderEmailTemplateBody.java @@ -50,7 +50,7 @@ /** * RenderEmailTemplateBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class RenderEmailTemplateBody { public static final String SERIALIZED_NAME_EMAIL_TEMPLATE_ID = "emailTemplateId"; @SerializedName(SERIALIZED_NAME_EMAIL_TEMPLATE_ID) @@ -205,10 +205,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/RenderEmailTemplateResponse.java b/client/src/main/java/com/fastcomments/model/RenderEmailTemplateResponse.java index 04070765..85e40fe0 100644 --- a/client/src/main/java/com/fastcomments/model/RenderEmailTemplateResponse.java +++ b/client/src/main/java/com/fastcomments/model/RenderEmailTemplateResponse.java @@ -49,7 +49,7 @@ /** * RenderEmailTemplateResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class RenderEmailTemplateResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -136,10 +136,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/RenderableUserNotification.java b/client/src/main/java/com/fastcomments/model/RenderableUserNotification.java index 0402c832..53f1ef18 100644 --- a/client/src/main/java/com/fastcomments/model/RenderableUserNotification.java +++ b/client/src/main/java/com/fastcomments/model/RenderableUserNotification.java @@ -52,7 +52,7 @@ /** * RenderableUserNotification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class RenderableUserNotification { public static final String SERIALIZED_NAME_CONVERSATION_ID = "conversationId"; @SerializedName(SERIALIZED_NAME_CONVERSATION_ID) @@ -703,10 +703,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/ReplaceTenantPackageBody.java b/client/src/main/java/com/fastcomments/model/ReplaceTenantPackageBody.java index fe9c8698..73391673 100644 --- a/client/src/main/java/com/fastcomments/model/ReplaceTenantPackageBody.java +++ b/client/src/main/java/com/fastcomments/model/ReplaceTenantPackageBody.java @@ -50,7 +50,7 @@ /** * ReplaceTenantPackageBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class ReplaceTenantPackageBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -899,10 +899,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/ReplaceTenantUserBody.java b/client/src/main/java/com/fastcomments/model/ReplaceTenantUserBody.java index e0f74335..3f7d3c64 100644 --- a/client/src/main/java/com/fastcomments/model/ReplaceTenantUserBody.java +++ b/client/src/main/java/com/fastcomments/model/ReplaceTenantUserBody.java @@ -50,7 +50,7 @@ /** * ReplaceTenantUserBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class ReplaceTenantUserBody { public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) @@ -821,10 +821,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/ResetUserNotifications200Response.java b/client/src/main/java/com/fastcomments/model/ResetUserNotifications200Response.java deleted file mode 100644 index 222b5c31..00000000 --- a/client/src/main/java/com/fastcomments/model/ResetUserNotifications200Response.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.ResetUserNotificationsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class ResetUserNotifications200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(ResetUserNotifications200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ResetUserNotifications200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ResetUserNotifications200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterResetUserNotificationsResponse = gson.getDelegateAdapter(this, TypeToken.get(ResetUserNotificationsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ResetUserNotifications200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ResetUserNotificationsResponse` - if (value.getActualInstance() instanceof ResetUserNotificationsResponse) { - JsonElement element = adapterResetUserNotificationsResponse.toJsonTree((ResetUserNotificationsResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, ResetUserNotificationsResponse"); - } - - @Override - public ResetUserNotifications200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ResetUserNotificationsResponse - try { - // validate the JSON object to see if any exception is thrown - ResetUserNotificationsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterResetUserNotificationsResponse; - ResetUserNotifications200Response ret = new ResetUserNotifications200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ResetUserNotificationsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ResetUserNotificationsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - ResetUserNotifications200Response ret = new ResetUserNotifications200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for ResetUserNotifications200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public ResetUserNotifications200Response() { - super("anyOf", Boolean.FALSE); - } - - public ResetUserNotifications200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ResetUserNotificationsResponse", ResetUserNotificationsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return ResetUserNotifications200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ResetUserNotificationsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ResetUserNotificationsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ResetUserNotificationsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ResetUserNotificationsResponse - * - * @return The actual instance (APIError, ResetUserNotificationsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ResetUserNotificationsResponse`. If the actual instance is not `ResetUserNotificationsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ResetUserNotificationsResponse` - * @throws ClassCastException if the instance is not `ResetUserNotificationsResponse` - */ - public ResetUserNotificationsResponse getResetUserNotificationsResponse() throws ClassCastException { - return (ResetUserNotificationsResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ResetUserNotifications200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ResetUserNotificationsResponse - try { - ResetUserNotificationsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ResetUserNotificationsResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for ResetUserNotifications200Response with anyOf schemas: APIError, ResetUserNotificationsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of ResetUserNotifications200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of ResetUserNotifications200Response - * @throws IOException if the JSON string is invalid with respect to ResetUserNotifications200Response - */ - public static ResetUserNotifications200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ResetUserNotifications200Response.class); - } - - /** - * Convert an instance of ResetUserNotifications200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/ResetUserNotificationsResponse.java b/client/src/main/java/com/fastcomments/model/ResetUserNotificationsResponse.java index 2723deb6..ef9651b1 100644 --- a/client/src/main/java/com/fastcomments/model/ResetUserNotificationsResponse.java +++ b/client/src/main/java/com/fastcomments/model/ResetUserNotificationsResponse.java @@ -49,7 +49,7 @@ /** * ResetUserNotificationsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class ResetUserNotificationsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -186,10 +186,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/SaveComment200Response.java b/client/src/main/java/com/fastcomments/model/SaveComment200Response.java deleted file mode 100644 index 5c3bbca9..00000000 --- a/client/src/main/java/com/fastcomments/model/SaveComment200Response.java +++ /dev/null @@ -1,273 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FComment; -import com.fastcomments.model.SaveCommentResponse; -import com.fastcomments.model.UserSessionInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class SaveComment200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(SaveComment200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!SaveComment200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SaveComment200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterSaveCommentResponse = gson.getDelegateAdapter(this, TypeToken.get(SaveCommentResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SaveComment200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `SaveCommentResponse` - if (value.getActualInstance() instanceof SaveCommentResponse) { - JsonElement element = adapterSaveCommentResponse.toJsonTree((SaveCommentResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, SaveCommentResponse"); - } - - @Override - public SaveComment200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize SaveCommentResponse - try { - // validate the JSON object to see if any exception is thrown - SaveCommentResponse.validateJsonElement(jsonElement); - actualAdapter = adapterSaveCommentResponse; - SaveComment200Response ret = new SaveComment200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SaveCommentResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'SaveCommentResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - SaveComment200Response ret = new SaveComment200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for SaveComment200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public SaveComment200Response() { - super("anyOf", Boolean.FALSE); - } - - public SaveComment200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("SaveCommentResponse", SaveCommentResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return SaveComment200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, SaveCommentResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof SaveCommentResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, SaveCommentResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, SaveCommentResponse - * - * @return The actual instance (APIError, SaveCommentResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `SaveCommentResponse`. If the actual instance is not `SaveCommentResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SaveCommentResponse` - * @throws ClassCastException if the instance is not `SaveCommentResponse` - */ - public SaveCommentResponse getSaveCommentResponse() throws ClassCastException { - return (SaveCommentResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SaveComment200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with SaveCommentResponse - try { - SaveCommentResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SaveCommentResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for SaveComment200Response with anyOf schemas: APIError, SaveCommentResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of SaveComment200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of SaveComment200Response - * @throws IOException if the JSON string is invalid with respect to SaveComment200Response - */ - public static SaveComment200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SaveComment200Response.class); - } - - /** - * Convert an instance of SaveComment200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/SaveCommentResponseOptimized.java b/client/src/main/java/com/fastcomments/model/SaveCommentResponseOptimized.java index ca6433c9..ee5e2942 100644 --- a/client/src/main/java/com/fastcomments/model/SaveCommentResponseOptimized.java +++ b/client/src/main/java/com/fastcomments/model/SaveCommentResponseOptimized.java @@ -53,7 +53,7 @@ /** * SaveCommentResponseOptimized */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class SaveCommentResponseOptimized { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -200,10 +200,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -250,8 +247,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti APIStatus.validateJsonElement(jsonObj.get("status")); // validate the required field `comment` PublicComment.validateJsonElement(jsonObj.get("comment")); + if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { // validate the required field `user` UserSessionInfo.validateJsonElement(jsonObj.get("user")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/GetUserBadges200Response.java b/client/src/main/java/com/fastcomments/model/SaveCommentsBulkResponse.java similarity index 69% rename from client/src/main/java/com/fastcomments/model/GetUserBadges200Response.java rename to client/src/main/java/com/fastcomments/model/SaveCommentsBulkResponse.java index b6245fae..6c524a40 100644 --- a/client/src/main/java/com/fastcomments/model/GetUserBadges200Response.java +++ b/client/src/main/java/com/fastcomments/model/SaveCommentsBulkResponse.java @@ -14,20 +14,21 @@ package com.fastcomments.model; import java.util.Objects; +import com.fastcomments.model.APIComment; import com.fastcomments.model.APIError; -import com.fastcomments.model.APIGetUserBadgesResponse; +import com.fastcomments.model.APISaveCommentResponse; import com.fastcomments.model.APIStatus; import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.UserBadge; +import com.fastcomments.model.UserSessionInfo; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.util.ArrayList; import java.util.Arrays; -import java.util.List; +import java.util.HashMap; +import java.util.Map; @@ -64,32 +65,32 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class GetUserBadges200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserBadges200Response.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class SaveCommentsBulkResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(SaveCommentsBulkResponse.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserBadges200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserBadges200Response' and its subtypes + if (!SaveCommentsBulkResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SaveCommentsBulkResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAPIGetUserBadgesResponse = gson.getDelegateAdapter(this, TypeToken.get(APIGetUserBadgesResponse.class)); + final TypeAdapter adapterAPISaveCommentResponse = gson.getDelegateAdapter(this, TypeToken.get(APISaveCommentResponse.class)); final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, GetUserBadges200Response value) throws IOException { + public void write(JsonWriter out, SaveCommentsBulkResponse value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; } - // check if the actual instance is of the type `APIGetUserBadgesResponse` - if (value.getActualInstance() instanceof APIGetUserBadgesResponse) { - JsonElement element = adapterAPIGetUserBadgesResponse.toJsonTree((APIGetUserBadgesResponse)value.getActualInstance()); + // check if the actual instance is of the type `APISaveCommentResponse` + if (value.getActualInstance() instanceof APISaveCommentResponse) { + JsonElement element = adapterAPISaveCommentResponse.toJsonTree((APISaveCommentResponse)value.getActualInstance()); elementAdapter.write(out, element); return; } @@ -99,36 +100,36 @@ public void write(JsonWriter out, GetUserBadges200Response value) throws IOExcep elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, APIGetUserBadgesResponse"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, APISaveCommentResponse"); } @Override - public GetUserBadges200Response read(JsonReader in) throws IOException { + public SaveCommentsBulkResponse read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); ArrayList errorMessages = new ArrayList<>(); TypeAdapter actualAdapter = elementAdapter; - // deserialize APIGetUserBadgesResponse + // deserialize APISaveCommentResponse try { // validate the JSON object to see if any exception is thrown - APIGetUserBadgesResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAPIGetUserBadgesResponse; - GetUserBadges200Response ret = new GetUserBadges200Response(); + APISaveCommentResponse.validateJsonElement(jsonElement); + actualAdapter = adapterAPISaveCommentResponse; + SaveCommentsBulkResponse ret = new SaveCommentsBulkResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIGetUserBadgesResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIGetUserBadgesResponse'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APISaveCommentResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'APISaveCommentResponse'", e); } // deserialize APIError try { // validate the JSON object to see if any exception is thrown APIError.validateJsonElement(jsonElement); actualAdapter = adapterAPIError; - GetUserBadges200Response ret = new GetUserBadges200Response(); + SaveCommentsBulkResponse ret = new SaveCommentsBulkResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { @@ -137,7 +138,7 @@ public GetUserBadges200Response read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data does not match schema 'APIError'", e); } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for GetUserBadges200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for SaveCommentsBulkResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -146,35 +147,35 @@ public GetUserBadges200Response read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public GetUserBadges200Response() { + public SaveCommentsBulkResponse() { super("anyOf", Boolean.FALSE); } - public GetUserBadges200Response(Object o) { + public SaveCommentsBulkResponse(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("APIGetUserBadgesResponse", APIGetUserBadgesResponse.class); + schemas.put("APISaveCommentResponse", APISaveCommentResponse.class); schemas.put("APIError", APIError.class); } @Override public Map> getSchemas() { - return GetUserBadges200Response.schemas; + return SaveCommentsBulkResponse.schemas; } /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * APIError, APIGetUserBadgesResponse + * APIError, APISaveCommentResponse * * It could be an instance of the 'anyOf' schemas. */ @Override public void setActualInstance(Object instance) { - if (instance instanceof APIGetUserBadgesResponse) { + if (instance instanceof APISaveCommentResponse) { super.setActualInstance(instance); return; } @@ -184,14 +185,14 @@ public void setActualInstance(Object instance) { return; } - throw new RuntimeException("Invalid instance type. Must be APIError, APIGetUserBadgesResponse"); + throw new RuntimeException("Invalid instance type. Must be APIError, APISaveCommentResponse"); } /** * Get the actual instance, which can be the following: - * APIError, APIGetUserBadgesResponse + * APIError, APISaveCommentResponse * - * @return The actual instance (APIError, APIGetUserBadgesResponse) + * @return The actual instance (APIError, APISaveCommentResponse) */ @SuppressWarnings("unchecked") @Override @@ -200,14 +201,14 @@ public Object getActualInstance() { } /** - * Get the actual instance of `APIGetUserBadgesResponse`. If the actual instance is not `APIGetUserBadgesResponse`, + * Get the actual instance of `APISaveCommentResponse`. If the actual instance is not `APISaveCommentResponse`, * the ClassCastException will be thrown. * - * @return The actual instance of `APIGetUserBadgesResponse` - * @throws ClassCastException if the instance is not `APIGetUserBadgesResponse` + * @return The actual instance of `APISaveCommentResponse` + * @throws ClassCastException if the instance is not `APISaveCommentResponse` */ - public APIGetUserBadgesResponse getAPIGetUserBadgesResponse() throws ClassCastException { - return (APIGetUserBadgesResponse)super.getActualInstance(); + public APISaveCommentResponse getAPISaveCommentResponse() throws ClassCastException { + return (APISaveCommentResponse)super.getActualInstance(); } /** @@ -225,17 +226,17 @@ public APIError getAPIError() throws ClassCastException { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetUserBadges200Response + * @throws IOException if the JSON Element is invalid with respect to SaveCommentsBulkResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one ArrayList errorMessages = new ArrayList<>(); - // validate the json string with APIGetUserBadgesResponse + // validate the json string with APISaveCommentResponse try { - APIGetUserBadgesResponse.validateJsonElement(jsonElement); + APISaveCommentResponse.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIGetUserBadgesResponse failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APISaveCommentResponse failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with APIError @@ -246,22 +247,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for GetUserBadges200Response with anyOf schemas: APIError, APIGetUserBadgesResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for SaveCommentsBulkResponse with anyOf schemas: APIError, APISaveCommentResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of GetUserBadges200Response given an JSON string + * Create an instance of SaveCommentsBulkResponse given an JSON string * * @param jsonString JSON string - * @return An instance of GetUserBadges200Response - * @throws IOException if the JSON string is invalid with respect to GetUserBadges200Response + * @return An instance of SaveCommentsBulkResponse + * @throws IOException if the JSON string is invalid with respect to SaveCommentsBulkResponse */ - public static GetUserBadges200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserBadges200Response.class); + public static SaveCommentsBulkResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SaveCommentsBulkResponse.class); } /** - * Convert an instance of GetUserBadges200Response to an JSON string + * Convert an instance of SaveCommentsBulkResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/SaveCommentsResponseWithPresence.java b/client/src/main/java/com/fastcomments/model/SaveCommentsResponseWithPresence.java index f7e2ca47..19669eed 100644 --- a/client/src/main/java/com/fastcomments/model/SaveCommentsResponseWithPresence.java +++ b/client/src/main/java/com/fastcomments/model/SaveCommentsResponseWithPresence.java @@ -53,7 +53,7 @@ /** * SaveCommentsResponseWithPresence */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class SaveCommentsResponseWithPresence { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -272,10 +272,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -314,8 +311,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti APIStatus.validateJsonElement(jsonObj.get("status")); // validate the required field `comment` PublicComment.validateJsonElement(jsonObj.get("comment")); + if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { // validate the required field `user` UserSessionInfo.validateJsonElement(jsonObj.get("user")); + } if ((jsonObj.get("userIdWS") != null && !jsonObj.get("userIdWS").isJsonNull()) && !jsonObj.get("userIdWS").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `userIdWS` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userIdWS").toString())); } diff --git a/client/src/main/java/com/fastcomments/model/SearchUsersResponse.java b/client/src/main/java/com/fastcomments/model/SearchUsersResponse.java index f7223a1f..cbb3829f 100644 --- a/client/src/main/java/com/fastcomments/model/SearchUsersResponse.java +++ b/client/src/main/java/com/fastcomments/model/SearchUsersResponse.java @@ -52,7 +52,7 @@ /** * SearchUsersResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class SearchUsersResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -193,10 +193,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -233,16 +230,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("users").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + if (jsonObj.get("users") != null) { + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + } + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + // validate the required field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + UserSearchResult.validateJsonElement(jsonArrayusers.get(i)); + } } - - JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); - // validate the required field `users` (array) - for (int i = 0; i < jsonArrayusers.size(); i++) { - UserSearchResult.validateJsonElement(jsonArrayusers.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/SearchUsers200Response.java b/client/src/main/java/com/fastcomments/model/SearchUsersResult.java similarity index 69% rename from client/src/main/java/com/fastcomments/model/SearchUsers200Response.java rename to client/src/main/java/com/fastcomments/model/SearchUsersResult.java index 164c6616..513aafde 100644 --- a/client/src/main/java/com/fastcomments/model/SearchUsers200Response.java +++ b/client/src/main/java/com/fastcomments/model/SearchUsersResult.java @@ -14,9 +14,7 @@ package com.fastcomments.model; import java.util.Objects; -import com.fastcomments.model.APIError; import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; import com.fastcomments.model.SearchUsersResponse; import com.fastcomments.model.SearchUsersSectionedResponse; import com.fastcomments.model.UserSearchResult; @@ -66,25 +64,24 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class SearchUsers200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(SearchUsers200Response.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class SearchUsersResult extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(SearchUsersResult.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SearchUsers200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SearchUsers200Response' and its subtypes + if (!SearchUsersResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SearchUsersResult' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); final TypeAdapter adapterSearchUsersSectionedResponse = gson.getDelegateAdapter(this, TypeToken.get(SearchUsersSectionedResponse.class)); final TypeAdapter adapterSearchUsersResponse = gson.getDelegateAdapter(this, TypeToken.get(SearchUsersResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, SearchUsers200Response value) throws IOException { + public void write(JsonWriter out, SearchUsersResult value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; @@ -102,17 +99,11 @@ public void write(JsonWriter out, SearchUsers200Response value) throws IOExcepti elementAdapter.write(out, element); return; } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, SearchUsersResponse, SearchUsersSectionedResponse"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: SearchUsersResponse, SearchUsersSectionedResponse"); } @Override - public SearchUsers200Response read(JsonReader in) throws IOException { + public SearchUsersResult read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); @@ -124,7 +115,7 @@ public SearchUsers200Response read(JsonReader in) throws IOException { // validate the JSON object to see if any exception is thrown SearchUsersSectionedResponse.validateJsonElement(jsonElement); actualAdapter = adapterSearchUsersSectionedResponse; - SearchUsers200Response ret = new SearchUsers200Response(); + SearchUsersResult ret = new SearchUsersResult(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { @@ -137,7 +128,7 @@ public SearchUsers200Response read(JsonReader in) throws IOException { // validate the JSON object to see if any exception is thrown SearchUsersResponse.validateJsonElement(jsonElement); actualAdapter = adapterSearchUsersResponse; - SearchUsers200Response ret = new SearchUsers200Response(); + SearchUsersResult ret = new SearchUsersResult(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { @@ -145,21 +136,8 @@ public SearchUsers200Response read(JsonReader in) throws IOException { errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SearchUsersResponse failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'SearchUsersResponse'", e); } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - SearchUsers200Response ret = new SearchUsers200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for SearchUsers200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for SearchUsersResult: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -168,11 +146,11 @@ public SearchUsers200Response read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public SearchUsers200Response() { + public SearchUsersResult() { super("anyOf", Boolean.FALSE); } - public SearchUsers200Response(Object o) { + public SearchUsersResult(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } @@ -180,18 +158,17 @@ public SearchUsers200Response(Object o) { static { schemas.put("SearchUsersSectionedResponse", SearchUsersSectionedResponse.class); schemas.put("SearchUsersResponse", SearchUsersResponse.class); - schemas.put("APIError", APIError.class); } @Override public Map> getSchemas() { - return SearchUsers200Response.schemas; + return SearchUsersResult.schemas; } /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * APIError, SearchUsersResponse, SearchUsersSectionedResponse + * SearchUsersResponse, SearchUsersSectionedResponse * * It could be an instance of the 'anyOf' schemas. */ @@ -207,19 +184,14 @@ public void setActualInstance(Object instance) { return; } - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, SearchUsersResponse, SearchUsersSectionedResponse"); + throw new RuntimeException("Invalid instance type. Must be SearchUsersResponse, SearchUsersSectionedResponse"); } /** * Get the actual instance, which can be the following: - * APIError, SearchUsersResponse, SearchUsersSectionedResponse + * SearchUsersResponse, SearchUsersSectionedResponse * - * @return The actual instance (APIError, SearchUsersResponse, SearchUsersSectionedResponse) + * @return The actual instance (SearchUsersResponse, SearchUsersSectionedResponse) */ @SuppressWarnings("unchecked") @Override @@ -249,22 +221,11 @@ public SearchUsersResponse getSearchUsersResponse() throws ClassCastException { return (SearchUsersResponse)super.getActualInstance(); } - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SearchUsers200Response + * @throws IOException if the JSON Element is invalid with respect to SearchUsersResult */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one @@ -285,30 +246,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SearchUsersResponse failed with `%s`.", e.getMessage())); // continue to the next one } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for SearchUsers200Response with anyOf schemas: APIError, SearchUsersResponse, SearchUsersSectionedResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for SearchUsersResult with anyOf schemas: SearchUsersResponse, SearchUsersSectionedResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of SearchUsers200Response given an JSON string + * Create an instance of SearchUsersResult given an JSON string * * @param jsonString JSON string - * @return An instance of SearchUsers200Response - * @throws IOException if the JSON string is invalid with respect to SearchUsers200Response + * @return An instance of SearchUsersResult + * @throws IOException if the JSON string is invalid with respect to SearchUsersResult */ - public static SearchUsers200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SearchUsers200Response.class); + public static SearchUsersResult fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SearchUsersResult.class); } /** - * Convert an instance of SearchUsers200Response to an JSON string + * Convert an instance of SearchUsersResult to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/SearchUsersSectionedResponse.java b/client/src/main/java/com/fastcomments/model/SearchUsersSectionedResponse.java index 529e3e6d..54b6e34a 100644 --- a/client/src/main/java/com/fastcomments/model/SearchUsersSectionedResponse.java +++ b/client/src/main/java/com/fastcomments/model/SearchUsersSectionedResponse.java @@ -52,7 +52,7 @@ /** * SearchUsersSectionedResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class SearchUsersSectionedResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -193,10 +193,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -233,16 +230,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `status` APIStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("sections").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `sections` to be an array in the JSON string but got `%s`", jsonObj.get("sections").toString())); + if (jsonObj.get("sections") != null) { + if (!jsonObj.get("sections").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `sections` to be an array in the JSON string but got `%s`", jsonObj.get("sections").toString())); + } + JsonArray jsonArraysections = jsonObj.getAsJsonArray("sections"); + // validate the required field `sections` (array) + for (int i = 0; i < jsonArraysections.size(); i++) { + UserSearchSectionResult.validateJsonElement(jsonArraysections.get(i)); + } } - - JsonArray jsonArraysections = jsonObj.getAsJsonArray("sections"); - // validate the required field `sections` (array) - for (int i = 0; i < jsonArraysections.size(); i++) { - UserSearchSectionResult.validateJsonElement(jsonArraysections.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/SetCommentApprovedResponse.java b/client/src/main/java/com/fastcomments/model/SetCommentApprovedResponse.java new file mode 100644 index 00000000..fca454e3 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/SetCommentApprovedResponse.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * SetCommentApprovedResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class SetCommentApprovedResponse { + public static final String SERIALIZED_NAME_DID_RESET_FLAGGED_COUNT = "didResetFlaggedCount"; + @SerializedName(SERIALIZED_NAME_DID_RESET_FLAGGED_COUNT) + @javax.annotation.Nullable + private Boolean didResetFlaggedCount; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public SetCommentApprovedResponse() { + } + + public SetCommentApprovedResponse didResetFlaggedCount(@javax.annotation.Nullable Boolean didResetFlaggedCount) { + this.didResetFlaggedCount = didResetFlaggedCount; + return this; + } + + /** + * Get didResetFlaggedCount + * @return didResetFlaggedCount + */ + @javax.annotation.Nullable + public Boolean getDidResetFlaggedCount() { + return didResetFlaggedCount; + } + + public void setDidResetFlaggedCount(@javax.annotation.Nullable Boolean didResetFlaggedCount) { + this.didResetFlaggedCount = didResetFlaggedCount; + } + + + public SetCommentApprovedResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the SetCommentApprovedResponse instance itself + */ + public SetCommentApprovedResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetCommentApprovedResponse setCommentApprovedResponse = (SetCommentApprovedResponse) o; + return Objects.equals(this.didResetFlaggedCount, setCommentApprovedResponse.didResetFlaggedCount) && + Objects.equals(this.status, setCommentApprovedResponse.status)&& + Objects.equals(this.additionalProperties, setCommentApprovedResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(didResetFlaggedCount, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetCommentApprovedResponse {\n"); + sb.append(" didResetFlaggedCount: ").append(toIndentedString(didResetFlaggedCount)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("didResetFlaggedCount", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SetCommentApprovedResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SetCommentApprovedResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in SetCommentApprovedResponse is not found in the empty JSON string", SetCommentApprovedResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SetCommentApprovedResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SetCommentApprovedResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetCommentApprovedResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetCommentApprovedResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetCommentApprovedResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public SetCommentApprovedResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + SetCommentApprovedResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of SetCommentApprovedResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of SetCommentApprovedResponse + * @throws IOException if the JSON string is invalid with respect to SetCommentApprovedResponse + */ + public static SetCommentApprovedResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SetCommentApprovedResponse.class); + } + + /** + * Convert an instance of SetCommentApprovedResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/SetCommentText200Response.java b/client/src/main/java/com/fastcomments/model/SetCommentText200Response.java deleted file mode 100644 index 0d7b95bd..00000000 --- a/client/src/main/java/com/fastcomments/model/SetCommentText200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.PublicAPISetCommentTextResponse; -import com.fastcomments.model.SetCommentTextResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class SetCommentText200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(SetCommentText200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetCommentText200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetCommentText200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterPublicAPISetCommentTextResponse = gson.getDelegateAdapter(this, TypeToken.get(PublicAPISetCommentTextResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetCommentText200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `PublicAPISetCommentTextResponse` - if (value.getActualInstance() instanceof PublicAPISetCommentTextResponse) { - JsonElement element = adapterPublicAPISetCommentTextResponse.toJsonTree((PublicAPISetCommentTextResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, PublicAPISetCommentTextResponse"); - } - - @Override - public SetCommentText200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize PublicAPISetCommentTextResponse - try { - // validate the JSON object to see if any exception is thrown - PublicAPISetCommentTextResponse.validateJsonElement(jsonElement); - actualAdapter = adapterPublicAPISetCommentTextResponse; - SetCommentText200Response ret = new SetCommentText200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PublicAPISetCommentTextResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'PublicAPISetCommentTextResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - SetCommentText200Response ret = new SetCommentText200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for SetCommentText200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public SetCommentText200Response() { - super("anyOf", Boolean.FALSE); - } - - public SetCommentText200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("PublicAPISetCommentTextResponse", PublicAPISetCommentTextResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return SetCommentText200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, PublicAPISetCommentTextResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof PublicAPISetCommentTextResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, PublicAPISetCommentTextResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, PublicAPISetCommentTextResponse - * - * @return The actual instance (APIError, PublicAPISetCommentTextResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `PublicAPISetCommentTextResponse`. If the actual instance is not `PublicAPISetCommentTextResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PublicAPISetCommentTextResponse` - * @throws ClassCastException if the instance is not `PublicAPISetCommentTextResponse` - */ - public PublicAPISetCommentTextResponse getPublicAPISetCommentTextResponse() throws ClassCastException { - return (PublicAPISetCommentTextResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SetCommentText200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with PublicAPISetCommentTextResponse - try { - PublicAPISetCommentTextResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PublicAPISetCommentTextResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for SetCommentText200Response with anyOf schemas: APIError, PublicAPISetCommentTextResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of SetCommentText200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of SetCommentText200Response - * @throws IOException if the JSON string is invalid with respect to SetCommentText200Response - */ - public static SetCommentText200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SetCommentText200Response.class); - } - - /** - * Convert an instance of SetCommentText200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/SetCommentTextParams.java b/client/src/main/java/com/fastcomments/model/SetCommentTextParams.java new file mode 100644 index 00000000..32593a8a --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/SetCommentTextParams.java @@ -0,0 +1,209 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * SetCommentTextParams + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class SetCommentTextParams { + public static final String SERIALIZED_NAME_COMMENT = "comment"; + @SerializedName(SERIALIZED_NAME_COMMENT) + @javax.annotation.Nonnull + private String comment; + + public SetCommentTextParams() { + } + + public SetCommentTextParams comment(@javax.annotation.Nonnull String comment) { + this.comment = comment; + return this; + } + + /** + * Get comment + * @return comment + */ + @javax.annotation.Nonnull + public String getComment() { + return comment; + } + + public void setComment(@javax.annotation.Nonnull String comment) { + this.comment = comment; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetCommentTextParams setCommentTextParams = (SetCommentTextParams) o; + return Objects.equals(this.comment, setCommentTextParams.comment); + } + + @Override + public int hashCode() { + return Objects.hash(comment); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetCommentTextParams {\n"); + sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("comment")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("comment")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SetCommentTextParams + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SetCommentTextParams.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in SetCommentTextParams is not found in the empty JSON string", SetCommentTextParams.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetCommentTextParams.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetCommentTextParams` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SetCommentTextParams.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("comment").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `comment` to be a primitive type in the JSON string but got `%s`", jsonObj.get("comment").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SetCommentTextParams.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetCommentTextParams' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetCommentTextParams.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetCommentTextParams value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetCommentTextParams read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of SetCommentTextParams given an JSON string + * + * @param jsonString JSON string + * @return An instance of SetCommentTextParams + * @throws IOException if the JSON string is invalid with respect to SetCommentTextParams + */ + public static SetCommentTextParams fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SetCommentTextParams.class); + } + + /** + * Convert an instance of SetCommentTextParams to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/SetCommentTextResponse.java b/client/src/main/java/com/fastcomments/model/SetCommentTextResponse.java new file mode 100644 index 00000000..4fb4fcbd --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/SetCommentTextResponse.java @@ -0,0 +1,319 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * SetCommentTextResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class SetCommentTextResponse { + public static final String SERIALIZED_NAME_NEW_COMMENT_TEXT_H_T_M_L = "newCommentTextHTML"; + @SerializedName(SERIALIZED_NAME_NEW_COMMENT_TEXT_H_T_M_L) + @javax.annotation.Nonnull + private String newCommentTextHTML; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public SetCommentTextResponse() { + } + + public SetCommentTextResponse newCommentTextHTML(@javax.annotation.Nonnull String newCommentTextHTML) { + this.newCommentTextHTML = newCommentTextHTML; + return this; + } + + /** + * Get newCommentTextHTML + * @return newCommentTextHTML + */ + @javax.annotation.Nonnull + public String getNewCommentTextHTML() { + return newCommentTextHTML; + } + + public void setNewCommentTextHTML(@javax.annotation.Nonnull String newCommentTextHTML) { + this.newCommentTextHTML = newCommentTextHTML; + } + + + public SetCommentTextResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the SetCommentTextResponse instance itself + */ + public SetCommentTextResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetCommentTextResponse setCommentTextResponse = (SetCommentTextResponse) o; + return Objects.equals(this.newCommentTextHTML, setCommentTextResponse.newCommentTextHTML) && + Objects.equals(this.status, setCommentTextResponse.status)&& + Objects.equals(this.additionalProperties, setCommentTextResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(newCommentTextHTML, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetCommentTextResponse {\n"); + sb.append(" newCommentTextHTML: ").append(toIndentedString(newCommentTextHTML)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("newCommentTextHTML", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("newCommentTextHTML", "status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SetCommentTextResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SetCommentTextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in SetCommentTextResponse is not found in the empty JSON string", SetCommentTextResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SetCommentTextResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("newCommentTextHTML").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `newCommentTextHTML` to be a primitive type in the JSON string but got `%s`", jsonObj.get("newCommentTextHTML").toString())); + } + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SetCommentTextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetCommentTextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetCommentTextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetCommentTextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public SetCommentTextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + SetCommentTextResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of SetCommentTextResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of SetCommentTextResponse + * @throws IOException if the JSON string is invalid with respect to SetCommentTextResponse + */ + public static SetCommentTextResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SetCommentTextResponse.class); + } + + /** + * Convert an instance of SetCommentTextResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/SetCommentTextResult.java b/client/src/main/java/com/fastcomments/model/SetCommentTextResult.java index f46e3fd9..7cd0f802 100644 --- a/client/src/main/java/com/fastcomments/model/SetCommentTextResult.java +++ b/client/src/main/java/com/fastcomments/model/SetCommentTextResult.java @@ -48,7 +48,7 @@ /** * SetCommentTextResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class SetCommentTextResult { public static final String SERIALIZED_NAME_APPROVED = "approved"; @SerializedName(SERIALIZED_NAME_APPROVED) @@ -135,10 +135,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/SetUserTrustFactorResponse.java b/client/src/main/java/com/fastcomments/model/SetUserTrustFactorResponse.java new file mode 100644 index 00000000..0b79147e --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/SetUserTrustFactorResponse.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * SetUserTrustFactorResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class SetUserTrustFactorResponse { + public static final String SERIALIZED_NAME_PREVIOUS_MANUAL_TRUST_FACTOR = "previousManualTrustFactor"; + @SerializedName(SERIALIZED_NAME_PREVIOUS_MANUAL_TRUST_FACTOR) + @javax.annotation.Nullable + private Double previousManualTrustFactor; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public SetUserTrustFactorResponse() { + } + + public SetUserTrustFactorResponse previousManualTrustFactor(@javax.annotation.Nullable Double previousManualTrustFactor) { + this.previousManualTrustFactor = previousManualTrustFactor; + return this; + } + + /** + * Get previousManualTrustFactor + * @return previousManualTrustFactor + */ + @javax.annotation.Nullable + public Double getPreviousManualTrustFactor() { + return previousManualTrustFactor; + } + + public void setPreviousManualTrustFactor(@javax.annotation.Nullable Double previousManualTrustFactor) { + this.previousManualTrustFactor = previousManualTrustFactor; + } + + + public SetUserTrustFactorResponse status(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public APIStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull APIStatus status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the SetUserTrustFactorResponse instance itself + */ + public SetUserTrustFactorResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetUserTrustFactorResponse setUserTrustFactorResponse = (SetUserTrustFactorResponse) o; + return Objects.equals(this.previousManualTrustFactor, setUserTrustFactorResponse.previousManualTrustFactor) && + Objects.equals(this.status, setUserTrustFactorResponse.status)&& + Objects.equals(this.additionalProperties, setUserTrustFactorResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(previousManualTrustFactor, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetUserTrustFactorResponse {\n"); + sb.append(" previousManualTrustFactor: ").append(toIndentedString(previousManualTrustFactor)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("previousManualTrustFactor", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("status")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SetUserTrustFactorResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SetUserTrustFactorResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in SetUserTrustFactorResponse is not found in the empty JSON string", SetUserTrustFactorResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SetUserTrustFactorResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SetUserTrustFactorResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetUserTrustFactorResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetUserTrustFactorResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetUserTrustFactorResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public SetUserTrustFactorResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + SetUserTrustFactorResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of SetUserTrustFactorResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of SetUserTrustFactorResponse + * @throws IOException if the JSON string is invalid with respect to SetUserTrustFactorResponse + */ + public static SetUserTrustFactorResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SetUserTrustFactorResponse.class); + } + + /** + * Convert an instance of SetUserTrustFactorResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/SpamRule.java b/client/src/main/java/com/fastcomments/model/SpamRule.java index e836393e..92281e61 100644 --- a/client/src/main/java/com/fastcomments/model/SpamRule.java +++ b/client/src/main/java/com/fastcomments/model/SpamRule.java @@ -50,7 +50,7 @@ /** * SpamRule */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class SpamRule { /** * Gets or Sets actions @@ -199,10 +199,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/TOSConfig.java b/client/src/main/java/com/fastcomments/model/TOSConfig.java index 3d139c1e..096704b3 100644 --- a/client/src/main/java/com/fastcomments/model/TOSConfig.java +++ b/client/src/main/java/com/fastcomments/model/TOSConfig.java @@ -51,7 +51,7 @@ /** * TOSConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class TOSConfig { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @SerializedName(SERIALIZED_NAME_ENABLED) @@ -172,10 +172,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/TenantBadge.java b/client/src/main/java/com/fastcomments/model/TenantBadge.java new file mode 100644 index 00000000..aa938275 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/TenantBadge.java @@ -0,0 +1,766 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.fastcomments.invoker.JSON; + +/** + * TenantBadge + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class TenantBadge { + public static final String SERIALIZED_NAME_ID = "_id"; + @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nonnull + private String id; + + public static final String SERIALIZED_NAME_TENANT_ID = "tenantId"; + @SerializedName(SERIALIZED_NAME_TENANT_ID) + @javax.annotation.Nonnull + private String tenantId; + + public static final String SERIALIZED_NAME_CREATED_BY_USER_ID = "createdByUserId"; + @SerializedName(SERIALIZED_NAME_CREATED_BY_USER_ID) + @javax.annotation.Nonnull + private String createdByUserId; + + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + @javax.annotation.Nonnull + private OffsetDateTime createdAt; + + public static final String SERIALIZED_NAME_ENABLED = "enabled"; + @SerializedName(SERIALIZED_NAME_ENABLED) + @javax.annotation.Nonnull + private Boolean enabled; + + public static final String SERIALIZED_NAME_URL_ID = "urlId"; + @SerializedName(SERIALIZED_NAME_URL_ID) + @javax.annotation.Nullable + private String urlId; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nonnull + private Double type; + + public static final String SERIALIZED_NAME_THRESHOLD = "threshold"; + @SerializedName(SERIALIZED_NAME_THRESHOLD) + @javax.annotation.Nonnull + private Double threshold; + + public static final String SERIALIZED_NAME_USES = "uses"; + @SerializedName(SERIALIZED_NAME_USES) + @javax.annotation.Nonnull + private Double uses; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nonnull + private String description; + + public static final String SERIALIZED_NAME_DISPLAY_LABEL = "displayLabel"; + @SerializedName(SERIALIZED_NAME_DISPLAY_LABEL) + @javax.annotation.Nonnull + private String displayLabel; + + public static final String SERIALIZED_NAME_DISPLAY_SRC = "displaySrc"; + @SerializedName(SERIALIZED_NAME_DISPLAY_SRC) + @javax.annotation.Nullable + private String displaySrc; + + public static final String SERIALIZED_NAME_BACKGROUND_COLOR = "backgroundColor"; + @SerializedName(SERIALIZED_NAME_BACKGROUND_COLOR) + @javax.annotation.Nullable + private String backgroundColor; + + public static final String SERIALIZED_NAME_BORDER_COLOR = "borderColor"; + @SerializedName(SERIALIZED_NAME_BORDER_COLOR) + @javax.annotation.Nullable + private String borderColor; + + public static final String SERIALIZED_NAME_TEXT_COLOR = "textColor"; + @SerializedName(SERIALIZED_NAME_TEXT_COLOR) + @javax.annotation.Nullable + private String textColor; + + public static final String SERIALIZED_NAME_CSS_CLASS = "cssClass"; + @SerializedName(SERIALIZED_NAME_CSS_CLASS) + @javax.annotation.Nullable + private String cssClass; + + public static final String SERIALIZED_NAME_VETERAN_USER_THRESHOLD_MILLIS = "veteranUserThresholdMillis"; + @SerializedName(SERIALIZED_NAME_VETERAN_USER_THRESHOLD_MILLIS) + @javax.annotation.Nullable + private Double veteranUserThresholdMillis; + + public static final String SERIALIZED_NAME_IS_AWAITING_REPROCESS = "isAwaitingReprocess"; + @SerializedName(SERIALIZED_NAME_IS_AWAITING_REPROCESS) + @javax.annotation.Nonnull + private Boolean isAwaitingReprocess; + + public static final String SERIALIZED_NAME_IS_AWAITING_DELETION = "isAwaitingDeletion"; + @SerializedName(SERIALIZED_NAME_IS_AWAITING_DELETION) + @javax.annotation.Nonnull + private Boolean isAwaitingDeletion; + + public static final String SERIALIZED_NAME_REPLACES_BADGE_ID = "replacesBadgeId"; + @SerializedName(SERIALIZED_NAME_REPLACES_BADGE_ID) + @javax.annotation.Nullable + private String replacesBadgeId; + + public TenantBadge() { + } + + public TenantBadge id(@javax.annotation.Nonnull String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @javax.annotation.Nonnull + public String getId() { + return id; + } + + public void setId(@javax.annotation.Nonnull String id) { + this.id = id; + } + + + public TenantBadge tenantId(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; + return this; + } + + /** + * Get tenantId + * @return tenantId + */ + @javax.annotation.Nonnull + public String getTenantId() { + return tenantId; + } + + public void setTenantId(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; + } + + + public TenantBadge createdByUserId(@javax.annotation.Nonnull String createdByUserId) { + this.createdByUserId = createdByUserId; + return this; + } + + /** + * Get createdByUserId + * @return createdByUserId + */ + @javax.annotation.Nonnull + public String getCreatedByUserId() { + return createdByUserId; + } + + public void setCreatedByUserId(@javax.annotation.Nonnull String createdByUserId) { + this.createdByUserId = createdByUserId; + } + + + public TenantBadge createdAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + */ + @javax.annotation.Nonnull + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public TenantBadge enabled(@javax.annotation.Nonnull Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get enabled + * @return enabled + */ + @javax.annotation.Nonnull + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(@javax.annotation.Nonnull Boolean enabled) { + this.enabled = enabled; + } + + + public TenantBadge urlId(@javax.annotation.Nullable String urlId) { + this.urlId = urlId; + return this; + } + + /** + * Get urlId + * @return urlId + */ + @javax.annotation.Nullable + public String getUrlId() { + return urlId; + } + + public void setUrlId(@javax.annotation.Nullable String urlId) { + this.urlId = urlId; + } + + + public TenantBadge type(@javax.annotation.Nonnull Double type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @javax.annotation.Nonnull + public Double getType() { + return type; + } + + public void setType(@javax.annotation.Nonnull Double type) { + this.type = type; + } + + + public TenantBadge threshold(@javax.annotation.Nonnull Double threshold) { + this.threshold = threshold; + return this; + } + + /** + * Get threshold + * @return threshold + */ + @javax.annotation.Nonnull + public Double getThreshold() { + return threshold; + } + + public void setThreshold(@javax.annotation.Nonnull Double threshold) { + this.threshold = threshold; + } + + + public TenantBadge uses(@javax.annotation.Nonnull Double uses) { + this.uses = uses; + return this; + } + + /** + * Get uses + * @return uses + */ + @javax.annotation.Nonnull + public Double getUses() { + return uses; + } + + public void setUses(@javax.annotation.Nonnull Double uses) { + this.uses = uses; + } + + + public TenantBadge name(@javax.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + */ + @javax.annotation.Nonnull + public String getName() { + return name; + } + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + + public TenantBadge description(@javax.annotation.Nonnull String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + */ + @javax.annotation.Nonnull + public String getDescription() { + return description; + } + + public void setDescription(@javax.annotation.Nonnull String description) { + this.description = description; + } + + + public TenantBadge displayLabel(@javax.annotation.Nonnull String displayLabel) { + this.displayLabel = displayLabel; + return this; + } + + /** + * Get displayLabel + * @return displayLabel + */ + @javax.annotation.Nonnull + public String getDisplayLabel() { + return displayLabel; + } + + public void setDisplayLabel(@javax.annotation.Nonnull String displayLabel) { + this.displayLabel = displayLabel; + } + + + public TenantBadge displaySrc(@javax.annotation.Nullable String displaySrc) { + this.displaySrc = displaySrc; + return this; + } + + /** + * Get displaySrc + * @return displaySrc + */ + @javax.annotation.Nullable + public String getDisplaySrc() { + return displaySrc; + } + + public void setDisplaySrc(@javax.annotation.Nullable String displaySrc) { + this.displaySrc = displaySrc; + } + + + public TenantBadge backgroundColor(@javax.annotation.Nullable String backgroundColor) { + this.backgroundColor = backgroundColor; + return this; + } + + /** + * Get backgroundColor + * @return backgroundColor + */ + @javax.annotation.Nullable + public String getBackgroundColor() { + return backgroundColor; + } + + public void setBackgroundColor(@javax.annotation.Nullable String backgroundColor) { + this.backgroundColor = backgroundColor; + } + + + public TenantBadge borderColor(@javax.annotation.Nullable String borderColor) { + this.borderColor = borderColor; + return this; + } + + /** + * Get borderColor + * @return borderColor + */ + @javax.annotation.Nullable + public String getBorderColor() { + return borderColor; + } + + public void setBorderColor(@javax.annotation.Nullable String borderColor) { + this.borderColor = borderColor; + } + + + public TenantBadge textColor(@javax.annotation.Nullable String textColor) { + this.textColor = textColor; + return this; + } + + /** + * Get textColor + * @return textColor + */ + @javax.annotation.Nullable + public String getTextColor() { + return textColor; + } + + public void setTextColor(@javax.annotation.Nullable String textColor) { + this.textColor = textColor; + } + + + public TenantBadge cssClass(@javax.annotation.Nullable String cssClass) { + this.cssClass = cssClass; + return this; + } + + /** + * Get cssClass + * @return cssClass + */ + @javax.annotation.Nullable + public String getCssClass() { + return cssClass; + } + + public void setCssClass(@javax.annotation.Nullable String cssClass) { + this.cssClass = cssClass; + } + + + public TenantBadge veteranUserThresholdMillis(@javax.annotation.Nullable Double veteranUserThresholdMillis) { + this.veteranUserThresholdMillis = veteranUserThresholdMillis; + return this; + } + + /** + * Get veteranUserThresholdMillis + * @return veteranUserThresholdMillis + */ + @javax.annotation.Nullable + public Double getVeteranUserThresholdMillis() { + return veteranUserThresholdMillis; + } + + public void setVeteranUserThresholdMillis(@javax.annotation.Nullable Double veteranUserThresholdMillis) { + this.veteranUserThresholdMillis = veteranUserThresholdMillis; + } + + + public TenantBadge isAwaitingReprocess(@javax.annotation.Nonnull Boolean isAwaitingReprocess) { + this.isAwaitingReprocess = isAwaitingReprocess; + return this; + } + + /** + * Get isAwaitingReprocess + * @return isAwaitingReprocess + */ + @javax.annotation.Nonnull + public Boolean getIsAwaitingReprocess() { + return isAwaitingReprocess; + } + + public void setIsAwaitingReprocess(@javax.annotation.Nonnull Boolean isAwaitingReprocess) { + this.isAwaitingReprocess = isAwaitingReprocess; + } + + + public TenantBadge isAwaitingDeletion(@javax.annotation.Nonnull Boolean isAwaitingDeletion) { + this.isAwaitingDeletion = isAwaitingDeletion; + return this; + } + + /** + * Get isAwaitingDeletion + * @return isAwaitingDeletion + */ + @javax.annotation.Nonnull + public Boolean getIsAwaitingDeletion() { + return isAwaitingDeletion; + } + + public void setIsAwaitingDeletion(@javax.annotation.Nonnull Boolean isAwaitingDeletion) { + this.isAwaitingDeletion = isAwaitingDeletion; + } + + + public TenantBadge replacesBadgeId(@javax.annotation.Nullable String replacesBadgeId) { + this.replacesBadgeId = replacesBadgeId; + return this; + } + + /** + * Get replacesBadgeId + * @return replacesBadgeId + */ + @javax.annotation.Nullable + public String getReplacesBadgeId() { + return replacesBadgeId; + } + + public void setReplacesBadgeId(@javax.annotation.Nullable String replacesBadgeId) { + this.replacesBadgeId = replacesBadgeId; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TenantBadge tenantBadge = (TenantBadge) o; + return Objects.equals(this.id, tenantBadge.id) && + Objects.equals(this.tenantId, tenantBadge.tenantId) && + Objects.equals(this.createdByUserId, tenantBadge.createdByUserId) && + Objects.equals(this.createdAt, tenantBadge.createdAt) && + Objects.equals(this.enabled, tenantBadge.enabled) && + Objects.equals(this.urlId, tenantBadge.urlId) && + Objects.equals(this.type, tenantBadge.type) && + Objects.equals(this.threshold, tenantBadge.threshold) && + Objects.equals(this.uses, tenantBadge.uses) && + Objects.equals(this.name, tenantBadge.name) && + Objects.equals(this.description, tenantBadge.description) && + Objects.equals(this.displayLabel, tenantBadge.displayLabel) && + Objects.equals(this.displaySrc, tenantBadge.displaySrc) && + Objects.equals(this.backgroundColor, tenantBadge.backgroundColor) && + Objects.equals(this.borderColor, tenantBadge.borderColor) && + Objects.equals(this.textColor, tenantBadge.textColor) && + Objects.equals(this.cssClass, tenantBadge.cssClass) && + Objects.equals(this.veteranUserThresholdMillis, tenantBadge.veteranUserThresholdMillis) && + Objects.equals(this.isAwaitingReprocess, tenantBadge.isAwaitingReprocess) && + Objects.equals(this.isAwaitingDeletion, tenantBadge.isAwaitingDeletion) && + Objects.equals(this.replacesBadgeId, tenantBadge.replacesBadgeId); + } + + @Override + public int hashCode() { + return Objects.hash(id, tenantId, createdByUserId, createdAt, enabled, urlId, type, threshold, uses, name, description, displayLabel, displaySrc, backgroundColor, borderColor, textColor, cssClass, veteranUserThresholdMillis, isAwaitingReprocess, isAwaitingDeletion, replacesBadgeId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TenantBadge {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); + sb.append(" createdByUserId: ").append(toIndentedString(createdByUserId)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" urlId: ").append(toIndentedString(urlId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" threshold: ").append(toIndentedString(threshold)).append("\n"); + sb.append(" uses: ").append(toIndentedString(uses)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" displayLabel: ").append(toIndentedString(displayLabel)).append("\n"); + sb.append(" displaySrc: ").append(toIndentedString(displaySrc)).append("\n"); + sb.append(" backgroundColor: ").append(toIndentedString(backgroundColor)).append("\n"); + sb.append(" borderColor: ").append(toIndentedString(borderColor)).append("\n"); + sb.append(" textColor: ").append(toIndentedString(textColor)).append("\n"); + sb.append(" cssClass: ").append(toIndentedString(cssClass)).append("\n"); + sb.append(" veteranUserThresholdMillis: ").append(toIndentedString(veteranUserThresholdMillis)).append("\n"); + sb.append(" isAwaitingReprocess: ").append(toIndentedString(isAwaitingReprocess)).append("\n"); + sb.append(" isAwaitingDeletion: ").append(toIndentedString(isAwaitingDeletion)).append("\n"); + sb.append(" replacesBadgeId: ").append(toIndentedString(replacesBadgeId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("_id", "tenantId", "createdByUserId", "createdAt", "enabled", "urlId", "type", "threshold", "uses", "name", "description", "displayLabel", "displaySrc", "backgroundColor", "borderColor", "textColor", "cssClass", "veteranUserThresholdMillis", "isAwaitingReprocess", "isAwaitingDeletion", "replacesBadgeId")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("_id", "tenantId", "createdByUserId", "createdAt", "enabled", "type", "threshold", "uses", "name", "description", "displayLabel", "displaySrc", "backgroundColor", "borderColor", "textColor", "isAwaitingReprocess", "isAwaitingDeletion")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TenantBadge + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TenantBadge.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in TenantBadge is not found in the empty JSON string", TenantBadge.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TenantBadge.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `TenantBadge` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : TenantBadge.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("_id").toString())); + } + if (!jsonObj.get("tenantId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tenantId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tenantId").toString())); + } + if (!jsonObj.get("createdByUserId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `createdByUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdByUserId").toString())); + } + if ((jsonObj.get("urlId") != null && !jsonObj.get("urlId").isJsonNull()) && !jsonObj.get("urlId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `urlId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("urlId").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if (!jsonObj.get("displayLabel").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `displayLabel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayLabel").toString())); + } + if ((jsonObj.get("displaySrc") != null && !jsonObj.get("displaySrc").isJsonNull()) && !jsonObj.get("displaySrc").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `displaySrc` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displaySrc").toString())); + } + if ((jsonObj.get("backgroundColor") != null && !jsonObj.get("backgroundColor").isJsonNull()) && !jsonObj.get("backgroundColor").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `backgroundColor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("backgroundColor").toString())); + } + if ((jsonObj.get("borderColor") != null && !jsonObj.get("borderColor").isJsonNull()) && !jsonObj.get("borderColor").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `borderColor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("borderColor").toString())); + } + if ((jsonObj.get("textColor") != null && !jsonObj.get("textColor").isJsonNull()) && !jsonObj.get("textColor").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `textColor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("textColor").toString())); + } + if ((jsonObj.get("cssClass") != null && !jsonObj.get("cssClass").isJsonNull()) && !jsonObj.get("cssClass").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `cssClass` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cssClass").toString())); + } + if ((jsonObj.get("replacesBadgeId") != null && !jsonObj.get("replacesBadgeId").isJsonNull()) && !jsonObj.get("replacesBadgeId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `replacesBadgeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("replacesBadgeId").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TenantBadge.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TenantBadge' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TenantBadge.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TenantBadge value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TenantBadge read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of TenantBadge given an JSON string + * + * @param jsonString JSON string + * @return An instance of TenantBadge + * @throws IOException if the JSON string is invalid with respect to TenantBadge + */ + public static TenantBadge fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TenantBadge.class); + } + + /** + * Convert an instance of TenantBadge to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/TenantHashTag.java b/client/src/main/java/com/fastcomments/model/TenantHashTag.java index 1d7ed5f4..09a461ab 100644 --- a/client/src/main/java/com/fastcomments/model/TenantHashTag.java +++ b/client/src/main/java/com/fastcomments/model/TenantHashTag.java @@ -49,7 +49,7 @@ /** * TenantHashTag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class TenantHashTag { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -214,10 +214,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/TenantPackage.java b/client/src/main/java/com/fastcomments/model/TenantPackage.java index a589e2ce..d67f32bf 100644 --- a/client/src/main/java/com/fastcomments/model/TenantPackage.java +++ b/client/src/main/java/com/fastcomments/model/TenantPackage.java @@ -51,7 +51,7 @@ /** * TenantPackage */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class TenantPackage { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -73,6 +73,11 @@ public class TenantPackage { @javax.annotation.Nonnull private OffsetDateTime createdAt; + public static final String SERIALIZED_NAME_TEMPLATE_ID = "templateId"; + @SerializedName(SERIALIZED_NAME_TEMPLATE_ID) + @javax.annotation.Nullable + private String templateId; + public static final String SERIALIZED_NAME_MONTHLY_COST_U_S_D = "monthlyCostUSD"; @SerializedName(SERIALIZED_NAME_MONTHLY_COST_U_S_D) @javax.annotation.Nullable @@ -333,6 +338,26 @@ public class TenantPackage { @javax.annotation.Nullable private Boolean isSSOBillingMonthlyActiveUsers; + public static final String SERIALIZED_NAME_HAS_A_I_AGENTS = "hasAIAgents"; + @SerializedName(SERIALIZED_NAME_HAS_A_I_AGENTS) + @javax.annotation.Nullable + private Boolean hasAIAgents; + + public static final String SERIALIZED_NAME_MAX_A_I_AGENTS = "maxAIAgents"; + @SerializedName(SERIALIZED_NAME_MAX_A_I_AGENTS) + @javax.annotation.Nullable + private Double maxAIAgents; + + public static final String SERIALIZED_NAME_AI_AGENT_DAILY_BUDGET_CENTS = "aiAgentDailyBudgetCents"; + @SerializedName(SERIALIZED_NAME_AI_AGENT_DAILY_BUDGET_CENTS) + @javax.annotation.Nullable + private Double aiAgentDailyBudgetCents; + + public static final String SERIALIZED_NAME_AI_AGENT_MONTHLY_BUDGET_CENTS = "aiAgentMonthlyBudgetCents"; + @SerializedName(SERIALIZED_NAME_AI_AGENT_MONTHLY_BUDGET_CENTS) + @javax.annotation.Nullable + private Double aiAgentMonthlyBudgetCents; + public TenantPackage() { } @@ -412,6 +437,25 @@ public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { } + public TenantPackage templateId(@javax.annotation.Nullable String templateId) { + this.templateId = templateId; + return this; + } + + /** + * Get templateId + * @return templateId + */ + @javax.annotation.Nullable + public String getTemplateId() { + return templateId; + } + + public void setTemplateId(@javax.annotation.Nullable String templateId) { + this.templateId = templateId; + } + + public TenantPackage monthlyCostUSD(@javax.annotation.Nullable Double monthlyCostUSD) { this.monthlyCostUSD = monthlyCostUSD; return this; @@ -1408,6 +1452,82 @@ public void setIsSSOBillingMonthlyActiveUsers(@javax.annotation.Nullable Boolean } + public TenantPackage hasAIAgents(@javax.annotation.Nullable Boolean hasAIAgents) { + this.hasAIAgents = hasAIAgents; + return this; + } + + /** + * Get hasAIAgents + * @return hasAIAgents + */ + @javax.annotation.Nullable + public Boolean getHasAIAgents() { + return hasAIAgents; + } + + public void setHasAIAgents(@javax.annotation.Nullable Boolean hasAIAgents) { + this.hasAIAgents = hasAIAgents; + } + + + public TenantPackage maxAIAgents(@javax.annotation.Nullable Double maxAIAgents) { + this.maxAIAgents = maxAIAgents; + return this; + } + + /** + * Get maxAIAgents + * @return maxAIAgents + */ + @javax.annotation.Nullable + public Double getMaxAIAgents() { + return maxAIAgents; + } + + public void setMaxAIAgents(@javax.annotation.Nullable Double maxAIAgents) { + this.maxAIAgents = maxAIAgents; + } + + + public TenantPackage aiAgentDailyBudgetCents(@javax.annotation.Nullable Double aiAgentDailyBudgetCents) { + this.aiAgentDailyBudgetCents = aiAgentDailyBudgetCents; + return this; + } + + /** + * Get aiAgentDailyBudgetCents + * @return aiAgentDailyBudgetCents + */ + @javax.annotation.Nullable + public Double getAiAgentDailyBudgetCents() { + return aiAgentDailyBudgetCents; + } + + public void setAiAgentDailyBudgetCents(@javax.annotation.Nullable Double aiAgentDailyBudgetCents) { + this.aiAgentDailyBudgetCents = aiAgentDailyBudgetCents; + } + + + public TenantPackage aiAgentMonthlyBudgetCents(@javax.annotation.Nullable Double aiAgentMonthlyBudgetCents) { + this.aiAgentMonthlyBudgetCents = aiAgentMonthlyBudgetCents; + return this; + } + + /** + * Get aiAgentMonthlyBudgetCents + * @return aiAgentMonthlyBudgetCents + */ + @javax.annotation.Nullable + public Double getAiAgentMonthlyBudgetCents() { + return aiAgentMonthlyBudgetCents; + } + + public void setAiAgentMonthlyBudgetCents(@javax.annotation.Nullable Double aiAgentMonthlyBudgetCents) { + this.aiAgentMonthlyBudgetCents = aiAgentMonthlyBudgetCents; + } + + @Override public boolean equals(Object o) { @@ -1422,6 +1542,7 @@ public boolean equals(Object o) { Objects.equals(this.name, tenantPackage.name) && Objects.equals(this.tenantId, tenantPackage.tenantId) && Objects.equals(this.createdAt, tenantPackage.createdAt) && + Objects.equals(this.templateId, tenantPackage.templateId) && Objects.equals(this.monthlyCostUSD, tenantPackage.monthlyCostUSD) && Objects.equals(this.yearlyCostUSD, tenantPackage.yearlyCostUSD) && Objects.equals(this.monthlyStripePlanId, tenantPackage.monthlyStripePlanId) && @@ -1473,12 +1594,16 @@ public boolean equals(Object o) { Objects.equals(this.flexSSOAdminUnit, tenantPackage.flexSSOAdminUnit) && Objects.equals(this.flexSSOModeratorCostCents, tenantPackage.flexSSOModeratorCostCents) && Objects.equals(this.flexSSOModeratorUnit, tenantPackage.flexSSOModeratorUnit) && - Objects.equals(this.isSSOBillingMonthlyActiveUsers, tenantPackage.isSSOBillingMonthlyActiveUsers); + Objects.equals(this.isSSOBillingMonthlyActiveUsers, tenantPackage.isSSOBillingMonthlyActiveUsers) && + Objects.equals(this.hasAIAgents, tenantPackage.hasAIAgents) && + Objects.equals(this.maxAIAgents, tenantPackage.maxAIAgents) && + Objects.equals(this.aiAgentDailyBudgetCents, tenantPackage.aiAgentDailyBudgetCents) && + Objects.equals(this.aiAgentMonthlyBudgetCents, tenantPackage.aiAgentMonthlyBudgetCents); } @Override public int hashCode() { - return Objects.hash(id, name, tenantId, createdAt, monthlyCostUSD, yearlyCostUSD, monthlyStripePlanId, yearlyStripePlanId, maxMonthlyPageLoads, maxMonthlyAPICredits, maxMonthlySmallWidgetsCredits, maxMonthlyComments, maxConcurrentUsers, maxTenantUsers, maxSSOUsers, maxModerators, maxDomains, maxWhiteLabeledTenants, maxMonthlyEventLogRequests, maxCustomCollectionSize, hasWhiteLabeling, hasDebranding, hasLLMSpamDetection, forWhoText, featureTaglines, hasAuditing, hasFlexPricing, enableSAML, enableCanvasLTI, flexPageLoadCostCents, flexPageLoadUnit, flexCommentCostCents, flexCommentUnit, flexSSOUserCostCents, flexSSOUserUnit, flexAPICreditCostCents, flexAPICreditUnit, flexSmallWidgetsCreditCostCents, flexSmallWidgetsCreditUnit, flexModeratorCostCents, flexModeratorUnit, flexAdminCostCents, flexAdminUnit, flexDomainCostCents, flexDomainUnit, flexChatGPTCostCents, flexChatGPTUnit, flexLLMCostCents, flexLLMUnit, flexMinimumCostCents, flexManagedTenantCostCents, flexSSOAdminCostCents, flexSSOAdminUnit, flexSSOModeratorCostCents, flexSSOModeratorUnit, isSSOBillingMonthlyActiveUsers); + return Objects.hash(id, name, tenantId, createdAt, templateId, monthlyCostUSD, yearlyCostUSD, monthlyStripePlanId, yearlyStripePlanId, maxMonthlyPageLoads, maxMonthlyAPICredits, maxMonthlySmallWidgetsCredits, maxMonthlyComments, maxConcurrentUsers, maxTenantUsers, maxSSOUsers, maxModerators, maxDomains, maxWhiteLabeledTenants, maxMonthlyEventLogRequests, maxCustomCollectionSize, hasWhiteLabeling, hasDebranding, hasLLMSpamDetection, forWhoText, featureTaglines, hasAuditing, hasFlexPricing, enableSAML, enableCanvasLTI, flexPageLoadCostCents, flexPageLoadUnit, flexCommentCostCents, flexCommentUnit, flexSSOUserCostCents, flexSSOUserUnit, flexAPICreditCostCents, flexAPICreditUnit, flexSmallWidgetsCreditCostCents, flexSmallWidgetsCreditUnit, flexModeratorCostCents, flexModeratorUnit, flexAdminCostCents, flexAdminUnit, flexDomainCostCents, flexDomainUnit, flexChatGPTCostCents, flexChatGPTUnit, flexLLMCostCents, flexLLMUnit, flexMinimumCostCents, flexManagedTenantCostCents, flexSSOAdminCostCents, flexSSOAdminUnit, flexSSOModeratorCostCents, flexSSOModeratorUnit, isSSOBillingMonthlyActiveUsers, hasAIAgents, maxAIAgents, aiAgentDailyBudgetCents, aiAgentMonthlyBudgetCents); } @Override @@ -1489,6 +1614,7 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" templateId: ").append(toIndentedString(templateId)).append("\n"); sb.append(" monthlyCostUSD: ").append(toIndentedString(monthlyCostUSD)).append("\n"); sb.append(" yearlyCostUSD: ").append(toIndentedString(yearlyCostUSD)).append("\n"); sb.append(" monthlyStripePlanId: ").append(toIndentedString(monthlyStripePlanId)).append("\n"); @@ -1541,6 +1667,10 @@ public String toString() { sb.append(" flexSSOModeratorCostCents: ").append(toIndentedString(flexSSOModeratorCostCents)).append("\n"); sb.append(" flexSSOModeratorUnit: ").append(toIndentedString(flexSSOModeratorUnit)).append("\n"); sb.append(" isSSOBillingMonthlyActiveUsers: ").append(toIndentedString(isSSOBillingMonthlyActiveUsers)).append("\n"); + sb.append(" hasAIAgents: ").append(toIndentedString(hasAIAgents)).append("\n"); + sb.append(" maxAIAgents: ").append(toIndentedString(maxAIAgents)).append("\n"); + sb.append(" aiAgentDailyBudgetCents: ").append(toIndentedString(aiAgentDailyBudgetCents)).append("\n"); + sb.append(" aiAgentMonthlyBudgetCents: ").append(toIndentedString(aiAgentMonthlyBudgetCents)).append("\n"); sb.append("}"); return sb.toString(); } @@ -1550,10 +1680,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -1562,7 +1689,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("_id", "name", "tenantId", "createdAt", "monthlyCostUSD", "yearlyCostUSD", "monthlyStripePlanId", "yearlyStripePlanId", "maxMonthlyPageLoads", "maxMonthlyAPICredits", "maxMonthlySmallWidgetsCredits", "maxMonthlyComments", "maxConcurrentUsers", "maxTenantUsers", "maxSSOUsers", "maxModerators", "maxDomains", "maxWhiteLabeledTenants", "maxMonthlyEventLogRequests", "maxCustomCollectionSize", "hasWhiteLabeling", "hasDebranding", "hasLLMSpamDetection", "forWhoText", "featureTaglines", "hasAuditing", "hasFlexPricing", "enableSAML", "enableCanvasLTI", "flexPageLoadCostCents", "flexPageLoadUnit", "flexCommentCostCents", "flexCommentUnit", "flexSSOUserCostCents", "flexSSOUserUnit", "flexAPICreditCostCents", "flexAPICreditUnit", "flexSmallWidgetsCreditCostCents", "flexSmallWidgetsCreditUnit", "flexModeratorCostCents", "flexModeratorUnit", "flexAdminCostCents", "flexAdminUnit", "flexDomainCostCents", "flexDomainUnit", "flexChatGPTCostCents", "flexChatGPTUnit", "flexLLMCostCents", "flexLLMUnit", "flexMinimumCostCents", "flexManagedTenantCostCents", "flexSSOAdminCostCents", "flexSSOAdminUnit", "flexSSOModeratorCostCents", "flexSSOModeratorUnit", "isSSOBillingMonthlyActiveUsers")); + openapiFields = new HashSet(Arrays.asList("_id", "name", "tenantId", "createdAt", "templateId", "monthlyCostUSD", "yearlyCostUSD", "monthlyStripePlanId", "yearlyStripePlanId", "maxMonthlyPageLoads", "maxMonthlyAPICredits", "maxMonthlySmallWidgetsCredits", "maxMonthlyComments", "maxConcurrentUsers", "maxTenantUsers", "maxSSOUsers", "maxModerators", "maxDomains", "maxWhiteLabeledTenants", "maxMonthlyEventLogRequests", "maxCustomCollectionSize", "hasWhiteLabeling", "hasDebranding", "hasLLMSpamDetection", "forWhoText", "featureTaglines", "hasAuditing", "hasFlexPricing", "enableSAML", "enableCanvasLTI", "flexPageLoadCostCents", "flexPageLoadUnit", "flexCommentCostCents", "flexCommentUnit", "flexSSOUserCostCents", "flexSSOUserUnit", "flexAPICreditCostCents", "flexAPICreditUnit", "flexSmallWidgetsCreditCostCents", "flexSmallWidgetsCreditUnit", "flexModeratorCostCents", "flexModeratorUnit", "flexAdminCostCents", "flexAdminUnit", "flexDomainCostCents", "flexDomainUnit", "flexChatGPTCostCents", "flexChatGPTUnit", "flexLLMCostCents", "flexLLMUnit", "flexMinimumCostCents", "flexManagedTenantCostCents", "flexSSOAdminCostCents", "flexSSOAdminUnit", "flexSSOModeratorCostCents", "flexSSOModeratorUnit", "isSSOBillingMonthlyActiveUsers", "hasAIAgents", "maxAIAgents", "aiAgentDailyBudgetCents", "aiAgentMonthlyBudgetCents")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("_id", "name", "tenantId", "createdAt", "monthlyCostUSD", "yearlyCostUSD", "monthlyStripePlanId", "yearlyStripePlanId", "maxMonthlyPageLoads", "maxMonthlyAPICredits", "maxMonthlySmallWidgetsCredits", "maxMonthlyComments", "maxConcurrentUsers", "maxTenantUsers", "maxSSOUsers", "maxModerators", "maxDomains", "maxWhiteLabeledTenants", "maxMonthlyEventLogRequests", "maxCustomCollectionSize", "hasWhiteLabeling", "hasDebranding", "hasLLMSpamDetection", "forWhoText", "featureTaglines", "hasAuditing", "hasFlexPricing")); @@ -1605,6 +1732,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("tenantId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tenantId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tenantId").toString())); } + if ((jsonObj.get("templateId") != null && !jsonObj.get("templateId").isJsonNull()) && !jsonObj.get("templateId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `templateId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("templateId").toString())); + } if ((jsonObj.get("monthlyStripePlanId") != null && !jsonObj.get("monthlyStripePlanId").isJsonNull()) && !jsonObj.get("monthlyStripePlanId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `monthlyStripePlanId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("monthlyStripePlanId").toString())); } diff --git a/client/src/main/java/com/fastcomments/model/UnBlockCommentPublic200Response.java b/client/src/main/java/com/fastcomments/model/UnBlockCommentPublic200Response.java deleted file mode 100644 index 598a0fdf..00000000 --- a/client/src/main/java/com/fastcomments/model/UnBlockCommentPublic200Response.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.UnblockSuccess; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class UnBlockCommentPublic200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UnBlockCommentPublic200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UnBlockCommentPublic200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UnBlockCommentPublic200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterUnblockSuccess = gson.getDelegateAdapter(this, TypeToken.get(UnblockSuccess.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UnBlockCommentPublic200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `UnblockSuccess` - if (value.getActualInstance() instanceof UnblockSuccess) { - JsonElement element = adapterUnblockSuccess.toJsonTree((UnblockSuccess)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, UnblockSuccess"); - } - - @Override - public UnBlockCommentPublic200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize UnblockSuccess - try { - // validate the JSON object to see if any exception is thrown - UnblockSuccess.validateJsonElement(jsonElement); - actualAdapter = adapterUnblockSuccess; - UnBlockCommentPublic200Response ret = new UnBlockCommentPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for UnblockSuccess failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'UnblockSuccess'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - UnBlockCommentPublic200Response ret = new UnBlockCommentPublic200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for UnBlockCommentPublic200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public UnBlockCommentPublic200Response() { - super("anyOf", Boolean.FALSE); - } - - public UnBlockCommentPublic200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("UnblockSuccess", UnblockSuccess.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UnBlockCommentPublic200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, UnblockSuccess - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof UnblockSuccess) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, UnblockSuccess"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, UnblockSuccess - * - * @return The actual instance (APIError, UnblockSuccess) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `UnblockSuccess`. If the actual instance is not `UnblockSuccess`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `UnblockSuccess` - * @throws ClassCastException if the instance is not `UnblockSuccess` - */ - public UnblockSuccess getUnblockSuccess() throws ClassCastException { - return (UnblockSuccess)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UnBlockCommentPublic200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with UnblockSuccess - try { - UnblockSuccess.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for UnblockSuccess failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for UnBlockCommentPublic200Response with anyOf schemas: APIError, UnblockSuccess. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of UnBlockCommentPublic200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of UnBlockCommentPublic200Response - * @throws IOException if the JSON string is invalid with respect to UnBlockCommentPublic200Response - */ - public static UnBlockCommentPublic200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UnBlockCommentPublic200Response.class); - } - - /** - * Convert an instance of UnBlockCommentPublic200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/UnBlockFromCommentParams.java b/client/src/main/java/com/fastcomments/model/UnBlockFromCommentParams.java index 0bff1a53..0d8eeea8 100644 --- a/client/src/main/java/com/fastcomments/model/UnBlockFromCommentParams.java +++ b/client/src/main/java/com/fastcomments/model/UnBlockFromCommentParams.java @@ -50,7 +50,7 @@ /** * UnBlockFromCommentParams */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UnBlockFromCommentParams { public static final String SERIALIZED_NAME_COMMENT_IDS_TO_CHECK = "commentIdsToCheck"; @SerializedName(SERIALIZED_NAME_COMMENT_IDS_TO_CHECK) @@ -119,10 +119,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UnblockSuccess.java b/client/src/main/java/com/fastcomments/model/UnblockSuccess.java index 833497bb..9f752635 100644 --- a/client/src/main/java/com/fastcomments/model/UnblockSuccess.java +++ b/client/src/main/java/com/fastcomments/model/UnblockSuccess.java @@ -51,7 +51,7 @@ /** * UnblockSuccess */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UnblockSuccess { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -146,10 +146,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdatableCommentParams.java b/client/src/main/java/com/fastcomments/model/UpdatableCommentParams.java index 92fe9afe..2d4920cb 100644 --- a/client/src/main/java/com/fastcomments/model/UpdatableCommentParams.java +++ b/client/src/main/java/com/fastcomments/model/UpdatableCommentParams.java @@ -52,7 +52,7 @@ /** * UpdatableCommentParams */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdatableCommentParams { public static final String SERIALIZED_NAME_URL_ID = "urlId"; @SerializedName(SERIALIZED_NAME_URL_ID) @@ -1117,10 +1117,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateAPIPageData.java b/client/src/main/java/com/fastcomments/model/UpdateAPIPageData.java index 02d1c73c..ff4f6461 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateAPIPageData.java +++ b/client/src/main/java/com/fastcomments/model/UpdateAPIPageData.java @@ -50,7 +50,7 @@ /** * UpdateAPIPageData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateAPIPageData { public static final String SERIALIZED_NAME_IS_CLOSED = "isClosed"; @SerializedName(SERIALIZED_NAME_IS_CLOSED) @@ -269,10 +269,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateAPISSOUserData.java b/client/src/main/java/com/fastcomments/model/UpdateAPISSOUserData.java index b02c8e6c..0520ec1f 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateAPISSOUserData.java +++ b/client/src/main/java/com/fastcomments/model/UpdateAPISSOUserData.java @@ -50,7 +50,7 @@ /** * UpdateAPISSOUserData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateAPISSOUserData { public static final String SERIALIZED_NAME_GROUP_IDS = "groupIds"; @SerializedName(SERIALIZED_NAME_GROUP_IDS) @@ -659,10 +659,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateAPIUserSubscriptionData.java b/client/src/main/java/com/fastcomments/model/UpdateAPIUserSubscriptionData.java index 5fb3a30b..22f5b9e6 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateAPIUserSubscriptionData.java +++ b/client/src/main/java/com/fastcomments/model/UpdateAPIUserSubscriptionData.java @@ -48,7 +48,7 @@ /** * UpdateAPIUserSubscriptionData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateAPIUserSubscriptionData { public static final String SERIALIZED_NAME_NOTIFICATION_FREQUENCY = "notificationFrequency"; @SerializedName(SERIALIZED_NAME_NOTIFICATION_FREQUENCY) @@ -155,10 +155,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateDomainConfigParams.java b/client/src/main/java/com/fastcomments/model/UpdateDomainConfigParams.java index 26c407a3..4e19eafb 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateDomainConfigParams.java +++ b/client/src/main/java/com/fastcomments/model/UpdateDomainConfigParams.java @@ -50,7 +50,7 @@ /** * UpdateDomainConfigParams */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateDomainConfigParams { public static final String SERIALIZED_NAME_DOMAIN = "domain"; @SerializedName(SERIALIZED_NAME_DOMAIN) @@ -275,10 +275,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateEmailTemplateBody.java b/client/src/main/java/com/fastcomments/model/UpdateEmailTemplateBody.java index 2db290d9..1e4020df 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateEmailTemplateBody.java +++ b/client/src/main/java/com/fastcomments/model/UpdateEmailTemplateBody.java @@ -50,7 +50,7 @@ /** * UpdateEmailTemplateBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateEmailTemplateBody { public static final String SERIALIZED_NAME_EMAIL_TEMPLATE_ID = "emailTemplateId"; @SerializedName(SERIALIZED_NAME_EMAIL_TEMPLATE_ID) @@ -257,10 +257,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateFeedPostParams.java b/client/src/main/java/com/fastcomments/model/UpdateFeedPostParams.java index 3ba7828b..c8bf5ecc 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateFeedPostParams.java +++ b/client/src/main/java/com/fastcomments/model/UpdateFeedPostParams.java @@ -54,7 +54,7 @@ /** * UpdateFeedPostParams */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateFeedPostParams { public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -277,10 +277,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateHashTagBody.java b/client/src/main/java/com/fastcomments/model/UpdateHashTagBody.java index 74c23b83..a48f9e10 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateHashTagBody.java +++ b/client/src/main/java/com/fastcomments/model/UpdateHashTagBody.java @@ -48,7 +48,7 @@ /** * UpdateHashTagBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateHashTagBody { public static final String SERIALIZED_NAME_TENANT_ID = "tenantId"; @SerializedName(SERIALIZED_NAME_TENANT_ID) @@ -161,10 +161,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateHashTagResponse.java b/client/src/main/java/com/fastcomments/model/UpdateHashTagResponse.java index 48143f0b..2ef47d67 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateHashTagResponse.java +++ b/client/src/main/java/com/fastcomments/model/UpdateHashTagResponse.java @@ -50,7 +50,7 @@ /** * UpdateHashTagResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateHashTagResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -137,10 +137,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateModeratorBody.java b/client/src/main/java/com/fastcomments/model/UpdateModeratorBody.java index 2486f44f..6db8831d 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateModeratorBody.java +++ b/client/src/main/java/com/fastcomments/model/UpdateModeratorBody.java @@ -50,7 +50,7 @@ /** * UpdateModeratorBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateModeratorBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -243,10 +243,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateNotificationBody.java b/client/src/main/java/com/fastcomments/model/UpdateNotificationBody.java index de1b1c55..9f0d0225 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateNotificationBody.java +++ b/client/src/main/java/com/fastcomments/model/UpdateNotificationBody.java @@ -48,7 +48,7 @@ /** * UpdateNotificationBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateNotificationBody { public static final String SERIALIZED_NAME_VIEWED = "viewed"; @SerializedName(SERIALIZED_NAME_VIEWED) @@ -181,10 +181,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateQuestionConfigBody.java b/client/src/main/java/com/fastcomments/model/UpdateQuestionConfigBody.java index 8f0700f7..7b8248ce 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateQuestionConfigBody.java +++ b/client/src/main/java/com/fastcomments/model/UpdateQuestionConfigBody.java @@ -51,7 +51,7 @@ /** * UpdateQuestionConfigBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateQuestionConfigBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -512,10 +512,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateQuestionResultBody.java b/client/src/main/java/com/fastcomments/model/UpdateQuestionResultBody.java index 41738761..a127eaf0 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateQuestionResultBody.java +++ b/client/src/main/java/com/fastcomments/model/UpdateQuestionResultBody.java @@ -51,7 +51,7 @@ /** * UpdateQuestionResultBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateQuestionResultBody { public static final String SERIALIZED_NAME_URL_ID = "urlId"; @SerializedName(SERIALIZED_NAME_URL_ID) @@ -322,10 +322,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateSubscriptionAPIResponse.java b/client/src/main/java/com/fastcomments/model/UpdateSubscriptionAPIResponse.java index c62ebe65..32846051 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateSubscriptionAPIResponse.java +++ b/client/src/main/java/com/fastcomments/model/UpdateSubscriptionAPIResponse.java @@ -49,7 +49,7 @@ /** * UpdateSubscriptionAPIResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateSubscriptionAPIResponse { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -234,10 +234,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateTenantBody.java b/client/src/main/java/com/fastcomments/model/UpdateTenantBody.java index da2225d9..70a58714 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateTenantBody.java +++ b/client/src/main/java/com/fastcomments/model/UpdateTenantBody.java @@ -54,7 +54,7 @@ /** * UpdateTenantBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateTenantBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -729,10 +729,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateTenantPackageBody.java b/client/src/main/java/com/fastcomments/model/UpdateTenantPackageBody.java index a888138e..18c4fd1e 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateTenantPackageBody.java +++ b/client/src/main/java/com/fastcomments/model/UpdateTenantPackageBody.java @@ -50,7 +50,7 @@ /** * UpdateTenantPackageBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateTenantPackageBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -925,10 +925,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateTenantUserBody.java b/client/src/main/java/com/fastcomments/model/UpdateTenantUserBody.java index 44f64df5..3b94f3d1 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateTenantUserBody.java +++ b/client/src/main/java/com/fastcomments/model/UpdateTenantUserBody.java @@ -50,7 +50,7 @@ /** * UpdateTenantUserBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateTenantUserBody { public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) @@ -717,10 +717,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateUserBadgeParams.java b/client/src/main/java/com/fastcomments/model/UpdateUserBadgeParams.java index b5f3fab0..acaa2654 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateUserBadgeParams.java +++ b/client/src/main/java/com/fastcomments/model/UpdateUserBadgeParams.java @@ -48,7 +48,7 @@ /** * UpdateUserBadgeParams */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UpdateUserBadgeParams { public static final String SERIALIZED_NAME_DISPLAYED_ON_COMMENTS = "displayedOnComments"; @SerializedName(SERIALIZED_NAME_DISPLAYED_ON_COMMENTS) @@ -109,10 +109,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UpdateUserNotificationStatus200Response.java b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponse.java similarity index 68% rename from client/src/main/java/com/fastcomments/model/UpdateUserNotificationStatus200Response.java rename to client/src/main/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponse.java index 07ea2b68..2508823a 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateUserNotificationStatus200Response.java +++ b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponse.java @@ -14,9 +14,7 @@ package com.fastcomments.model; import java.util.Objects; -import com.fastcomments.model.APIError; import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; import com.fastcomments.model.IgnoredResponse; import com.fastcomments.model.UserNotificationWriteResponse; import com.google.gson.TypeAdapter; @@ -62,25 +60,24 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class UpdateUserNotificationStatus200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UpdateUserNotificationStatus200Response.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class UpdateUserNotificationCommentSubscriptionStatusResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UpdateUserNotificationCommentSubscriptionStatusResponse.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateUserNotificationStatus200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateUserNotificationStatus200Response' and its subtypes + if (!UpdateUserNotificationCommentSubscriptionStatusResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateUserNotificationCommentSubscriptionStatusResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); final TypeAdapter adapterUserNotificationWriteResponse = gson.getDelegateAdapter(this, TypeToken.get(UserNotificationWriteResponse.class)); final TypeAdapter adapterIgnoredResponse = gson.getDelegateAdapter(this, TypeToken.get(IgnoredResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, UpdateUserNotificationStatus200Response value) throws IOException { + public void write(JsonWriter out, UpdateUserNotificationCommentSubscriptionStatusResponse value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; @@ -98,17 +95,11 @@ public void write(JsonWriter out, UpdateUserNotificationStatus200Response value) elementAdapter.write(out, element); return; } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, IgnoredResponse, UserNotificationWriteResponse"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: IgnoredResponse, UserNotificationWriteResponse"); } @Override - public UpdateUserNotificationStatus200Response read(JsonReader in) throws IOException { + public UpdateUserNotificationCommentSubscriptionStatusResponse read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); @@ -120,7 +111,7 @@ public UpdateUserNotificationStatus200Response read(JsonReader in) throws IOExce // validate the JSON object to see if any exception is thrown UserNotificationWriteResponse.validateJsonElement(jsonElement); actualAdapter = adapterUserNotificationWriteResponse; - UpdateUserNotificationStatus200Response ret = new UpdateUserNotificationStatus200Response(); + UpdateUserNotificationCommentSubscriptionStatusResponse ret = new UpdateUserNotificationCommentSubscriptionStatusResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { @@ -133,7 +124,7 @@ public UpdateUserNotificationStatus200Response read(JsonReader in) throws IOExce // validate the JSON object to see if any exception is thrown IgnoredResponse.validateJsonElement(jsonElement); actualAdapter = adapterIgnoredResponse; - UpdateUserNotificationStatus200Response ret = new UpdateUserNotificationStatus200Response(); + UpdateUserNotificationCommentSubscriptionStatusResponse ret = new UpdateUserNotificationCommentSubscriptionStatusResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { @@ -141,21 +132,8 @@ public UpdateUserNotificationStatus200Response read(JsonReader in) throws IOExce errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for IgnoredResponse failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'IgnoredResponse'", e); } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - UpdateUserNotificationStatus200Response ret = new UpdateUserNotificationStatus200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for UpdateUserNotificationStatus200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for UpdateUserNotificationCommentSubscriptionStatusResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -164,11 +142,11 @@ public UpdateUserNotificationStatus200Response read(JsonReader in) throws IOExce // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public UpdateUserNotificationStatus200Response() { + public UpdateUserNotificationCommentSubscriptionStatusResponse() { super("anyOf", Boolean.FALSE); } - public UpdateUserNotificationStatus200Response(Object o) { + public UpdateUserNotificationCommentSubscriptionStatusResponse(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } @@ -176,18 +154,17 @@ public UpdateUserNotificationStatus200Response(Object o) { static { schemas.put("UserNotificationWriteResponse", UserNotificationWriteResponse.class); schemas.put("IgnoredResponse", IgnoredResponse.class); - schemas.put("APIError", APIError.class); } @Override public Map> getSchemas() { - return UpdateUserNotificationStatus200Response.schemas; + return UpdateUserNotificationCommentSubscriptionStatusResponse.schemas; } /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * APIError, IgnoredResponse, UserNotificationWriteResponse + * IgnoredResponse, UserNotificationWriteResponse * * It could be an instance of the 'anyOf' schemas. */ @@ -203,19 +180,14 @@ public void setActualInstance(Object instance) { return; } - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, IgnoredResponse, UserNotificationWriteResponse"); + throw new RuntimeException("Invalid instance type. Must be IgnoredResponse, UserNotificationWriteResponse"); } /** * Get the actual instance, which can be the following: - * APIError, IgnoredResponse, UserNotificationWriteResponse + * IgnoredResponse, UserNotificationWriteResponse * - * @return The actual instance (APIError, IgnoredResponse, UserNotificationWriteResponse) + * @return The actual instance (IgnoredResponse, UserNotificationWriteResponse) */ @SuppressWarnings("unchecked") @Override @@ -245,22 +217,11 @@ public IgnoredResponse getIgnoredResponse() throws ClassCastException { return (IgnoredResponse)super.getActualInstance(); } - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateUserNotificationStatus200Response + * @throws IOException if the JSON Element is invalid with respect to UpdateUserNotificationCommentSubscriptionStatusResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one @@ -281,30 +242,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for IgnoredResponse failed with `%s`.", e.getMessage())); // continue to the next one } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for UpdateUserNotificationStatus200Response with anyOf schemas: APIError, IgnoredResponse, UserNotificationWriteResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for UpdateUserNotificationCommentSubscriptionStatusResponse with anyOf schemas: IgnoredResponse, UserNotificationWriteResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of UpdateUserNotificationStatus200Response given an JSON string + * Create an instance of UpdateUserNotificationCommentSubscriptionStatusResponse given an JSON string * * @param jsonString JSON string - * @return An instance of UpdateUserNotificationStatus200Response - * @throws IOException if the JSON string is invalid with respect to UpdateUserNotificationStatus200Response + * @return An instance of UpdateUserNotificationCommentSubscriptionStatusResponse + * @throws IOException if the JSON string is invalid with respect to UpdateUserNotificationCommentSubscriptionStatusResponse */ - public static UpdateUserNotificationStatus200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UpdateUserNotificationStatus200Response.class); + public static UpdateUserNotificationCommentSubscriptionStatusResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateUserNotificationCommentSubscriptionStatusResponse.class); } /** - * Convert an instance of UpdateUserNotificationStatus200Response to an JSON string + * Convert an instance of UpdateUserNotificationCommentSubscriptionStatusResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/UpdateUserBadge200Response.java b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponse.java similarity index 53% rename from client/src/main/java/com/fastcomments/model/UpdateUserBadge200Response.java rename to client/src/main/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponse.java index 2bcce0ad..5de6ac1f 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateUserBadge200Response.java +++ b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponse.java @@ -14,10 +14,9 @@ package com.fastcomments.model; import java.util.Objects; -import com.fastcomments.model.APIEmptySuccessResponse; -import com.fastcomments.model.APIError; import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.IgnoredResponse; +import com.fastcomments.model.UserNotificationWriteResponse; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -61,80 +60,80 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class UpdateUserBadge200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UpdateUserBadge200Response.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class UpdateUserNotificationPageSubscriptionStatusResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UpdateUserNotificationPageSubscriptionStatusResponse.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateUserBadge200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateUserBadge200Response' and its subtypes + if (!UpdateUserNotificationPageSubscriptionStatusResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateUserNotificationPageSubscriptionStatusResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAPIEmptySuccessResponse = gson.getDelegateAdapter(this, TypeToken.get(APIEmptySuccessResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + final TypeAdapter adapterUserNotificationWriteResponse = gson.getDelegateAdapter(this, TypeToken.get(UserNotificationWriteResponse.class)); + final TypeAdapter adapterIgnoredResponse = gson.getDelegateAdapter(this, TypeToken.get(IgnoredResponse.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, UpdateUserBadge200Response value) throws IOException { + public void write(JsonWriter out, UpdateUserNotificationPageSubscriptionStatusResponse value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; } - // check if the actual instance is of the type `APIEmptySuccessResponse` - if (value.getActualInstance() instanceof APIEmptySuccessResponse) { - JsonElement element = adapterAPIEmptySuccessResponse.toJsonTree((APIEmptySuccessResponse)value.getActualInstance()); + // check if the actual instance is of the type `UserNotificationWriteResponse` + if (value.getActualInstance() instanceof UserNotificationWriteResponse) { + JsonElement element = adapterUserNotificationWriteResponse.toJsonTree((UserNotificationWriteResponse)value.getActualInstance()); elementAdapter.write(out, element); return; } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); + // check if the actual instance is of the type `IgnoredResponse` + if (value.getActualInstance() instanceof IgnoredResponse) { + JsonElement element = adapterIgnoredResponse.toJsonTree((IgnoredResponse)value.getActualInstance()); elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIEmptySuccessResponse, APIError"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: IgnoredResponse, UserNotificationWriteResponse"); } @Override - public UpdateUserBadge200Response read(JsonReader in) throws IOException { + public UpdateUserNotificationPageSubscriptionStatusResponse read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); ArrayList errorMessages = new ArrayList<>(); TypeAdapter actualAdapter = elementAdapter; - // deserialize APIEmptySuccessResponse + // deserialize UserNotificationWriteResponse try { // validate the JSON object to see if any exception is thrown - APIEmptySuccessResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAPIEmptySuccessResponse; - UpdateUserBadge200Response ret = new UpdateUserBadge200Response(); + UserNotificationWriteResponse.validateJsonElement(jsonElement); + actualAdapter = adapterUserNotificationWriteResponse; + UpdateUserNotificationPageSubscriptionStatusResponse ret = new UpdateUserNotificationPageSubscriptionStatusResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIEmptySuccessResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIEmptySuccessResponse'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for UserNotificationWriteResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'UserNotificationWriteResponse'", e); } - // deserialize APIError + // deserialize IgnoredResponse try { // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - UpdateUserBadge200Response ret = new UpdateUserBadge200Response(); + IgnoredResponse.validateJsonElement(jsonElement); + actualAdapter = adapterIgnoredResponse; + UpdateUserNotificationPageSubscriptionStatusResponse ret = new UpdateUserNotificationPageSubscriptionStatusResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for IgnoredResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'IgnoredResponse'", e); } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for UpdateUserBadge200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for UpdateUserNotificationPageSubscriptionStatusResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -143,52 +142,52 @@ public UpdateUserBadge200Response read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public UpdateUserBadge200Response() { + public UpdateUserNotificationPageSubscriptionStatusResponse() { super("anyOf", Boolean.FALSE); } - public UpdateUserBadge200Response(Object o) { + public UpdateUserNotificationPageSubscriptionStatusResponse(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("APIEmptySuccessResponse", APIEmptySuccessResponse.class); - schemas.put("APIError", APIError.class); + schemas.put("UserNotificationWriteResponse", UserNotificationWriteResponse.class); + schemas.put("IgnoredResponse", IgnoredResponse.class); } @Override public Map> getSchemas() { - return UpdateUserBadge200Response.schemas; + return UpdateUserNotificationPageSubscriptionStatusResponse.schemas; } /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * APIEmptySuccessResponse, APIError + * IgnoredResponse, UserNotificationWriteResponse * * It could be an instance of the 'anyOf' schemas. */ @Override public void setActualInstance(Object instance) { - if (instance instanceof APIEmptySuccessResponse) { + if (instance instanceof UserNotificationWriteResponse) { super.setActualInstance(instance); return; } - if (instance instanceof APIError) { + if (instance instanceof IgnoredResponse) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be APIEmptySuccessResponse, APIError"); + throw new RuntimeException("Invalid instance type. Must be IgnoredResponse, UserNotificationWriteResponse"); } /** * Get the actual instance, which can be the following: - * APIEmptySuccessResponse, APIError + * IgnoredResponse, UserNotificationWriteResponse * - * @return The actual instance (APIEmptySuccessResponse, APIError) + * @return The actual instance (IgnoredResponse, UserNotificationWriteResponse) */ @SuppressWarnings("unchecked") @Override @@ -197,68 +196,68 @@ public Object getActualInstance() { } /** - * Get the actual instance of `APIEmptySuccessResponse`. If the actual instance is not `APIEmptySuccessResponse`, + * Get the actual instance of `UserNotificationWriteResponse`. If the actual instance is not `UserNotificationWriteResponse`, * the ClassCastException will be thrown. * - * @return The actual instance of `APIEmptySuccessResponse` - * @throws ClassCastException if the instance is not `APIEmptySuccessResponse` + * @return The actual instance of `UserNotificationWriteResponse` + * @throws ClassCastException if the instance is not `UserNotificationWriteResponse` */ - public APIEmptySuccessResponse getAPIEmptySuccessResponse() throws ClassCastException { - return (APIEmptySuccessResponse)super.getActualInstance(); + public UserNotificationWriteResponse getUserNotificationWriteResponse() throws ClassCastException { + return (UserNotificationWriteResponse)super.getActualInstance(); } /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, + * Get the actual instance of `IgnoredResponse`. If the actual instance is not `IgnoredResponse`, * the ClassCastException will be thrown. * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` + * @return The actual instance of `IgnoredResponse` + * @throws ClassCastException if the instance is not `IgnoredResponse` */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); + public IgnoredResponse getIgnoredResponse() throws ClassCastException { + return (IgnoredResponse)super.getActualInstance(); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateUserBadge200Response + * @throws IOException if the JSON Element is invalid with respect to UpdateUserNotificationPageSubscriptionStatusResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one ArrayList errorMessages = new ArrayList<>(); - // validate the json string with APIEmptySuccessResponse + // validate the json string with UserNotificationWriteResponse try { - APIEmptySuccessResponse.validateJsonElement(jsonElement); + UserNotificationWriteResponse.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIEmptySuccessResponse failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for UserNotificationWriteResponse failed with `%s`.", e.getMessage())); // continue to the next one } - // validate the json string with APIError + // validate the json string with IgnoredResponse try { - APIError.validateJsonElement(jsonElement); + IgnoredResponse.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for IgnoredResponse failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for UpdateUserBadge200Response with anyOf schemas: APIEmptySuccessResponse, APIError. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for UpdateUserNotificationPageSubscriptionStatusResponse with anyOf schemas: IgnoredResponse, UserNotificationWriteResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of UpdateUserBadge200Response given an JSON string + * Create an instance of UpdateUserNotificationPageSubscriptionStatusResponse given an JSON string * * @param jsonString JSON string - * @return An instance of UpdateUserBadge200Response - * @throws IOException if the JSON string is invalid with respect to UpdateUserBadge200Response + * @return An instance of UpdateUserNotificationPageSubscriptionStatusResponse + * @throws IOException if the JSON string is invalid with respect to UpdateUserNotificationPageSubscriptionStatusResponse */ - public static UpdateUserBadge200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UpdateUserBadge200Response.class); + public static UpdateUserNotificationPageSubscriptionStatusResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateUserNotificationPageSubscriptionStatusResponse.class); } /** - * Convert an instance of UpdateUserBadge200Response to an JSON string + * Convert an instance of UpdateUserNotificationPageSubscriptionStatusResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/CheckedCommentsForBlocked200Response.java b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationStatusResponse.java similarity index 55% rename from client/src/main/java/com/fastcomments/model/CheckedCommentsForBlocked200Response.java rename to client/src/main/java/com/fastcomments/model/UpdateUserNotificationStatusResponse.java index d07de557..b65cc32d 100644 --- a/client/src/main/java/com/fastcomments/model/CheckedCommentsForBlocked200Response.java +++ b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationStatusResponse.java @@ -14,10 +14,9 @@ package com.fastcomments.model; import java.util.Objects; -import com.fastcomments.model.APIError; import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CheckBlockedCommentsResponse; -import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.IgnoredResponse; +import com.fastcomments.model.UserNotificationWriteResponse; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -25,8 +24,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; @@ -63,80 +60,80 @@ import com.fastcomments.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class CheckedCommentsForBlocked200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CheckedCommentsForBlocked200Response.class.getName()); +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class UpdateUserNotificationStatusResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UpdateUserNotificationStatusResponse.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CheckedCommentsForBlocked200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CheckedCommentsForBlocked200Response' and its subtypes + if (!UpdateUserNotificationStatusResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateUserNotificationStatusResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCheckBlockedCommentsResponse = gson.getDelegateAdapter(this, TypeToken.get(CheckBlockedCommentsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + final TypeAdapter adapterUserNotificationWriteResponse = gson.getDelegateAdapter(this, TypeToken.get(UserNotificationWriteResponse.class)); + final TypeAdapter adapterIgnoredResponse = gson.getDelegateAdapter(this, TypeToken.get(IgnoredResponse.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CheckedCommentsForBlocked200Response value) throws IOException { + public void write(JsonWriter out, UpdateUserNotificationStatusResponse value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; } - // check if the actual instance is of the type `CheckBlockedCommentsResponse` - if (value.getActualInstance() instanceof CheckBlockedCommentsResponse) { - JsonElement element = adapterCheckBlockedCommentsResponse.toJsonTree((CheckBlockedCommentsResponse)value.getActualInstance()); + // check if the actual instance is of the type `UserNotificationWriteResponse` + if (value.getActualInstance() instanceof UserNotificationWriteResponse) { + JsonElement element = adapterUserNotificationWriteResponse.toJsonTree((UserNotificationWriteResponse)value.getActualInstance()); elementAdapter.write(out, element); return; } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); + // check if the actual instance is of the type `IgnoredResponse` + if (value.getActualInstance() instanceof IgnoredResponse) { + JsonElement element = adapterIgnoredResponse.toJsonTree((IgnoredResponse)value.getActualInstance()); elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, CheckBlockedCommentsResponse"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: IgnoredResponse, UserNotificationWriteResponse"); } @Override - public CheckedCommentsForBlocked200Response read(JsonReader in) throws IOException { + public UpdateUserNotificationStatusResponse read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); ArrayList errorMessages = new ArrayList<>(); TypeAdapter actualAdapter = elementAdapter; - // deserialize CheckBlockedCommentsResponse + // deserialize UserNotificationWriteResponse try { // validate the JSON object to see if any exception is thrown - CheckBlockedCommentsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterCheckBlockedCommentsResponse; - CheckedCommentsForBlocked200Response ret = new CheckedCommentsForBlocked200Response(); + UserNotificationWriteResponse.validateJsonElement(jsonElement); + actualAdapter = adapterUserNotificationWriteResponse; + UpdateUserNotificationStatusResponse ret = new UpdateUserNotificationStatusResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CheckBlockedCommentsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CheckBlockedCommentsResponse'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for UserNotificationWriteResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'UserNotificationWriteResponse'", e); } - // deserialize APIError + // deserialize IgnoredResponse try { // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CheckedCommentsForBlocked200Response ret = new CheckedCommentsForBlocked200Response(); + IgnoredResponse.validateJsonElement(jsonElement); + actualAdapter = adapterIgnoredResponse; + UpdateUserNotificationStatusResponse ret = new UpdateUserNotificationStatusResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for IgnoredResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'IgnoredResponse'", e); } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for CheckedCommentsForBlocked200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for UpdateUserNotificationStatusResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -145,52 +142,52 @@ public CheckedCommentsForBlocked200Response read(JsonReader in) throws IOExcepti // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public CheckedCommentsForBlocked200Response() { + public UpdateUserNotificationStatusResponse() { super("anyOf", Boolean.FALSE); } - public CheckedCommentsForBlocked200Response(Object o) { + public UpdateUserNotificationStatusResponse(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("CheckBlockedCommentsResponse", CheckBlockedCommentsResponse.class); - schemas.put("APIError", APIError.class); + schemas.put("UserNotificationWriteResponse", UserNotificationWriteResponse.class); + schemas.put("IgnoredResponse", IgnoredResponse.class); } @Override public Map> getSchemas() { - return CheckedCommentsForBlocked200Response.schemas; + return UpdateUserNotificationStatusResponse.schemas; } /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * APIError, CheckBlockedCommentsResponse + * IgnoredResponse, UserNotificationWriteResponse * * It could be an instance of the 'anyOf' schemas. */ @Override public void setActualInstance(Object instance) { - if (instance instanceof CheckBlockedCommentsResponse) { + if (instance instanceof UserNotificationWriteResponse) { super.setActualInstance(instance); return; } - if (instance instanceof APIError) { + if (instance instanceof IgnoredResponse) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be APIError, CheckBlockedCommentsResponse"); + throw new RuntimeException("Invalid instance type. Must be IgnoredResponse, UserNotificationWriteResponse"); } /** * Get the actual instance, which can be the following: - * APIError, CheckBlockedCommentsResponse + * IgnoredResponse, UserNotificationWriteResponse * - * @return The actual instance (APIError, CheckBlockedCommentsResponse) + * @return The actual instance (IgnoredResponse, UserNotificationWriteResponse) */ @SuppressWarnings("unchecked") @Override @@ -199,68 +196,68 @@ public Object getActualInstance() { } /** - * Get the actual instance of `CheckBlockedCommentsResponse`. If the actual instance is not `CheckBlockedCommentsResponse`, + * Get the actual instance of `UserNotificationWriteResponse`. If the actual instance is not `UserNotificationWriteResponse`, * the ClassCastException will be thrown. * - * @return The actual instance of `CheckBlockedCommentsResponse` - * @throws ClassCastException if the instance is not `CheckBlockedCommentsResponse` + * @return The actual instance of `UserNotificationWriteResponse` + * @throws ClassCastException if the instance is not `UserNotificationWriteResponse` */ - public CheckBlockedCommentsResponse getCheckBlockedCommentsResponse() throws ClassCastException { - return (CheckBlockedCommentsResponse)super.getActualInstance(); + public UserNotificationWriteResponse getUserNotificationWriteResponse() throws ClassCastException { + return (UserNotificationWriteResponse)super.getActualInstance(); } /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, + * Get the actual instance of `IgnoredResponse`. If the actual instance is not `IgnoredResponse`, * the ClassCastException will be thrown. * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` + * @return The actual instance of `IgnoredResponse` + * @throws ClassCastException if the instance is not `IgnoredResponse` */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); + public IgnoredResponse getIgnoredResponse() throws ClassCastException { + return (IgnoredResponse)super.getActualInstance(); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CheckedCommentsForBlocked200Response + * @throws IOException if the JSON Element is invalid with respect to UpdateUserNotificationStatusResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CheckBlockedCommentsResponse + // validate the json string with UserNotificationWriteResponse try { - CheckBlockedCommentsResponse.validateJsonElement(jsonElement); + UserNotificationWriteResponse.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CheckBlockedCommentsResponse failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for UserNotificationWriteResponse failed with `%s`.", e.getMessage())); // continue to the next one } - // validate the json string with APIError + // validate the json string with IgnoredResponse try { - APIError.validateJsonElement(jsonElement); + IgnoredResponse.validateJsonElement(jsonElement); return; } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for IgnoredResponse failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for CheckedCommentsForBlocked200Response with anyOf schemas: APIError, CheckBlockedCommentsResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for UpdateUserNotificationStatusResponse with anyOf schemas: IgnoredResponse, UserNotificationWriteResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of CheckedCommentsForBlocked200Response given an JSON string + * Create an instance of UpdateUserNotificationStatusResponse given an JSON string * * @param jsonString JSON string - * @return An instance of CheckedCommentsForBlocked200Response - * @throws IOException if the JSON string is invalid with respect to CheckedCommentsForBlocked200Response + * @return An instance of UpdateUserNotificationStatusResponse + * @throws IOException if the JSON string is invalid with respect to UpdateUserNotificationStatusResponse */ - public static CheckedCommentsForBlocked200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CheckedCommentsForBlocked200Response.class); + public static UpdateUserNotificationStatusResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateUserNotificationStatusResponse.class); } /** - * Convert an instance of CheckedCommentsForBlocked200Response to an JSON string + * Convert an instance of UpdateUserNotificationStatusResponse to an JSON string * * @return JSON string */ diff --git a/client/src/main/java/com/fastcomments/model/UploadImageResponse.java b/client/src/main/java/com/fastcomments/model/UploadImageResponse.java index 110fb7fb..0960d34a 100644 --- a/client/src/main/java/com/fastcomments/model/UploadImageResponse.java +++ b/client/src/main/java/com/fastcomments/model/UploadImageResponse.java @@ -52,7 +52,7 @@ /** * UploadImageResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UploadImageResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -225,10 +225,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/User.java b/client/src/main/java/com/fastcomments/model/User.java index 3f369bb5..9d1e8f9c 100644 --- a/client/src/main/java/com/fastcomments/model/User.java +++ b/client/src/main/java/com/fastcomments/model/User.java @@ -15,6 +15,7 @@ import java.util.Objects; import com.fastcomments.model.DigestEmailFrequency; +import com.fastcomments.model.ImportedAgentApprovalNotificationFrequency; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -52,7 +53,7 @@ /** * User */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class User { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -249,6 +250,11 @@ public class User { @javax.annotation.Nullable private Double adminNotificationFrequency; + public static final String SERIALIZED_NAME_AGENT_APPROVAL_NOTIFICATION_FREQUENCY = "agentApprovalNotificationFrequency"; + @SerializedName(SERIALIZED_NAME_AGENT_APPROVAL_NOTIFICATION_FREQUENCY) + @javax.annotation.Nullable + private ImportedAgentApprovalNotificationFrequency agentApprovalNotificationFrequency; + public static final String SERIALIZED_NAME_LAST_TENANT_NOTIFICATION_SENT_DATE = "lastTenantNotificationSentDate"; @SerializedName(SERIALIZED_NAME_LAST_TENANT_NOTIFICATION_SENT_DATE) @javax.annotation.Nullable @@ -1101,6 +1107,25 @@ public void setAdminNotificationFrequency(@javax.annotation.Nullable Double admi } + public User agentApprovalNotificationFrequency(@javax.annotation.Nullable ImportedAgentApprovalNotificationFrequency agentApprovalNotificationFrequency) { + this.agentApprovalNotificationFrequency = agentApprovalNotificationFrequency; + return this; + } + + /** + * Get agentApprovalNotificationFrequency + * @return agentApprovalNotificationFrequency + */ + @javax.annotation.Nullable + public ImportedAgentApprovalNotificationFrequency getAgentApprovalNotificationFrequency() { + return agentApprovalNotificationFrequency; + } + + public void setAgentApprovalNotificationFrequency(@javax.annotation.Nullable ImportedAgentApprovalNotificationFrequency agentApprovalNotificationFrequency) { + this.agentApprovalNotificationFrequency = agentApprovalNotificationFrequency; + } + + public User lastTenantNotificationSentDate(@javax.annotation.Nullable OffsetDateTime lastTenantNotificationSentDate) { this.lastTenantNotificationSentDate = lastTenantNotificationSentDate; return this; @@ -1538,6 +1563,7 @@ public boolean equals(Object o) { Objects.equals(this.digestEmailFrequency, user.digestEmailFrequency) && Objects.equals(this.notificationFrequency, user.notificationFrequency) && Objects.equals(this.adminNotificationFrequency, user.adminNotificationFrequency) && + Objects.equals(this.agentApprovalNotificationFrequency, user.agentApprovalNotificationFrequency) && Objects.equals(this.lastTenantNotificationSentDate, user.lastTenantNotificationSentDate) && Objects.equals(this.lastReplyNotificationSentDate, user.lastReplyNotificationSentDate) && Objects.equals(this.ignoredAddToMySiteMessages, user.ignoredAddToMySiteMessages) && @@ -1562,7 +1588,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, tenantId, username, displayName, websiteUrl, email, pendingEmail, backupEmail, pendingBackupEmail, signUpDate, createdFromUrlId, createdFromTenantId, createdFromIpHashed, verified, loginId, loginIdDate, loginCount, optedInNotifications, optedInTenantNotifications, hideAccountCode, avatarSrc, isFastCommentsHelpRequestAdmin, isHelpRequestAdmin, isAccountOwner, isAdminAdmin, isBillingAdmin, isAnalyticsAdmin, isCustomizationAdmin, isManageDataAdmin, isCommentModeratorAdmin, isAPIAdmin, isSiteAdmin, moderatorIds, isImpersonator, isCouponManager, locale, digestEmailFrequency, notificationFrequency, adminNotificationFrequency, lastTenantNotificationSentDate, lastReplyNotificationSentDate, ignoredAddToMySiteMessages, lastLoginDate, displayLabel, isProfileActivityPrivate, isProfileCommentsPrivate, isProfileDMDisabled, profileCommentApprovalMode, karma, passwordHash, averageTicketAckTimeMS, hasBlockedUsers, bio, headerBackgroundSrc, countryCode, countryFlag, socialLinks, hasTwoFactor, isEmailSuppressed); + return Objects.hash(id, tenantId, username, displayName, websiteUrl, email, pendingEmail, backupEmail, pendingBackupEmail, signUpDate, createdFromUrlId, createdFromTenantId, createdFromIpHashed, verified, loginId, loginIdDate, loginCount, optedInNotifications, optedInTenantNotifications, hideAccountCode, avatarSrc, isFastCommentsHelpRequestAdmin, isHelpRequestAdmin, isAccountOwner, isAdminAdmin, isBillingAdmin, isAnalyticsAdmin, isCustomizationAdmin, isManageDataAdmin, isCommentModeratorAdmin, isAPIAdmin, isSiteAdmin, moderatorIds, isImpersonator, isCouponManager, locale, digestEmailFrequency, notificationFrequency, adminNotificationFrequency, agentApprovalNotificationFrequency, lastTenantNotificationSentDate, lastReplyNotificationSentDate, ignoredAddToMySiteMessages, lastLoginDate, displayLabel, isProfileActivityPrivate, isProfileCommentsPrivate, isProfileDMDisabled, profileCommentApprovalMode, karma, passwordHash, averageTicketAckTimeMS, hasBlockedUsers, bio, headerBackgroundSrc, countryCode, countryFlag, socialLinks, hasTwoFactor, isEmailSuppressed); } @Override @@ -1608,6 +1634,7 @@ public String toString() { sb.append(" digestEmailFrequency: ").append(toIndentedString(digestEmailFrequency)).append("\n"); sb.append(" notificationFrequency: ").append(toIndentedString(notificationFrequency)).append("\n"); sb.append(" adminNotificationFrequency: ").append(toIndentedString(adminNotificationFrequency)).append("\n"); + sb.append(" agentApprovalNotificationFrequency: ").append(toIndentedString(agentApprovalNotificationFrequency)).append("\n"); sb.append(" lastTenantNotificationSentDate: ").append(toIndentedString(lastTenantNotificationSentDate)).append("\n"); sb.append(" lastReplyNotificationSentDate: ").append(toIndentedString(lastReplyNotificationSentDate)).append("\n"); sb.append(" ignoredAddToMySiteMessages: ").append(toIndentedString(ignoredAddToMySiteMessages)).append("\n"); @@ -1637,10 +1664,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -1649,7 +1673,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("_id", "tenantId", "username", "displayName", "websiteUrl", "email", "pendingEmail", "backupEmail", "pendingBackupEmail", "signUpDate", "createdFromUrlId", "createdFromTenantId", "createdFromIpHashed", "verified", "loginId", "loginIdDate", "loginCount", "optedInNotifications", "optedInTenantNotifications", "hideAccountCode", "avatarSrc", "isFastCommentsHelpRequestAdmin", "isHelpRequestAdmin", "isAccountOwner", "isAdminAdmin", "isBillingAdmin", "isAnalyticsAdmin", "isCustomizationAdmin", "isManageDataAdmin", "isCommentModeratorAdmin", "isAPIAdmin", "isSiteAdmin", "moderatorIds", "isImpersonator", "isCouponManager", "locale", "digestEmailFrequency", "notificationFrequency", "adminNotificationFrequency", "lastTenantNotificationSentDate", "lastReplyNotificationSentDate", "ignoredAddToMySiteMessages", "lastLoginDate", "displayLabel", "isProfileActivityPrivate", "isProfileCommentsPrivate", "isProfileDMDisabled", "profileCommentApprovalMode", "karma", "passwordHash", "averageTicketAckTimeMS", "hasBlockedUsers", "bio", "headerBackgroundSrc", "countryCode", "countryFlag", "socialLinks", "hasTwoFactor", "isEmailSuppressed")); + openapiFields = new HashSet(Arrays.asList("_id", "tenantId", "username", "displayName", "websiteUrl", "email", "pendingEmail", "backupEmail", "pendingBackupEmail", "signUpDate", "createdFromUrlId", "createdFromTenantId", "createdFromIpHashed", "verified", "loginId", "loginIdDate", "loginCount", "optedInNotifications", "optedInTenantNotifications", "hideAccountCode", "avatarSrc", "isFastCommentsHelpRequestAdmin", "isHelpRequestAdmin", "isAccountOwner", "isAdminAdmin", "isBillingAdmin", "isAnalyticsAdmin", "isCustomizationAdmin", "isManageDataAdmin", "isCommentModeratorAdmin", "isAPIAdmin", "isSiteAdmin", "moderatorIds", "isImpersonator", "isCouponManager", "locale", "digestEmailFrequency", "notificationFrequency", "adminNotificationFrequency", "agentApprovalNotificationFrequency", "lastTenantNotificationSentDate", "lastReplyNotificationSentDate", "ignoredAddToMySiteMessages", "lastLoginDate", "displayLabel", "isProfileActivityPrivate", "isProfileCommentsPrivate", "isProfileDMDisabled", "profileCommentApprovalMode", "karma", "passwordHash", "averageTicketAckTimeMS", "hasBlockedUsers", "bio", "headerBackgroundSrc", "countryCode", "countryFlag", "socialLinks", "hasTwoFactor", "isEmailSuppressed")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("_id", "username", "email", "signUpDate", "createdFromTenantId", "createdFromIpHashed", "verified", "loginId", "loginIdDate")); @@ -1736,6 +1760,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("digestEmailFrequency") != null && !jsonObj.get("digestEmailFrequency").isJsonNull()) { DigestEmailFrequency.validateJsonElement(jsonObj.get("digestEmailFrequency")); } + // validate the optional field `agentApprovalNotificationFrequency` + if (jsonObj.get("agentApprovalNotificationFrequency") != null && !jsonObj.get("agentApprovalNotificationFrequency").isJsonNull()) { + ImportedAgentApprovalNotificationFrequency.validateJsonElement(jsonObj.get("agentApprovalNotificationFrequency")); + } if ((jsonObj.get("displayLabel") != null && !jsonObj.get("displayLabel").isJsonNull()) && !jsonObj.get("displayLabel").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `displayLabel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayLabel").toString())); } diff --git a/client/src/main/java/com/fastcomments/model/UserBadge.java b/client/src/main/java/com/fastcomments/model/UserBadge.java index ced2c23f..645f0be7 100644 --- a/client/src/main/java/com/fastcomments/model/UserBadge.java +++ b/client/src/main/java/com/fastcomments/model/UserBadge.java @@ -49,7 +49,7 @@ /** * UserBadge */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UserBadge { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -578,10 +578,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UserBadgeProgress.java b/client/src/main/java/com/fastcomments/model/UserBadgeProgress.java index a6365f81..af93be0a 100644 --- a/client/src/main/java/com/fastcomments/model/UserBadgeProgress.java +++ b/client/src/main/java/com/fastcomments/model/UserBadgeProgress.java @@ -51,7 +51,7 @@ /** * UserBadgeProgress */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UserBadgeProgress { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -328,10 +328,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UserNotification.java b/client/src/main/java/com/fastcomments/model/UserNotification.java index 2705cf12..aeb6d942 100644 --- a/client/src/main/java/com/fastcomments/model/UserNotification.java +++ b/client/src/main/java/com/fastcomments/model/UserNotification.java @@ -53,7 +53,7 @@ /** * UserNotification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UserNotification { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -736,10 +736,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UserNotificationCount.java b/client/src/main/java/com/fastcomments/model/UserNotificationCount.java index 7c2f53fd..892b21a0 100644 --- a/client/src/main/java/com/fastcomments/model/UserNotificationCount.java +++ b/client/src/main/java/com/fastcomments/model/UserNotificationCount.java @@ -49,7 +49,7 @@ /** * UserNotificationCount */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UserNotificationCount { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) @@ -188,10 +188,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UserNotificationWriteResponse.java b/client/src/main/java/com/fastcomments/model/UserNotificationWriteResponse.java index b6e5d637..cd9bd43f 100644 --- a/client/src/main/java/com/fastcomments/model/UserNotificationWriteResponse.java +++ b/client/src/main/java/com/fastcomments/model/UserNotificationWriteResponse.java @@ -49,7 +49,7 @@ /** * UserNotificationWriteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UserNotificationWriteResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -162,10 +162,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UserPresenceData.java b/client/src/main/java/com/fastcomments/model/UserPresenceData.java index aa21f89b..1c7426bb 100644 --- a/client/src/main/java/com/fastcomments/model/UserPresenceData.java +++ b/client/src/main/java/com/fastcomments/model/UserPresenceData.java @@ -48,7 +48,7 @@ /** * UserPresenceData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UserPresenceData { public static final String SERIALIZED_NAME_URL_ID_W_S = "urlIdWS"; @SerializedName(SERIALIZED_NAME_URL_ID_W_S) @@ -207,10 +207,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UserReactsResponse.java b/client/src/main/java/com/fastcomments/model/UserReactsResponse.java index d6c36198..5a263544 100644 --- a/client/src/main/java/com/fastcomments/model/UserReactsResponse.java +++ b/client/src/main/java/com/fastcomments/model/UserReactsResponse.java @@ -51,7 +51,7 @@ /** * UserReactsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UserReactsResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -146,10 +146,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UserSearchResult.java b/client/src/main/java/com/fastcomments/model/UserSearchResult.java index 6c39dbc0..1cb797f4 100644 --- a/client/src/main/java/com/fastcomments/model/UserSearchResult.java +++ b/client/src/main/java/com/fastcomments/model/UserSearchResult.java @@ -48,7 +48,7 @@ /** * UserSearchResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UserSearchResult { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -265,10 +265,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UserSearchSectionResult.java b/client/src/main/java/com/fastcomments/model/UserSearchSectionResult.java index 3486bd01..2a931fa3 100644 --- a/client/src/main/java/com/fastcomments/model/UserSearchSectionResult.java +++ b/client/src/main/java/com/fastcomments/model/UserSearchSectionResult.java @@ -52,7 +52,7 @@ /** * UserSearchSectionResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UserSearchSectionResult { public static final String SERIALIZED_NAME_SECTION = "section"; @SerializedName(SERIALIZED_NAME_SECTION) @@ -147,10 +147,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } @@ -195,16 +192,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `section` UserSearchSection.validateJsonElement(jsonObj.get("section")); - // ensure the json data is an array - if (!jsonObj.get("users").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + if (jsonObj.get("users") != null) { + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + } + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + // validate the required field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + UserSearchResult.validateJsonElement(jsonArrayusers.get(i)); + } } - - JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); - // validate the required field `users` (array) - for (int i = 0; i < jsonArrayusers.size(); i++) { - UserSearchResult.validateJsonElement(jsonArrayusers.get(i)); - }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/java/com/fastcomments/model/UserSessionInfo.java b/client/src/main/java/com/fastcomments/model/UserSessionInfo.java index ea493ee4..5426387c 100644 --- a/client/src/main/java/com/fastcomments/model/UserSessionInfo.java +++ b/client/src/main/java/com/fastcomments/model/UserSessionInfo.java @@ -51,7 +51,7 @@ /** * UserSessionInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class UserSessionInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -466,10 +466,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/UsersListLocation.java b/client/src/main/java/com/fastcomments/model/UsersListLocation.java new file mode 100644 index 00000000..a9bdc19c --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UsersListLocation.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * Gets or Sets UsersListLocation + */ +@JsonAdapter(UsersListLocation.Adapter.class) +public enum UsersListLocation { + + NUMBER_0(0), + + NUMBER_1(1), + + NUMBER_2(2), + + NUMBER_3(3); + + private Integer value; + + UsersListLocation(Integer value) { + this.value = value; + } + + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static UsersListLocation fromValue(Integer value) { + for (UsersListLocation b : UsersListLocation.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final UsersListLocation enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public UsersListLocation read(final JsonReader jsonReader) throws IOException { + Integer value = jsonReader.nextInt(); + return UsersListLocation.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + Integer value = jsonElement.getAsInt(); + UsersListLocation.fromValue(value); + } +} + diff --git a/client/src/main/java/com/fastcomments/model/VoteBodyParams.java b/client/src/main/java/com/fastcomments/model/VoteBodyParams.java index 0a0f74eb..dcc36654 100644 --- a/client/src/main/java/com/fastcomments/model/VoteBodyParams.java +++ b/client/src/main/java/com/fastcomments/model/VoteBodyParams.java @@ -48,7 +48,7 @@ /** * VoteBodyParams */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class VoteBodyParams { public static final String SERIALIZED_NAME_COMMENTER_EMAIL = "commenterEmail"; @SerializedName(SERIALIZED_NAME_COMMENTER_EMAIL) @@ -239,10 +239,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/VoteComment200Response.java b/client/src/main/java/com/fastcomments/model/VoteComment200Response.java deleted file mode 100644 index 99ebbaf7..00000000 --- a/client/src/main/java/com/fastcomments/model/VoteComment200Response.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import java.util.Objects; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.VoteResponse; -import com.fastcomments.model.VoteResponseUser; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.fastcomments.invoker.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") -public class VoteComment200Response extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(VoteComment200Response.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!VoteComment200Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'VoteComment200Response' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterVoteResponse = gson.getDelegateAdapter(this, TypeToken.get(VoteResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, VoteComment200Response value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `VoteResponse` - if (value.getActualInstance() instanceof VoteResponse) { - JsonElement element = adapterVoteResponse.toJsonTree((VoteResponse)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `APIError` - if (value.getActualInstance() instanceof APIError) { - JsonElement element = adapterAPIError.toJsonTree((APIError)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: APIError, VoteResponse"); - } - - @Override - public VoteComment200Response read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize VoteResponse - try { - // validate the JSON object to see if any exception is thrown - VoteResponse.validateJsonElement(jsonElement); - actualAdapter = adapterVoteResponse; - VoteComment200Response ret = new VoteComment200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for VoteResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'VoteResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - VoteComment200Response ret = new VoteComment200Response(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIError'", e); - } - - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for VoteComment200Response: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public VoteComment200Response() { - super("anyOf", Boolean.FALSE); - } - - public VoteComment200Response(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("VoteResponse", VoteResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return VoteComment200Response.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, VoteResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof VoteResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, VoteResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, VoteResponse - * - * @return The actual instance (APIError, VoteResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `VoteResponse`. If the actual instance is not `VoteResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `VoteResponse` - * @throws ClassCastException if the instance is not `VoteResponse` - */ - public VoteResponse getVoteResponse() throws ClassCastException { - return (VoteResponse)super.getActualInstance(); - } - - /** - * Get the actual instance of `APIError`. If the actual instance is not `APIError`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIError` - * @throws ClassCastException if the instance is not `APIError` - */ - public APIError getAPIError() throws ClassCastException { - return (APIError)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to VoteComment200Response - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with VoteResponse - try { - VoteResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for VoteResponse failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with APIError - try { - APIError.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIError failed with `%s`.", e.getMessage())); - // continue to the next one - } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for VoteComment200Response with anyOf schemas: APIError, VoteResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - - /** - * Create an instance of VoteComment200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of VoteComment200Response - * @throws IOException if the JSON string is invalid with respect to VoteComment200Response - */ - public static VoteComment200Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, VoteComment200Response.class); - } - - /** - * Convert an instance of VoteComment200Response to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/main/java/com/fastcomments/model/VoteDeleteResponse.java b/client/src/main/java/com/fastcomments/model/VoteDeleteResponse.java index e0440bfe..d909a619 100644 --- a/client/src/main/java/com/fastcomments/model/VoteDeleteResponse.java +++ b/client/src/main/java/com/fastcomments/model/VoteDeleteResponse.java @@ -49,7 +49,7 @@ /** * VoteDeleteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class VoteDeleteResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -136,10 +136,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/VoteResponse.java b/client/src/main/java/com/fastcomments/model/VoteResponse.java index a753ca58..7a573878 100644 --- a/client/src/main/java/com/fastcomments/model/VoteResponse.java +++ b/client/src/main/java/com/fastcomments/model/VoteResponse.java @@ -49,7 +49,7 @@ /** * VoteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class VoteResponse { /** * Gets or Sets status @@ -268,10 +268,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/main/java/com/fastcomments/model/VoteResponseUser.java b/client/src/main/java/com/fastcomments/model/VoteResponseUser.java index e17d32db..29d49fcc 100644 --- a/client/src/main/java/com/fastcomments/model/VoteResponseUser.java +++ b/client/src/main/java/com/fastcomments/model/VoteResponseUser.java @@ -48,7 +48,7 @@ /** * VoteResponseUser */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") public class VoteResponseUser { public static final String SERIALIZED_NAME_SESSION_ID = "sessionId"; @SerializedName(SERIALIZED_NAME_SESSION_ID) @@ -109,10 +109,7 @@ public String toString() { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } diff --git a/client/src/test/java/com/fastcomments/api/DefaultApiTest.java b/client/src/test/java/com/fastcomments/api/DefaultApiTest.java index 63e1fcc2..1c90c411 100644 --- a/client/src/test/java/com/fastcomments/api/DefaultApiTest.java +++ b/client/src/test/java/com/fastcomments/api/DefaultApiTest.java @@ -14,119 +14,122 @@ package com.fastcomments.api; import com.fastcomments.invoker.ApiException; -import com.fastcomments.model.AddDomainConfig200Response; +import com.fastcomments.model.APICreateUserBadgeResponse; +import com.fastcomments.model.APIEmptyResponse; +import com.fastcomments.model.APIEmptySuccessResponse; +import com.fastcomments.model.APIError; +import com.fastcomments.model.APIGetCommentResponse; +import com.fastcomments.model.APIGetCommentsResponse; +import com.fastcomments.model.APIGetUserBadgeProgressListResponse; +import com.fastcomments.model.APIGetUserBadgeProgressResponse; +import com.fastcomments.model.APIGetUserBadgeResponse; +import com.fastcomments.model.APIGetUserBadgesResponse; +import com.fastcomments.model.APISaveCommentResponse; import com.fastcomments.model.AddDomainConfigParams; -import com.fastcomments.model.AddHashTag200Response; -import com.fastcomments.model.AddHashTagsBulk200Response; +import com.fastcomments.model.AddDomainConfigResponse; import com.fastcomments.model.AddPageAPIResponse; import com.fastcomments.model.AddSSOUserAPIResponse; -import com.fastcomments.model.AggregateQuestionResults200Response; +import com.fastcomments.model.AggregateQuestionResultsResponse; +import com.fastcomments.model.AggregateResponse; import com.fastcomments.model.AggregateTimeBucket; import com.fastcomments.model.AggregationRequest; -import com.fastcomments.model.AggregationResponse; import com.fastcomments.model.BlockFromCommentParams; -import com.fastcomments.model.BlockFromCommentPublic200Response; -import com.fastcomments.model.BulkAggregateQuestionResults200Response; +import com.fastcomments.model.BlockSuccess; import com.fastcomments.model.BulkAggregateQuestionResultsRequest; +import com.fastcomments.model.BulkAggregateQuestionResultsResponse; import com.fastcomments.model.BulkCreateHashTagsBody; -import com.fastcomments.model.ChangeTicketState200Response; +import com.fastcomments.model.BulkCreateHashTagsResponse; import com.fastcomments.model.ChangeTicketStateBody; -import com.fastcomments.model.CombineCommentsWithQuestionResults200Response; +import com.fastcomments.model.ChangeTicketStateResponse; +import com.fastcomments.model.CombineQuestionResultsWithCommentsResponse; import com.fastcomments.model.CreateAPIPageData; import com.fastcomments.model.CreateAPISSOUserData; import com.fastcomments.model.CreateAPIUserSubscriptionData; import com.fastcomments.model.CreateCommentParams; -import com.fastcomments.model.CreateEmailTemplate200Response; import com.fastcomments.model.CreateEmailTemplateBody; -import com.fastcomments.model.CreateFeedPost200Response; +import com.fastcomments.model.CreateEmailTemplateResponse; import com.fastcomments.model.CreateFeedPostParams; +import com.fastcomments.model.CreateFeedPostsResponse; import com.fastcomments.model.CreateHashTagBody; -import com.fastcomments.model.CreateModerator200Response; +import com.fastcomments.model.CreateHashTagResponse; import com.fastcomments.model.CreateModeratorBody; -import com.fastcomments.model.CreateQuestionConfig200Response; +import com.fastcomments.model.CreateModeratorResponse; import com.fastcomments.model.CreateQuestionConfigBody; -import com.fastcomments.model.CreateQuestionResult200Response; +import com.fastcomments.model.CreateQuestionConfigResponse; import com.fastcomments.model.CreateQuestionResultBody; +import com.fastcomments.model.CreateQuestionResultResponse; import com.fastcomments.model.CreateSubscriptionAPIResponse; -import com.fastcomments.model.CreateTenant200Response; import com.fastcomments.model.CreateTenantBody; -import com.fastcomments.model.CreateTenantPackage200Response; import com.fastcomments.model.CreateTenantPackageBody; -import com.fastcomments.model.CreateTenantUser200Response; +import com.fastcomments.model.CreateTenantPackageResponse; +import com.fastcomments.model.CreateTenantResponse; import com.fastcomments.model.CreateTenantUserBody; -import com.fastcomments.model.CreateTicket200Response; +import com.fastcomments.model.CreateTenantUserResponse; import com.fastcomments.model.CreateTicketBody; -import com.fastcomments.model.CreateUserBadge200Response; +import com.fastcomments.model.CreateTicketResponse; import com.fastcomments.model.CreateUserBadgeParams; -import com.fastcomments.model.DeleteComment200Response; -import com.fastcomments.model.DeleteCommentVote200Response; -import com.fastcomments.model.DeleteDomainConfig200Response; -import com.fastcomments.model.DeleteHashTagRequest; +import com.fastcomments.model.DeleteCommentResult; +import com.fastcomments.model.DeleteDomainConfigResponse; +import com.fastcomments.model.DeleteHashTagRequestBody; import com.fastcomments.model.DeletePageAPIResponse; import com.fastcomments.model.DeleteSSOUserAPIResponse; import com.fastcomments.model.DeleteSubscriptionAPIResponse; import com.fastcomments.model.FeedPost; -import com.fastcomments.model.FlagComment200Response; -import com.fastcomments.model.FlagCommentPublic200Response; -import com.fastcomments.model.GetAuditLogs200Response; -import com.fastcomments.model.GetCachedNotificationCount200Response; -import com.fastcomments.model.GetComment200Response; -import com.fastcomments.model.GetComments200Response; -import com.fastcomments.model.GetDomainConfig200Response; -import com.fastcomments.model.GetDomainConfigs200Response; -import com.fastcomments.model.GetEmailTemplate200Response; -import com.fastcomments.model.GetEmailTemplateDefinitions200Response; -import com.fastcomments.model.GetEmailTemplateRenderErrors200Response; -import com.fastcomments.model.GetEmailTemplates200Response; -import com.fastcomments.model.GetFeedPosts200Response; -import com.fastcomments.model.GetHashTags200Response; -import com.fastcomments.model.GetModerator200Response; -import com.fastcomments.model.GetModerators200Response; -import com.fastcomments.model.GetNotificationCount200Response; -import com.fastcomments.model.GetNotifications200Response; +import com.fastcomments.model.FlagCommentResponse; +import com.fastcomments.model.GetAuditLogsResponse; +import com.fastcomments.model.GetCachedNotificationCountResponse; +import com.fastcomments.model.GetDomainConfigResponse; +import com.fastcomments.model.GetDomainConfigsResponse; +import com.fastcomments.model.GetEmailTemplateDefinitionsResponse; +import com.fastcomments.model.GetEmailTemplateRenderErrorsResponse; +import com.fastcomments.model.GetEmailTemplateResponse; +import com.fastcomments.model.GetEmailTemplatesResponse; +import com.fastcomments.model.GetFeedPostsResponse; +import com.fastcomments.model.GetHashTagsResponse; +import com.fastcomments.model.GetModeratorResponse; +import com.fastcomments.model.GetModeratorsResponse; +import com.fastcomments.model.GetNotificationCountResponse; +import com.fastcomments.model.GetNotificationsResponse; import com.fastcomments.model.GetPageByURLIdAPIResponse; import com.fastcomments.model.GetPagesAPIResponse; -import com.fastcomments.model.GetPendingWebhookEventCount200Response; -import com.fastcomments.model.GetPendingWebhookEvents200Response; -import com.fastcomments.model.GetQuestionConfig200Response; -import com.fastcomments.model.GetQuestionConfigs200Response; -import com.fastcomments.model.GetQuestionResult200Response; -import com.fastcomments.model.GetQuestionResults200Response; +import com.fastcomments.model.GetPendingWebhookEventCountResponse; +import com.fastcomments.model.GetPendingWebhookEventsResponse; +import com.fastcomments.model.GetQuestionConfigResponse; +import com.fastcomments.model.GetQuestionConfigsResponse; +import com.fastcomments.model.GetQuestionResultResponse; +import com.fastcomments.model.GetQuestionResultsResponse; import com.fastcomments.model.GetSSOUserByEmailAPIResponse; import com.fastcomments.model.GetSSOUserByIdAPIResponse; -import com.fastcomments.model.GetSSOUsers200Response; +import com.fastcomments.model.GetSSOUsersResponse; import com.fastcomments.model.GetSubscriptionsAPIResponse; -import com.fastcomments.model.GetTenant200Response; -import com.fastcomments.model.GetTenantDailyUsages200Response; -import com.fastcomments.model.GetTenantPackage200Response; -import com.fastcomments.model.GetTenantPackages200Response; -import com.fastcomments.model.GetTenantUser200Response; -import com.fastcomments.model.GetTenantUsers200Response; -import com.fastcomments.model.GetTenants200Response; -import com.fastcomments.model.GetTicket200Response; -import com.fastcomments.model.GetTickets200Response; -import com.fastcomments.model.GetUser200Response; -import com.fastcomments.model.GetUserBadge200Response; -import com.fastcomments.model.GetUserBadgeProgressById200Response; -import com.fastcomments.model.GetUserBadgeProgressList200Response; -import com.fastcomments.model.GetUserBadges200Response; -import com.fastcomments.model.GetVotes200Response; -import com.fastcomments.model.GetVotesForUser200Response; +import com.fastcomments.model.GetTenantDailyUsagesResponse; +import com.fastcomments.model.GetTenantPackageResponse; +import com.fastcomments.model.GetTenantPackagesResponse; +import com.fastcomments.model.GetTenantResponse; +import com.fastcomments.model.GetTenantUserResponse; +import com.fastcomments.model.GetTenantUsersResponse; +import com.fastcomments.model.GetTenantsResponse; +import com.fastcomments.model.GetTicketResponse; +import com.fastcomments.model.GetTicketsResponse; +import com.fastcomments.model.GetUserResponse; +import com.fastcomments.model.GetVotesForUserResponse; +import com.fastcomments.model.GetVotesResponse; import java.time.OffsetDateTime; import com.fastcomments.model.PatchDomainConfigParams; -import com.fastcomments.model.PatchHashTag200Response; +import com.fastcomments.model.PatchDomainConfigResponse; import com.fastcomments.model.PatchPageAPIResponse; import com.fastcomments.model.PatchSSOUserAPIResponse; +import com.fastcomments.model.PutDomainConfigResponse; import com.fastcomments.model.PutSSOUserAPIResponse; -import com.fastcomments.model.RenderEmailTemplate200Response; import com.fastcomments.model.RenderEmailTemplateBody; +import com.fastcomments.model.RenderEmailTemplateResponse; import com.fastcomments.model.ReplaceTenantPackageBody; import com.fastcomments.model.ReplaceTenantUserBody; import com.fastcomments.model.SORTDIR; -import com.fastcomments.model.SaveComment200Response; +import com.fastcomments.model.SaveCommentsBulkResponse; import com.fastcomments.model.SortDirections; -import com.fastcomments.model.UnBlockCommentPublic200Response; import com.fastcomments.model.UnBlockFromCommentParams; +import com.fastcomments.model.UnblockSuccess; import com.fastcomments.model.UpdatableCommentParams; import com.fastcomments.model.UpdateAPIPageData; import com.fastcomments.model.UpdateAPISSOUserData; @@ -134,6 +137,7 @@ import com.fastcomments.model.UpdateDomainConfigParams; import com.fastcomments.model.UpdateEmailTemplateBody; import com.fastcomments.model.UpdateHashTagBody; +import com.fastcomments.model.UpdateHashTagResponse; import com.fastcomments.model.UpdateModeratorBody; import com.fastcomments.model.UpdateNotificationBody; import com.fastcomments.model.UpdateQuestionConfigBody; @@ -142,9 +146,9 @@ import com.fastcomments.model.UpdateTenantBody; import com.fastcomments.model.UpdateTenantPackageBody; import com.fastcomments.model.UpdateTenantUserBody; -import com.fastcomments.model.UpdateUserBadge200Response; import com.fastcomments.model.UpdateUserBadgeParams; -import com.fastcomments.model.VoteComment200Response; +import com.fastcomments.model.VoteDeleteResponse; +import com.fastcomments.model.VoteResponse; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -168,7 +172,7 @@ public class DefaultApiTest { public void addDomainConfigTest() throws ApiException { String tenantId = null; AddDomainConfigParams addDomainConfigParams = null; - AddDomainConfig200Response response = api.addDomainConfig(tenantId, addDomainConfigParams) + AddDomainConfigResponse response = api.addDomainConfig(tenantId, addDomainConfigParams) .execute(); // TODO: test validations } @@ -180,7 +184,7 @@ public void addDomainConfigTest() throws ApiException { public void addHashTagTest() throws ApiException { String tenantId = null; CreateHashTagBody createHashTagBody = null; - AddHashTag200Response response = api.addHashTag() + CreateHashTagResponse response = api.addHashTag() .tenantId(tenantId) .createHashTagBody(createHashTagBody) .execute(); @@ -194,7 +198,7 @@ public void addHashTagTest() throws ApiException { public void addHashTagsBulkTest() throws ApiException { String tenantId = null; BulkCreateHashTagsBody bulkCreateHashTagsBody = null; - AddHashTagsBulk200Response response = api.addHashTagsBulk() + BulkCreateHashTagsResponse response = api.addHashTagsBulk() .tenantId(tenantId) .bulkCreateHashTagsBody(bulkCreateHashTagsBody) .execute(); @@ -236,7 +240,7 @@ public void aggregateTest() throws ApiException { AggregationRequest aggregationRequest = null; String parentTenantId = null; Boolean includeStats = null; - AggregationResponse response = api.aggregate(tenantId, aggregationRequest) + AggregateResponse response = api.aggregate(tenantId, aggregationRequest) .parentTenantId(parentTenantId) .includeStats(includeStats) .execute(); @@ -255,7 +259,7 @@ public void aggregateQuestionResultsTest() throws ApiException { AggregateTimeBucket timeBucket = null; OffsetDateTime startDate = null; Boolean forceRecalculate = null; - AggregateQuestionResults200Response response = api.aggregateQuestionResults(tenantId) + AggregateQuestionResultsResponse response = api.aggregateQuestionResults(tenantId) .questionId(questionId) .questionIds(questionIds) .urlId(urlId) @@ -276,7 +280,7 @@ public void blockUserFromCommentTest() throws ApiException { BlockFromCommentParams blockFromCommentParams = null; String userId = null; String anonUserId = null; - BlockFromCommentPublic200Response response = api.blockUserFromComment(tenantId, id, blockFromCommentParams) + BlockSuccess response = api.blockUserFromComment(tenantId, id, blockFromCommentParams) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -291,7 +295,7 @@ public void bulkAggregateQuestionResultsTest() throws ApiException { String tenantId = null; BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest = null; Boolean forceRecalculate = null; - BulkAggregateQuestionResults200Response response = api.bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest) + BulkAggregateQuestionResultsResponse response = api.bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest) .forceRecalculate(forceRecalculate) .execute(); // TODO: test validations @@ -306,7 +310,7 @@ public void changeTicketStateTest() throws ApiException { String userId = null; String id = null; ChangeTicketStateBody changeTicketStateBody = null; - ChangeTicketState200Response response = api.changeTicketState(tenantId, userId, id, changeTicketStateBody) + ChangeTicketStateResponse response = api.changeTicketState(tenantId, userId, id, changeTicketStateBody) .execute(); // TODO: test validations } @@ -325,7 +329,7 @@ public void combineCommentsWithQuestionResultsTest() throws ApiException { Double minValue = null; Double maxValue = null; Double limit = null; - CombineCommentsWithQuestionResults200Response response = api.combineCommentsWithQuestionResults(tenantId) + CombineQuestionResultsWithCommentsResponse response = api.combineCommentsWithQuestionResults(tenantId) .questionId(questionId) .questionIds(questionIds) .urlId(urlId) @@ -345,7 +349,7 @@ public void combineCommentsWithQuestionResultsTest() throws ApiException { public void createEmailTemplateTest() throws ApiException { String tenantId = null; CreateEmailTemplateBody createEmailTemplateBody = null; - CreateEmailTemplate200Response response = api.createEmailTemplate(tenantId, createEmailTemplateBody) + CreateEmailTemplateResponse response = api.createEmailTemplate(tenantId, createEmailTemplateBody) .execute(); // TODO: test validations } @@ -361,7 +365,7 @@ public void createFeedPostTest() throws ApiException { Boolean isLive = null; Boolean doSpamCheck = null; Boolean skipDupCheck = null; - CreateFeedPost200Response response = api.createFeedPost(tenantId, createFeedPostParams) + CreateFeedPostsResponse response = api.createFeedPost(tenantId, createFeedPostParams) .broadcastId(broadcastId) .isLive(isLive) .doSpamCheck(doSpamCheck) @@ -377,7 +381,7 @@ public void createFeedPostTest() throws ApiException { public void createModeratorTest() throws ApiException { String tenantId = null; CreateModeratorBody createModeratorBody = null; - CreateModerator200Response response = api.createModerator(tenantId, createModeratorBody) + CreateModeratorResponse response = api.createModerator(tenantId, createModeratorBody) .execute(); // TODO: test validations } @@ -389,7 +393,7 @@ public void createModeratorTest() throws ApiException { public void createQuestionConfigTest() throws ApiException { String tenantId = null; CreateQuestionConfigBody createQuestionConfigBody = null; - CreateQuestionConfig200Response response = api.createQuestionConfig(tenantId, createQuestionConfigBody) + CreateQuestionConfigResponse response = api.createQuestionConfig(tenantId, createQuestionConfigBody) .execute(); // TODO: test validations } @@ -401,7 +405,7 @@ public void createQuestionConfigTest() throws ApiException { public void createQuestionResultTest() throws ApiException { String tenantId = null; CreateQuestionResultBody createQuestionResultBody = null; - CreateQuestionResult200Response response = api.createQuestionResult(tenantId, createQuestionResultBody) + CreateQuestionResultResponse response = api.createQuestionResult(tenantId, createQuestionResultBody) .execute(); // TODO: test validations } @@ -425,7 +429,7 @@ public void createSubscriptionTest() throws ApiException { public void createTenantTest() throws ApiException { String tenantId = null; CreateTenantBody createTenantBody = null; - CreateTenant200Response response = api.createTenant(tenantId, createTenantBody) + CreateTenantResponse response = api.createTenant(tenantId, createTenantBody) .execute(); // TODO: test validations } @@ -437,7 +441,7 @@ public void createTenantTest() throws ApiException { public void createTenantPackageTest() throws ApiException { String tenantId = null; CreateTenantPackageBody createTenantPackageBody = null; - CreateTenantPackage200Response response = api.createTenantPackage(tenantId, createTenantPackageBody) + CreateTenantPackageResponse response = api.createTenantPackage(tenantId, createTenantPackageBody) .execute(); // TODO: test validations } @@ -449,7 +453,7 @@ public void createTenantPackageTest() throws ApiException { public void createTenantUserTest() throws ApiException { String tenantId = null; CreateTenantUserBody createTenantUserBody = null; - CreateTenantUser200Response response = api.createTenantUser(tenantId, createTenantUserBody) + CreateTenantUserResponse response = api.createTenantUser(tenantId, createTenantUserBody) .execute(); // TODO: test validations } @@ -462,7 +466,7 @@ public void createTicketTest() throws ApiException { String tenantId = null; String userId = null; CreateTicketBody createTicketBody = null; - CreateTicket200Response response = api.createTicket(tenantId, userId, createTicketBody) + CreateTicketResponse response = api.createTicket(tenantId, userId, createTicketBody) .execute(); // TODO: test validations } @@ -474,7 +478,7 @@ public void createTicketTest() throws ApiException { public void createUserBadgeTest() throws ApiException { String tenantId = null; CreateUserBadgeParams createUserBadgeParams = null; - CreateUserBadge200Response response = api.createUserBadge(tenantId, createUserBadgeParams) + APICreateUserBadgeResponse response = api.createUserBadge(tenantId, createUserBadgeParams) .execute(); // TODO: test validations } @@ -489,7 +493,7 @@ public void createVoteTest() throws ApiException { String direction = null; String userId = null; String anonUserId = null; - VoteComment200Response response = api.createVote(tenantId, commentId, direction) + VoteResponse response = api.createVote(tenantId, commentId, direction) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -505,7 +509,7 @@ public void deleteCommentTest() throws ApiException { String id = null; String contextUserId = null; Boolean isLive = null; - DeleteComment200Response response = api.deleteComment(tenantId, id) + DeleteCommentResult response = api.deleteComment(tenantId, id) .contextUserId(contextUserId) .isLive(isLive) .execute(); @@ -519,7 +523,7 @@ public void deleteCommentTest() throws ApiException { public void deleteDomainConfigTest() throws ApiException { String tenantId = null; String domain = null; - DeleteDomainConfig200Response response = api.deleteDomainConfig(tenantId, domain) + DeleteDomainConfigResponse response = api.deleteDomainConfig(tenantId, domain) .execute(); // TODO: test validations } @@ -531,7 +535,7 @@ public void deleteDomainConfigTest() throws ApiException { public void deleteEmailTemplateTest() throws ApiException { String tenantId = null; String id = null; - FlagCommentPublic200Response response = api.deleteEmailTemplate(tenantId, id) + APIEmptyResponse response = api.deleteEmailTemplate(tenantId, id) .execute(); // TODO: test validations } @@ -544,7 +548,7 @@ public void deleteEmailTemplateRenderErrorTest() throws ApiException { String tenantId = null; String id = null; String errorId = null; - FlagCommentPublic200Response response = api.deleteEmailTemplateRenderError(tenantId, id, errorId) + APIEmptyResponse response = api.deleteEmailTemplateRenderError(tenantId, id, errorId) .execute(); // TODO: test validations } @@ -556,10 +560,10 @@ public void deleteEmailTemplateRenderErrorTest() throws ApiException { public void deleteHashTagTest() throws ApiException { String tag = null; String tenantId = null; - DeleteHashTagRequest deleteHashTagRequest = null; - FlagCommentPublic200Response response = api.deleteHashTag(tag) + DeleteHashTagRequestBody deleteHashTagRequestBody = null; + APIEmptyResponse response = api.deleteHashTag(tag) .tenantId(tenantId) - .deleteHashTagRequest(deleteHashTagRequest) + .deleteHashTagRequestBody(deleteHashTagRequestBody) .execute(); // TODO: test validations } @@ -572,7 +576,7 @@ public void deleteModeratorTest() throws ApiException { String tenantId = null; String id = null; String sendEmail = null; - FlagCommentPublic200Response response = api.deleteModerator(tenantId, id) + APIEmptyResponse response = api.deleteModerator(tenantId, id) .sendEmail(sendEmail) .execute(); // TODO: test validations @@ -585,7 +589,7 @@ public void deleteModeratorTest() throws ApiException { public void deleteNotificationCountTest() throws ApiException { String tenantId = null; String id = null; - FlagCommentPublic200Response response = api.deleteNotificationCount(tenantId, id) + APIEmptyResponse response = api.deleteNotificationCount(tenantId, id) .execute(); // TODO: test validations } @@ -609,7 +613,7 @@ public void deletePageTest() throws ApiException { public void deletePendingWebhookEventTest() throws ApiException { String tenantId = null; String id = null; - FlagCommentPublic200Response response = api.deletePendingWebhookEvent(tenantId, id) + APIEmptyResponse response = api.deletePendingWebhookEvent(tenantId, id) .execute(); // TODO: test validations } @@ -621,7 +625,7 @@ public void deletePendingWebhookEventTest() throws ApiException { public void deleteQuestionConfigTest() throws ApiException { String tenantId = null; String id = null; - FlagCommentPublic200Response response = api.deleteQuestionConfig(tenantId, id) + APIEmptyResponse response = api.deleteQuestionConfig(tenantId, id) .execute(); // TODO: test validations } @@ -633,7 +637,7 @@ public void deleteQuestionConfigTest() throws ApiException { public void deleteQuestionResultTest() throws ApiException { String tenantId = null; String id = null; - FlagCommentPublic200Response response = api.deleteQuestionResult(tenantId, id) + APIEmptyResponse response = api.deleteQuestionResult(tenantId, id) .execute(); // TODO: test validations } @@ -676,7 +680,7 @@ public void deleteTenantTest() throws ApiException { String tenantId = null; String id = null; String sure = null; - FlagCommentPublic200Response response = api.deleteTenant(tenantId, id) + APIEmptyResponse response = api.deleteTenant(tenantId, id) .sure(sure) .execute(); // TODO: test validations @@ -689,7 +693,7 @@ public void deleteTenantTest() throws ApiException { public void deleteTenantPackageTest() throws ApiException { String tenantId = null; String id = null; - FlagCommentPublic200Response response = api.deleteTenantPackage(tenantId, id) + APIEmptyResponse response = api.deleteTenantPackage(tenantId, id) .execute(); // TODO: test validations } @@ -703,7 +707,7 @@ public void deleteTenantUserTest() throws ApiException { String id = null; String deleteComments = null; String commentDeleteMode = null; - FlagCommentPublic200Response response = api.deleteTenantUser(tenantId, id) + APIEmptyResponse response = api.deleteTenantUser(tenantId, id) .deleteComments(deleteComments) .commentDeleteMode(commentDeleteMode) .execute(); @@ -717,7 +721,7 @@ public void deleteTenantUserTest() throws ApiException { public void deleteUserBadgeTest() throws ApiException { String tenantId = null; String id = null; - UpdateUserBadge200Response response = api.deleteUserBadge(tenantId, id) + APIEmptySuccessResponse response = api.deleteUserBadge(tenantId, id) .execute(); // TODO: test validations } @@ -730,7 +734,7 @@ public void deleteVoteTest() throws ApiException { String tenantId = null; String id = null; String editKey = null; - DeleteCommentVote200Response response = api.deleteVote(tenantId, id) + VoteDeleteResponse response = api.deleteVote(tenantId, id) .editKey(editKey) .execute(); // TODO: test validations @@ -745,7 +749,7 @@ public void flagCommentTest() throws ApiException { String id = null; String userId = null; String anonUserId = null; - FlagComment200Response response = api.flagComment(tenantId, id) + FlagCommentResponse response = api.flagComment(tenantId, id) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -763,7 +767,7 @@ public void getAuditLogsTest() throws ApiException { SORTDIR order = null; Double after = null; Double before = null; - GetAuditLogs200Response response = api.getAuditLogs(tenantId) + GetAuditLogsResponse response = api.getAuditLogs(tenantId) .limit(limit) .skip(skip) .order(order) @@ -780,7 +784,7 @@ public void getAuditLogsTest() throws ApiException { public void getCachedNotificationCountTest() throws ApiException { String tenantId = null; String id = null; - GetCachedNotificationCount200Response response = api.getCachedNotificationCount(tenantId, id) + GetCachedNotificationCountResponse response = api.getCachedNotificationCount(tenantId, id) .execute(); // TODO: test validations } @@ -792,7 +796,7 @@ public void getCachedNotificationCountTest() throws ApiException { public void getCommentTest() throws ApiException { String tenantId = null; String id = null; - GetComment200Response response = api.getComment(tenantId, id) + APIGetCommentResponse response = api.getComment(tenantId, id) .execute(); // TODO: test validations } @@ -817,7 +821,9 @@ public void getCommentsTest() throws ApiException { String hashTag = null; String parentId = null; SortDirections direction = null; - GetComments200Response response = api.getComments(tenantId) + Long fromDate = null; + Long toDate = null; + APIGetCommentsResponse response = api.getComments(tenantId) .page(page) .limit(limit) .skip(skip) @@ -832,6 +838,8 @@ public void getCommentsTest() throws ApiException { .hashTag(hashTag) .parentId(parentId) .direction(direction) + .fromDate(fromDate) + .toDate(toDate) .execute(); // TODO: test validations } @@ -843,7 +851,7 @@ public void getCommentsTest() throws ApiException { public void getDomainConfigTest() throws ApiException { String tenantId = null; String domain = null; - GetDomainConfig200Response response = api.getDomainConfig(tenantId, domain) + GetDomainConfigResponse response = api.getDomainConfig(tenantId, domain) .execute(); // TODO: test validations } @@ -854,7 +862,7 @@ public void getDomainConfigTest() throws ApiException { @Test public void getDomainConfigsTest() throws ApiException { String tenantId = null; - GetDomainConfigs200Response response = api.getDomainConfigs(tenantId) + GetDomainConfigsResponse response = api.getDomainConfigs(tenantId) .execute(); // TODO: test validations } @@ -866,7 +874,7 @@ public void getDomainConfigsTest() throws ApiException { public void getEmailTemplateTest() throws ApiException { String tenantId = null; String id = null; - GetEmailTemplate200Response response = api.getEmailTemplate(tenantId, id) + GetEmailTemplateResponse response = api.getEmailTemplate(tenantId, id) .execute(); // TODO: test validations } @@ -877,7 +885,7 @@ public void getEmailTemplateTest() throws ApiException { @Test public void getEmailTemplateDefinitionsTest() throws ApiException { String tenantId = null; - GetEmailTemplateDefinitions200Response response = api.getEmailTemplateDefinitions(tenantId) + GetEmailTemplateDefinitionsResponse response = api.getEmailTemplateDefinitions(tenantId) .execute(); // TODO: test validations } @@ -890,7 +898,7 @@ public void getEmailTemplateRenderErrorsTest() throws ApiException { String tenantId = null; String id = null; Double skip = null; - GetEmailTemplateRenderErrors200Response response = api.getEmailTemplateRenderErrors(tenantId, id) + GetEmailTemplateRenderErrorsResponse response = api.getEmailTemplateRenderErrors(tenantId, id) .skip(skip) .execute(); // TODO: test validations @@ -903,7 +911,7 @@ public void getEmailTemplateRenderErrorsTest() throws ApiException { public void getEmailTemplatesTest() throws ApiException { String tenantId = null; Double skip = null; - GetEmailTemplates200Response response = api.getEmailTemplates(tenantId) + GetEmailTemplatesResponse response = api.getEmailTemplates(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -920,7 +928,7 @@ public void getFeedPostsTest() throws ApiException { String afterId = null; Integer limit = null; List tags = null; - GetFeedPosts200Response response = api.getFeedPosts(tenantId) + GetFeedPostsResponse response = api.getFeedPosts(tenantId) .afterId(afterId) .limit(limit) .tags(tags) @@ -935,7 +943,7 @@ public void getFeedPostsTest() throws ApiException { public void getHashTagsTest() throws ApiException { String tenantId = null; Double page = null; - GetHashTags200Response response = api.getHashTags(tenantId) + GetHashTagsResponse response = api.getHashTags(tenantId) .page(page) .execute(); // TODO: test validations @@ -948,7 +956,7 @@ public void getHashTagsTest() throws ApiException { public void getModeratorTest() throws ApiException { String tenantId = null; String id = null; - GetModerator200Response response = api.getModerator(tenantId, id) + GetModeratorResponse response = api.getModerator(tenantId, id) .execute(); // TODO: test validations } @@ -960,7 +968,7 @@ public void getModeratorTest() throws ApiException { public void getModeratorsTest() throws ApiException { String tenantId = null; Double skip = null; - GetModerators200Response response = api.getModerators(tenantId) + GetModeratorsResponse response = api.getModerators(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -977,7 +985,7 @@ public void getNotificationCountTest() throws ApiException { String fromCommentId = null; Boolean viewed = null; String type = null; - GetNotificationCount200Response response = api.getNotificationCount(tenantId) + GetNotificationCountResponse response = api.getNotificationCount(tenantId) .userId(userId) .urlId(urlId) .fromCommentId(fromCommentId) @@ -999,7 +1007,7 @@ public void getNotificationsTest() throws ApiException { Boolean viewed = null; String type = null; Double skip = null; - GetNotifications200Response response = api.getNotifications(tenantId) + GetNotificationsResponse response = api.getNotifications(tenantId) .userId(userId) .urlId(urlId) .fromCommentId(fromCommentId) @@ -1045,7 +1053,7 @@ public void getPendingWebhookEventCountTest() throws ApiException { String type = null; String domain = null; Double attemptCountGT = null; - GetPendingWebhookEventCount200Response response = api.getPendingWebhookEventCount(tenantId) + GetPendingWebhookEventCountResponse response = api.getPendingWebhookEventCount(tenantId) .commentId(commentId) .externalId(externalId) .eventType(eventType) @@ -1069,7 +1077,7 @@ public void getPendingWebhookEventsTest() throws ApiException { String domain = null; Double attemptCountGT = null; Double skip = null; - GetPendingWebhookEvents200Response response = api.getPendingWebhookEvents(tenantId) + GetPendingWebhookEventsResponse response = api.getPendingWebhookEvents(tenantId) .commentId(commentId) .externalId(externalId) .eventType(eventType) @@ -1088,7 +1096,7 @@ public void getPendingWebhookEventsTest() throws ApiException { public void getQuestionConfigTest() throws ApiException { String tenantId = null; String id = null; - GetQuestionConfig200Response response = api.getQuestionConfig(tenantId, id) + GetQuestionConfigResponse response = api.getQuestionConfig(tenantId, id) .execute(); // TODO: test validations } @@ -1100,7 +1108,7 @@ public void getQuestionConfigTest() throws ApiException { public void getQuestionConfigsTest() throws ApiException { String tenantId = null; Double skip = null; - GetQuestionConfigs200Response response = api.getQuestionConfigs(tenantId) + GetQuestionConfigsResponse response = api.getQuestionConfigs(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -1113,7 +1121,7 @@ public void getQuestionConfigsTest() throws ApiException { public void getQuestionResultTest() throws ApiException { String tenantId = null; String id = null; - GetQuestionResult200Response response = api.getQuestionResult(tenantId, id) + GetQuestionResultResponse response = api.getQuestionResult(tenantId, id) .execute(); // TODO: test validations } @@ -1130,7 +1138,7 @@ public void getQuestionResultsTest() throws ApiException { String questionId = null; String questionIds = null; Double skip = null; - GetQuestionResults200Response response = api.getQuestionResults(tenantId) + GetQuestionResultsResponse response = api.getQuestionResults(tenantId) .urlId(urlId) .userId(userId) .startDate(startDate) @@ -1172,7 +1180,7 @@ public void getSSOUserByIdTest() throws ApiException { public void getSSOUsersTest() throws ApiException { String tenantId = null; Integer skip = null; - GetSSOUsers200Response response = api.getSSOUsers(tenantId) + GetSSOUsersResponse response = api.getSSOUsers(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -1198,7 +1206,7 @@ public void getSubscriptionsTest() throws ApiException { public void getTenantTest() throws ApiException { String tenantId = null; String id = null; - GetTenant200Response response = api.getTenant(tenantId, id) + GetTenantResponse response = api.getTenant(tenantId, id) .execute(); // TODO: test validations } @@ -1213,7 +1221,7 @@ public void getTenantDailyUsagesTest() throws ApiException { Double monthNumber = null; Double dayNumber = null; Double skip = null; - GetTenantDailyUsages200Response response = api.getTenantDailyUsages(tenantId) + GetTenantDailyUsagesResponse response = api.getTenantDailyUsages(tenantId) .yearNumber(yearNumber) .monthNumber(monthNumber) .dayNumber(dayNumber) @@ -1229,7 +1237,7 @@ public void getTenantDailyUsagesTest() throws ApiException { public void getTenantPackageTest() throws ApiException { String tenantId = null; String id = null; - GetTenantPackage200Response response = api.getTenantPackage(tenantId, id) + GetTenantPackageResponse response = api.getTenantPackage(tenantId, id) .execute(); // TODO: test validations } @@ -1241,7 +1249,7 @@ public void getTenantPackageTest() throws ApiException { public void getTenantPackagesTest() throws ApiException { String tenantId = null; Double skip = null; - GetTenantPackages200Response response = api.getTenantPackages(tenantId) + GetTenantPackagesResponse response = api.getTenantPackages(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -1254,7 +1262,7 @@ public void getTenantPackagesTest() throws ApiException { public void getTenantUserTest() throws ApiException { String tenantId = null; String id = null; - GetTenantUser200Response response = api.getTenantUser(tenantId, id) + GetTenantUserResponse response = api.getTenantUser(tenantId, id) .execute(); // TODO: test validations } @@ -1266,7 +1274,7 @@ public void getTenantUserTest() throws ApiException { public void getTenantUsersTest() throws ApiException { String tenantId = null; Double skip = null; - GetTenantUsers200Response response = api.getTenantUsers(tenantId) + GetTenantUsersResponse response = api.getTenantUsers(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -1280,7 +1288,7 @@ public void getTenantsTest() throws ApiException { String tenantId = null; String meta = null; Double skip = null; - GetTenants200Response response = api.getTenants(tenantId) + GetTenantsResponse response = api.getTenants(tenantId) .meta(meta) .skip(skip) .execute(); @@ -1295,7 +1303,7 @@ public void getTicketTest() throws ApiException { String tenantId = null; String id = null; String userId = null; - GetTicket200Response response = api.getTicket(tenantId, id) + GetTicketResponse response = api.getTicket(tenantId, id) .userId(userId) .execute(); // TODO: test validations @@ -1311,7 +1319,7 @@ public void getTicketsTest() throws ApiException { Double state = null; Double skip = null; Double limit = null; - GetTickets200Response response = api.getTickets(tenantId) + GetTicketsResponse response = api.getTickets(tenantId) .userId(userId) .state(state) .skip(skip) @@ -1327,7 +1335,7 @@ public void getTicketsTest() throws ApiException { public void getUserTest() throws ApiException { String tenantId = null; String id = null; - GetUser200Response response = api.getUser(tenantId, id) + GetUserResponse response = api.getUser(tenantId, id) .execute(); // TODO: test validations } @@ -1339,7 +1347,7 @@ public void getUserTest() throws ApiException { public void getUserBadgeTest() throws ApiException { String tenantId = null; String id = null; - GetUserBadge200Response response = api.getUserBadge(tenantId, id) + APIGetUserBadgeResponse response = api.getUserBadge(tenantId, id) .execute(); // TODO: test validations } @@ -1351,7 +1359,7 @@ public void getUserBadgeTest() throws ApiException { public void getUserBadgeProgressByIdTest() throws ApiException { String tenantId = null; String id = null; - GetUserBadgeProgressById200Response response = api.getUserBadgeProgressById(tenantId, id) + APIGetUserBadgeProgressResponse response = api.getUserBadgeProgressById(tenantId, id) .execute(); // TODO: test validations } @@ -1363,7 +1371,7 @@ public void getUserBadgeProgressByIdTest() throws ApiException { public void getUserBadgeProgressByUserIdTest() throws ApiException { String tenantId = null; String userId = null; - GetUserBadgeProgressById200Response response = api.getUserBadgeProgressByUserId(tenantId, userId) + APIGetUserBadgeProgressResponse response = api.getUserBadgeProgressByUserId(tenantId, userId) .execute(); // TODO: test validations } @@ -1377,7 +1385,7 @@ public void getUserBadgeProgressListTest() throws ApiException { String userId = null; Double limit = null; Double skip = null; - GetUserBadgeProgressList200Response response = api.getUserBadgeProgressList(tenantId) + APIGetUserBadgeProgressListResponse response = api.getUserBadgeProgressList(tenantId) .userId(userId) .limit(limit) .skip(skip) @@ -1397,7 +1405,7 @@ public void getUserBadgesTest() throws ApiException { Boolean displayedOnComments = null; Double limit = null; Double skip = null; - GetUserBadges200Response response = api.getUserBadges(tenantId) + APIGetUserBadgesResponse response = api.getUserBadges(tenantId) .userId(userId) .badgeId(badgeId) .type(type) @@ -1415,7 +1423,7 @@ public void getUserBadgesTest() throws ApiException { public void getVotesTest() throws ApiException { String tenantId = null; String urlId = null; - GetVotes200Response response = api.getVotes(tenantId, urlId) + GetVotesResponse response = api.getVotes(tenantId, urlId) .execute(); // TODO: test validations } @@ -1429,7 +1437,7 @@ public void getVotesForUserTest() throws ApiException { String urlId = null; String userId = null; String anonUserId = null; - GetVotesForUser200Response response = api.getVotesForUser(tenantId, urlId) + GetVotesForUserResponse response = api.getVotesForUser(tenantId, urlId) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -1444,7 +1452,7 @@ public void patchDomainConfigTest() throws ApiException { String tenantId = null; String domainToUpdate = null; PatchDomainConfigParams patchDomainConfigParams = null; - GetDomainConfig200Response response = api.patchDomainConfig(tenantId, domainToUpdate, patchDomainConfigParams) + PatchDomainConfigResponse response = api.patchDomainConfig(tenantId, domainToUpdate, patchDomainConfigParams) .execute(); // TODO: test validations } @@ -1457,7 +1465,7 @@ public void patchHashTagTest() throws ApiException { String tag = null; String tenantId = null; UpdateHashTagBody updateHashTagBody = null; - PatchHashTag200Response response = api.patchHashTag(tag) + UpdateHashTagResponse response = api.patchHashTag(tag) .tenantId(tenantId) .updateHashTagBody(updateHashTagBody) .execute(); @@ -1500,7 +1508,7 @@ public void putDomainConfigTest() throws ApiException { String tenantId = null; String domainToUpdate = null; UpdateDomainConfigParams updateDomainConfigParams = null; - GetDomainConfig200Response response = api.putDomainConfig(tenantId, domainToUpdate, updateDomainConfigParams) + PutDomainConfigResponse response = api.putDomainConfig(tenantId, domainToUpdate, updateDomainConfigParams) .execute(); // TODO: test validations } @@ -1528,7 +1536,7 @@ public void renderEmailTemplateTest() throws ApiException { String tenantId = null; RenderEmailTemplateBody renderEmailTemplateBody = null; String locale = null; - RenderEmailTemplate200Response response = api.renderEmailTemplate(tenantId, renderEmailTemplateBody) + RenderEmailTemplateResponse response = api.renderEmailTemplate(tenantId, renderEmailTemplateBody) .locale(locale) .execute(); // TODO: test validations @@ -1542,7 +1550,7 @@ public void replaceTenantPackageTest() throws ApiException { String tenantId = null; String id = null; ReplaceTenantPackageBody replaceTenantPackageBody = null; - FlagCommentPublic200Response response = api.replaceTenantPackage(tenantId, id, replaceTenantPackageBody) + APIEmptyResponse response = api.replaceTenantPackage(tenantId, id, replaceTenantPackageBody) .execute(); // TODO: test validations } @@ -1556,7 +1564,7 @@ public void replaceTenantUserTest() throws ApiException { String id = null; ReplaceTenantUserBody replaceTenantUserBody = null; String updateComments = null; - FlagCommentPublic200Response response = api.replaceTenantUser(tenantId, id, replaceTenantUserBody) + APIEmptyResponse response = api.replaceTenantUser(tenantId, id, replaceTenantUserBody) .updateComments(updateComments) .execute(); // TODO: test validations @@ -1573,7 +1581,7 @@ public void saveCommentTest() throws ApiException { Boolean doSpamCheck = null; Boolean sendEmails = null; Boolean populateNotifications = null; - SaveComment200Response response = api.saveComment(tenantId, createCommentParams) + APISaveCommentResponse response = api.saveComment(tenantId, createCommentParams) .isLive(isLive) .doSpamCheck(doSpamCheck) .sendEmails(sendEmails) @@ -1593,7 +1601,7 @@ public void saveCommentsBulkTest() throws ApiException { Boolean doSpamCheck = null; Boolean sendEmails = null; Boolean populateNotifications = null; - List response = api.saveCommentsBulk(tenantId, createCommentParams) + List response = api.saveCommentsBulk(tenantId, createCommentParams) .isLive(isLive) .doSpamCheck(doSpamCheck) .sendEmails(sendEmails) @@ -1610,7 +1618,7 @@ public void sendInviteTest() throws ApiException { String tenantId = null; String id = null; String fromName = null; - FlagCommentPublic200Response response = api.sendInvite(tenantId, id, fromName) + APIEmptyResponse response = api.sendInvite(tenantId, id, fromName) .execute(); // TODO: test validations } @@ -1623,7 +1631,7 @@ public void sendLoginLinkTest() throws ApiException { String tenantId = null; String id = null; String redirectURL = null; - FlagCommentPublic200Response response = api.sendLoginLink(tenantId, id) + APIEmptyResponse response = api.sendLoginLink(tenantId, id) .redirectURL(redirectURL) .execute(); // TODO: test validations @@ -1639,7 +1647,7 @@ public void unBlockUserFromCommentTest() throws ApiException { UnBlockFromCommentParams unBlockFromCommentParams = null; String userId = null; String anonUserId = null; - UnBlockCommentPublic200Response response = api.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams) + UnblockSuccess response = api.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -1655,7 +1663,7 @@ public void unFlagCommentTest() throws ApiException { String id = null; String userId = null; String anonUserId = null; - FlagComment200Response response = api.unFlagComment(tenantId, id) + FlagCommentResponse response = api.unFlagComment(tenantId, id) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -1673,7 +1681,7 @@ public void updateCommentTest() throws ApiException { String contextUserId = null; Boolean doSpamCheck = null; Boolean isLive = null; - FlagCommentPublic200Response response = api.updateComment(tenantId, id, updatableCommentParams) + APIEmptyResponse response = api.updateComment(tenantId, id, updatableCommentParams) .contextUserId(contextUserId) .doSpamCheck(doSpamCheck) .isLive(isLive) @@ -1689,7 +1697,7 @@ public void updateEmailTemplateTest() throws ApiException { String tenantId = null; String id = null; UpdateEmailTemplateBody updateEmailTemplateBody = null; - FlagCommentPublic200Response response = api.updateEmailTemplate(tenantId, id, updateEmailTemplateBody) + APIEmptyResponse response = api.updateEmailTemplate(tenantId, id, updateEmailTemplateBody) .execute(); // TODO: test validations } @@ -1702,7 +1710,7 @@ public void updateFeedPostTest() throws ApiException { String tenantId = null; String id = null; FeedPost feedPost = null; - FlagCommentPublic200Response response = api.updateFeedPost(tenantId, id, feedPost) + APIEmptyResponse response = api.updateFeedPost(tenantId, id, feedPost) .execute(); // TODO: test validations } @@ -1715,7 +1723,7 @@ public void updateModeratorTest() throws ApiException { String tenantId = null; String id = null; UpdateModeratorBody updateModeratorBody = null; - FlagCommentPublic200Response response = api.updateModerator(tenantId, id, updateModeratorBody) + APIEmptyResponse response = api.updateModerator(tenantId, id, updateModeratorBody) .execute(); // TODO: test validations } @@ -1729,7 +1737,7 @@ public void updateNotificationTest() throws ApiException { String id = null; UpdateNotificationBody updateNotificationBody = null; String userId = null; - FlagCommentPublic200Response response = api.updateNotification(tenantId, id, updateNotificationBody) + APIEmptyResponse response = api.updateNotification(tenantId, id, updateNotificationBody) .userId(userId) .execute(); // TODO: test validations @@ -1743,7 +1751,7 @@ public void updateQuestionConfigTest() throws ApiException { String tenantId = null; String id = null; UpdateQuestionConfigBody updateQuestionConfigBody = null; - FlagCommentPublic200Response response = api.updateQuestionConfig(tenantId, id, updateQuestionConfigBody) + APIEmptyResponse response = api.updateQuestionConfig(tenantId, id, updateQuestionConfigBody) .execute(); // TODO: test validations } @@ -1756,7 +1764,7 @@ public void updateQuestionResultTest() throws ApiException { String tenantId = null; String id = null; UpdateQuestionResultBody updateQuestionResultBody = null; - FlagCommentPublic200Response response = api.updateQuestionResult(tenantId, id, updateQuestionResultBody) + APIEmptyResponse response = api.updateQuestionResult(tenantId, id, updateQuestionResultBody) .execute(); // TODO: test validations } @@ -1784,7 +1792,7 @@ public void updateTenantTest() throws ApiException { String tenantId = null; String id = null; UpdateTenantBody updateTenantBody = null; - FlagCommentPublic200Response response = api.updateTenant(tenantId, id, updateTenantBody) + APIEmptyResponse response = api.updateTenant(tenantId, id, updateTenantBody) .execute(); // TODO: test validations } @@ -1797,7 +1805,7 @@ public void updateTenantPackageTest() throws ApiException { String tenantId = null; String id = null; UpdateTenantPackageBody updateTenantPackageBody = null; - FlagCommentPublic200Response response = api.updateTenantPackage(tenantId, id, updateTenantPackageBody) + APIEmptyResponse response = api.updateTenantPackage(tenantId, id, updateTenantPackageBody) .execute(); // TODO: test validations } @@ -1811,7 +1819,7 @@ public void updateTenantUserTest() throws ApiException { String id = null; UpdateTenantUserBody updateTenantUserBody = null; String updateComments = null; - FlagCommentPublic200Response response = api.updateTenantUser(tenantId, id, updateTenantUserBody) + APIEmptyResponse response = api.updateTenantUser(tenantId, id, updateTenantUserBody) .updateComments(updateComments) .execute(); // TODO: test validations @@ -1825,7 +1833,7 @@ public void updateUserBadgeTest() throws ApiException { String tenantId = null; String id = null; UpdateUserBadgeParams updateUserBadgeParams = null; - UpdateUserBadge200Response response = api.updateUserBadge(tenantId, id, updateUserBadgeParams) + APIEmptySuccessResponse response = api.updateUserBadge(tenantId, id, updateUserBadgeParams) .execute(); // TODO: test validations } diff --git a/client/src/test/java/com/fastcomments/api/ModerationApiTest.java b/client/src/test/java/com/fastcomments/api/ModerationApiTest.java new file mode 100644 index 00000000..2ae109ff --- /dev/null +++ b/client/src/test/java/com/fastcomments/api/ModerationApiTest.java @@ -0,0 +1,749 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.api; + +import com.fastcomments.invoker.ApiException; +import com.fastcomments.model.APIEmptyResponse; +import com.fastcomments.model.APIError; +import com.fastcomments.model.APIModerateGetUserBanPreferencesResponse; +import com.fastcomments.model.AdjustCommentVotesParams; +import com.fastcomments.model.AdjustVotesResponse; +import com.fastcomments.model.AwardUserBadgeResponse; +import com.fastcomments.model.BanUserFromCommentResult; +import com.fastcomments.model.BanUserUndoParams; +import com.fastcomments.model.BulkPreBanParams; +import com.fastcomments.model.BulkPreBanSummary; +import com.fastcomments.model.CommentsByIdsParams; +import com.fastcomments.model.GetBannedUsersCountResponse; +import com.fastcomments.model.GetBannedUsersFromCommentResponse; +import com.fastcomments.model.GetCommentBanStatusResponse; +import com.fastcomments.model.GetCommentTextResponse; +import com.fastcomments.model.GetTenantManualBadgesResponse; +import com.fastcomments.model.GetUserInternalProfileResponse; +import com.fastcomments.model.GetUserManualBadgesResponse; +import com.fastcomments.model.GetUserTrustFactorResponse; +import com.fastcomments.model.ModerationAPIChildCommentsResponse; +import com.fastcomments.model.ModerationAPICommentResponse; +import com.fastcomments.model.ModerationAPICountCommentsResponse; +import com.fastcomments.model.ModerationAPIGetCommentIdsResponse; +import com.fastcomments.model.ModerationAPIGetCommentsResponse; +import com.fastcomments.model.ModerationAPIGetLogsResponse; +import com.fastcomments.model.ModerationCommentSearchResponse; +import com.fastcomments.model.ModerationExportResponse; +import com.fastcomments.model.ModerationExportStatusResponse; +import com.fastcomments.model.ModerationPageSearchResponse; +import com.fastcomments.model.ModerationSiteSearchResponse; +import com.fastcomments.model.ModerationSuggestResponse; +import com.fastcomments.model.ModerationUserSearchResponse; +import com.fastcomments.model.PostRemoveCommentResponse; +import com.fastcomments.model.PreBanSummary; +import com.fastcomments.model.RemoveUserBadgeResponse; +import com.fastcomments.model.SetCommentApprovedResponse; +import com.fastcomments.model.SetCommentTextParams; +import com.fastcomments.model.SetCommentTextResponse; +import com.fastcomments.model.SetUserTrustFactorResponse; +import com.fastcomments.model.VoteDeleteResponse; +import com.fastcomments.model.VoteResponse; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ModerationApi + */ +@Disabled +public class ModerationApiTest { + + private final ModerationApi api = new ModerationApi(); + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void deleteModerationVoteTest() throws ApiException { + String commentId = null; + String voteId = null; + String sso = null; + VoteDeleteResponse response = api.deleteModerationVote(commentId, voteId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getApiCommentsTest() throws ApiException { + Double page = null; + Double count = null; + String textSearch = null; + String byIPFromComment = null; + String filters = null; + String searchFilters = null; + String sorts = null; + Boolean demo = null; + String sso = null; + ModerationAPIGetCommentsResponse response = api.getApiComments() + .page(page) + .count(count) + .textSearch(textSearch) + .byIPFromComment(byIPFromComment) + .filters(filters) + .searchFilters(searchFilters) + .sorts(sorts) + .demo(demo) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getApiExportStatusTest() throws ApiException { + String batchJobId = null; + String sso = null; + ModerationExportStatusResponse response = api.getApiExportStatus() + .batchJobId(batchJobId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getApiIdsTest() throws ApiException { + String textSearch = null; + String byIPFromComment = null; + String filters = null; + String searchFilters = null; + String afterId = null; + Boolean demo = null; + String sso = null; + ModerationAPIGetCommentIdsResponse response = api.getApiIds() + .textSearch(textSearch) + .byIPFromComment(byIPFromComment) + .filters(filters) + .searchFilters(searchFilters) + .afterId(afterId) + .demo(demo) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getBanUsersFromCommentTest() throws ApiException { + String commentId = null; + String sso = null; + GetBannedUsersFromCommentResponse response = api.getBanUsersFromComment(commentId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getCommentBanStatusTest() throws ApiException { + String commentId = null; + String sso = null; + GetCommentBanStatusResponse response = api.getCommentBanStatus(commentId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getCommentChildrenTest() throws ApiException { + String commentId = null; + String sso = null; + ModerationAPIChildCommentsResponse response = api.getCommentChildren(commentId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getCountTest() throws ApiException { + String textSearch = null; + String byIPFromComment = null; + String filter = null; + String searchFilters = null; + Boolean demo = null; + String sso = null; + ModerationAPICountCommentsResponse response = api.getCount() + .textSearch(textSearch) + .byIPFromComment(byIPFromComment) + .filter(filter) + .searchFilters(searchFilters) + .demo(demo) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getCountsTest() throws ApiException { + String sso = null; + GetBannedUsersCountResponse response = api.getCounts() + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getLogsTest() throws ApiException { + String commentId = null; + String sso = null; + ModerationAPIGetLogsResponse response = api.getLogs(commentId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getManualBadgesTest() throws ApiException { + String sso = null; + GetTenantManualBadgesResponse response = api.getManualBadges() + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getManualBadgesForUserTest() throws ApiException { + String badgesUserId = null; + String commentId = null; + String sso = null; + GetUserManualBadgesResponse response = api.getManualBadgesForUser() + .badgesUserId(badgesUserId) + .commentId(commentId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getModerationCommentTest() throws ApiException { + String commentId = null; + Boolean includeEmail = null; + Boolean includeIP = null; + String sso = null; + ModerationAPICommentResponse response = api.getModerationComment(commentId) + .includeEmail(includeEmail) + .includeIP(includeIP) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getModerationCommentTextTest() throws ApiException { + String commentId = null; + String sso = null; + GetCommentTextResponse response = api.getModerationCommentText(commentId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getPreBanSummaryTest() throws ApiException { + String commentId = null; + Boolean includeByUserIdAndEmail = null; + Boolean includeByIP = null; + Boolean includeByEmailDomain = null; + String sso = null; + PreBanSummary response = api.getPreBanSummary(commentId) + .includeByUserIdAndEmail(includeByUserIdAndEmail) + .includeByIP(includeByIP) + .includeByEmailDomain(includeByEmailDomain) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getSearchCommentsSummaryTest() throws ApiException { + String value = null; + String filters = null; + String searchFilters = null; + String sso = null; + ModerationCommentSearchResponse response = api.getSearchCommentsSummary() + .value(value) + .filters(filters) + .searchFilters(searchFilters) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getSearchPagesTest() throws ApiException { + String value = null; + String sso = null; + ModerationPageSearchResponse response = api.getSearchPages() + .value(value) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getSearchSitesTest() throws ApiException { + String value = null; + String sso = null; + ModerationSiteSearchResponse response = api.getSearchSites() + .value(value) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getSearchSuggestTest() throws ApiException { + String textSearch = null; + String sso = null; + ModerationSuggestResponse response = api.getSearchSuggest() + .textSearch(textSearch) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getSearchUsersTest() throws ApiException { + String value = null; + String sso = null; + ModerationUserSearchResponse response = api.getSearchUsers() + .value(value) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getTrustFactorTest() throws ApiException { + String userId = null; + String sso = null; + GetUserTrustFactorResponse response = api.getTrustFactor() + .userId(userId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getUserBanPreferenceTest() throws ApiException { + String sso = null; + APIModerateGetUserBanPreferencesResponse response = api.getUserBanPreference() + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getUserInternalProfileTest() throws ApiException { + String commentId = null; + String sso = null; + GetUserInternalProfileResponse response = api.getUserInternalProfile() + .commentId(commentId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void postAdjustCommentVotesTest() throws ApiException { + String commentId = null; + AdjustCommentVotesParams adjustCommentVotesParams = null; + String sso = null; + AdjustVotesResponse response = api.postAdjustCommentVotes(commentId, adjustCommentVotesParams) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void postApiExportTest() throws ApiException { + String textSearch = null; + String byIPFromComment = null; + String filters = null; + String searchFilters = null; + String sorts = null; + String sso = null; + ModerationExportResponse response = api.postApiExport() + .textSearch(textSearch) + .byIPFromComment(byIPFromComment) + .filters(filters) + .searchFilters(searchFilters) + .sorts(sorts) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void postBanUserFromCommentTest() throws ApiException { + String commentId = null; + Boolean banEmail = null; + Boolean banEmailDomain = null; + Boolean banIP = null; + Boolean deleteAllUsersComments = null; + String bannedUntil = null; + Boolean isShadowBan = null; + String updateId = null; + String banReason = null; + String sso = null; + BanUserFromCommentResult response = api.postBanUserFromComment(commentId) + .banEmail(banEmail) + .banEmailDomain(banEmailDomain) + .banIP(banIP) + .deleteAllUsersComments(deleteAllUsersComments) + .bannedUntil(bannedUntil) + .isShadowBan(isShadowBan) + .updateId(updateId) + .banReason(banReason) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void postBanUserUndoTest() throws ApiException { + BanUserUndoParams banUserUndoParams = null; + String sso = null; + APIEmptyResponse response = api.postBanUserUndo(banUserUndoParams) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void postBulkPreBanSummaryTest() throws ApiException { + BulkPreBanParams bulkPreBanParams = null; + Boolean includeByUserIdAndEmail = null; + Boolean includeByIP = null; + Boolean includeByEmailDomain = null; + String sso = null; + BulkPreBanSummary response = api.postBulkPreBanSummary(bulkPreBanParams) + .includeByUserIdAndEmail(includeByUserIdAndEmail) + .includeByIP(includeByIP) + .includeByEmailDomain(includeByEmailDomain) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void postCommentsByIdsTest() throws ApiException { + CommentsByIdsParams commentsByIdsParams = null; + String sso = null; + ModerationAPIChildCommentsResponse response = api.postCommentsByIds(commentsByIdsParams) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void postFlagCommentTest() throws ApiException { + String commentId = null; + String sso = null; + APIEmptyResponse response = api.postFlagComment(commentId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void postRemoveCommentTest() throws ApiException { + String commentId = null; + String sso = null; + PostRemoveCommentResponse response = api.postRemoveComment(commentId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void postRestoreDeletedCommentTest() throws ApiException { + String commentId = null; + String sso = null; + APIEmptyResponse response = api.postRestoreDeletedComment(commentId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void postSetCommentApprovalStatusTest() throws ApiException { + String commentId = null; + Boolean approved = null; + String sso = null; + SetCommentApprovedResponse response = api.postSetCommentApprovalStatus(commentId) + .approved(approved) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void postSetCommentReviewStatusTest() throws ApiException { + String commentId = null; + Boolean reviewed = null; + String sso = null; + APIEmptyResponse response = api.postSetCommentReviewStatus(commentId) + .reviewed(reviewed) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void postSetCommentSpamStatusTest() throws ApiException { + String commentId = null; + Boolean spam = null; + Boolean permNotSpam = null; + String sso = null; + APIEmptyResponse response = api.postSetCommentSpamStatus(commentId) + .spam(spam) + .permNotSpam(permNotSpam) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void postSetCommentTextTest() throws ApiException { + String commentId = null; + SetCommentTextParams setCommentTextParams = null; + String sso = null; + SetCommentTextResponse response = api.postSetCommentText(commentId, setCommentTextParams) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void postUnFlagCommentTest() throws ApiException { + String commentId = null; + String sso = null; + APIEmptyResponse response = api.postUnFlagComment(commentId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void postVoteTest() throws ApiException { + String commentId = null; + String direction = null; + String sso = null; + VoteResponse response = api.postVote(commentId) + .direction(direction) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void putAwardBadgeTest() throws ApiException { + String badgeId = null; + String userId = null; + String commentId = null; + String broadcastId = null; + String sso = null; + AwardUserBadgeResponse response = api.putAwardBadge(badgeId) + .userId(userId) + .commentId(commentId) + .broadcastId(broadcastId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void putCloseThreadTest() throws ApiException { + String urlId = null; + String sso = null; + APIEmptyResponse response = api.putCloseThread(urlId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void putRemoveBadgeTest() throws ApiException { + String badgeId = null; + String userId = null; + String commentId = null; + String broadcastId = null; + String sso = null; + RemoveUserBadgeResponse response = api.putRemoveBadge(badgeId) + .userId(userId) + .commentId(commentId) + .broadcastId(broadcastId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void putReopenThreadTest() throws ApiException { + String urlId = null; + String sso = null; + APIEmptyResponse response = api.putReopenThread(urlId) + .sso(sso) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void setTrustFactorTest() throws ApiException { + String userId = null; + String trustFactor = null; + String sso = null; + SetUserTrustFactorResponse response = api.setTrustFactor() + .userId(userId) + .trustFactor(trustFactor) + .sso(sso) + .execute(); + // TODO: test validations + } + +} diff --git a/client/src/test/java/com/fastcomments/api/PublicApiTest.java b/client/src/test/java/com/fastcomments/api/PublicApiTest.java index 7c49e1de..05eb90e0 100644 --- a/client/src/test/java/com/fastcomments/api/PublicApiTest.java +++ b/client/src/test/java/com/fastcomments/api/PublicApiTest.java @@ -14,45 +14,60 @@ package com.fastcomments.api; import com.fastcomments.invoker.ApiException; +import com.fastcomments.model.APIEmptyResponse; import com.fastcomments.model.APIError; -import com.fastcomments.model.BlockFromCommentPublic200Response; -import com.fastcomments.model.CheckedCommentsForBlocked200Response; +import com.fastcomments.model.BlockSuccess; +import com.fastcomments.model.ChangeCommentPinStatusResponse; +import com.fastcomments.model.CheckBlockedCommentsResponse; import com.fastcomments.model.CommentData; import com.fastcomments.model.CommentTextUpdateRequest; -import com.fastcomments.model.CreateCommentPublic200Response; import com.fastcomments.model.CreateFeedPostParams; -import com.fastcomments.model.CreateFeedPostPublic200Response; -import com.fastcomments.model.DeleteCommentPublic200Response; -import com.fastcomments.model.DeleteCommentVote200Response; -import com.fastcomments.model.DeleteFeedPostPublic200Response; +import com.fastcomments.model.CreateFeedPostResponse; +import com.fastcomments.model.CreateV1PageReact; +import com.fastcomments.model.DeleteFeedPostPublicResponse; +import com.fastcomments.model.FeedPostsStatsResponse; import java.io.File; -import com.fastcomments.model.FlagCommentPublic200Response; -import com.fastcomments.model.GetCommentText200Response; -import com.fastcomments.model.GetCommentVoteUserNames200Response; -import com.fastcomments.model.GetCommentsPublic200Response; -import com.fastcomments.model.GetEventLog200Response; -import com.fastcomments.model.GetFeedPostsPublic200Response; -import com.fastcomments.model.GetFeedPostsStats200Response; -import com.fastcomments.model.GetUserNotificationCount200Response; -import com.fastcomments.model.GetUserNotifications200Response; -import com.fastcomments.model.GetUserPresenceStatuses200Response; -import com.fastcomments.model.GetUserReactsPublic200Response; -import com.fastcomments.model.LockComment200Response; -import com.fastcomments.model.PinComment200Response; +import com.fastcomments.model.GetCommentVoteUserNamesSuccessResponse; +import com.fastcomments.model.GetCommentsForUserResponse; +import com.fastcomments.model.GetCommentsResponseWithPresencePublicComment; +import com.fastcomments.model.GetEventLogResponse; +import com.fastcomments.model.GetGifsSearchResponse; +import com.fastcomments.model.GetGifsTrendingResponse; +import com.fastcomments.model.GetMyNotificationsResponse; +import com.fastcomments.model.GetPublicPagesResponse; +import com.fastcomments.model.GetTranslationsResponse; +import com.fastcomments.model.GetUserNotificationCountResponse; +import com.fastcomments.model.GetUserPresenceStatusesResponse; +import com.fastcomments.model.GetV1PageLikes; +import com.fastcomments.model.GetV2PageReactUsersResponse; +import com.fastcomments.model.GetV2PageReacts; +import com.fastcomments.model.GifGetLargeResponse; +import com.fastcomments.model.PageUsersInfoResponse; +import com.fastcomments.model.PageUsersOfflineResponse; +import com.fastcomments.model.PageUsersOnlineResponse; +import com.fastcomments.model.PagesSortBy; +import com.fastcomments.model.PublicAPIDeleteCommentResponse; +import com.fastcomments.model.PublicAPIGetCommentTextResponse; +import com.fastcomments.model.PublicAPISetCommentTextResponse; import com.fastcomments.model.PublicBlockFromCommentParams; +import com.fastcomments.model.PublicFeedPostsResponse; import com.fastcomments.model.ReactBodyParams; -import com.fastcomments.model.ReactFeedPostPublic200Response; -import com.fastcomments.model.ResetUserNotifications200Response; -import com.fastcomments.model.SearchUsers200Response; -import com.fastcomments.model.SetCommentText200Response; +import com.fastcomments.model.ReactFeedPostResponse; +import com.fastcomments.model.ResetUserNotificationsResponse; +import com.fastcomments.model.SaveCommentsResponseWithPresence; +import com.fastcomments.model.SearchUsersResult; import com.fastcomments.model.SizePreset; import com.fastcomments.model.SortDirections; -import com.fastcomments.model.UnBlockCommentPublic200Response; +import com.fastcomments.model.UnblockSuccess; import com.fastcomments.model.UpdateFeedPostParams; -import com.fastcomments.model.UpdateUserNotificationStatus200Response; +import com.fastcomments.model.UpdateUserNotificationCommentSubscriptionStatusResponse; +import com.fastcomments.model.UpdateUserNotificationPageSubscriptionStatusResponse; +import com.fastcomments.model.UpdateUserNotificationStatusResponse; import com.fastcomments.model.UploadImageResponse; +import com.fastcomments.model.UserReactsResponse; import com.fastcomments.model.VoteBodyParams; -import com.fastcomments.model.VoteComment200Response; +import com.fastcomments.model.VoteDeleteResponse; +import com.fastcomments.model.VoteResponse; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -78,7 +93,7 @@ public void blockFromCommentPublicTest() throws ApiException { String commentId = null; PublicBlockFromCommentParams publicBlockFromCommentParams = null; String sso = null; - BlockFromCommentPublic200Response response = api.blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams) + BlockSuccess response = api.blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams) .sso(sso) .execute(); // TODO: test validations @@ -92,7 +107,7 @@ public void checkedCommentsForBlockedTest() throws ApiException { String tenantId = null; String commentIds = null; String sso = null; - CheckedCommentsForBlocked200Response response = api.checkedCommentsForBlocked(tenantId, commentIds) + CheckBlockedCommentsResponse response = api.checkedCommentsForBlocked(tenantId, commentIds) .sso(sso) .execute(); // TODO: test validations @@ -109,7 +124,7 @@ public void createCommentPublicTest() throws ApiException { CommentData commentData = null; String sessionId = null; String sso = null; - CreateCommentPublic200Response response = api.createCommentPublic(tenantId, urlId, broadcastId, commentData) + SaveCommentsResponseWithPresence response = api.createCommentPublic(tenantId, urlId, broadcastId, commentData) .sessionId(sessionId) .sso(sso) .execute(); @@ -125,13 +140,42 @@ public void createFeedPostPublicTest() throws ApiException { CreateFeedPostParams createFeedPostParams = null; String broadcastId = null; String sso = null; - CreateFeedPostPublic200Response response = api.createFeedPostPublic(tenantId, createFeedPostParams) + CreateFeedPostResponse response = api.createFeedPostPublic(tenantId, createFeedPostParams) .broadcastId(broadcastId) .sso(sso) .execute(); // TODO: test validations } + /** + * @throws ApiException if the Api call fails + */ + @Test + public void createV1PageReactTest() throws ApiException { + String tenantId = null; + String urlId = null; + String title = null; + CreateV1PageReact response = api.createV1PageReact(tenantId, urlId) + .title(title) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void createV2PageReactTest() throws ApiException { + String tenantId = null; + String urlId = null; + String id = null; + String title = null; + CreateV1PageReact response = api.createV2PageReact(tenantId, urlId, id) + .title(title) + .execute(); + // TODO: test validations + } + /** * @throws ApiException if the Api call fails */ @@ -142,7 +186,7 @@ public void deleteCommentPublicTest() throws ApiException { String broadcastId = null; String editKey = null; String sso = null; - DeleteCommentPublic200Response response = api.deleteCommentPublic(tenantId, commentId, broadcastId) + PublicAPIDeleteCommentResponse response = api.deleteCommentPublic(tenantId, commentId, broadcastId) .editKey(editKey) .sso(sso) .execute(); @@ -161,7 +205,7 @@ public void deleteCommentVoteTest() throws ApiException { String broadcastId = null; String editKey = null; String sso = null; - DeleteCommentVote200Response response = api.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId) + VoteDeleteResponse response = api.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId) .editKey(editKey) .sso(sso) .execute(); @@ -177,13 +221,38 @@ public void deleteFeedPostPublicTest() throws ApiException { String postId = null; String broadcastId = null; String sso = null; - DeleteFeedPostPublic200Response response = api.deleteFeedPostPublic(tenantId, postId) + DeleteFeedPostPublicResponse response = api.deleteFeedPostPublic(tenantId, postId) .broadcastId(broadcastId) .sso(sso) .execute(); // TODO: test validations } + /** + * @throws ApiException if the Api call fails + */ + @Test + public void deleteV1PageReactTest() throws ApiException { + String tenantId = null; + String urlId = null; + CreateV1PageReact response = api.deleteV1PageReact(tenantId, urlId) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void deleteV2PageReactTest() throws ApiException { + String tenantId = null; + String urlId = null; + String id = null; + CreateV1PageReact response = api.deleteV2PageReact(tenantId, urlId, id) + .execute(); + // TODO: test validations + } + /** * @throws ApiException if the Api call fails */ @@ -193,7 +262,7 @@ public void flagCommentPublicTest() throws ApiException { String commentId = null; Boolean isFlagged = null; String sso = null; - FlagCommentPublic200Response response = api.flagCommentPublic(tenantId, commentId, isFlagged) + APIEmptyResponse response = api.flagCommentPublic(tenantId, commentId, isFlagged) .sso(sso) .execute(); // TODO: test validations @@ -208,7 +277,7 @@ public void getCommentTextTest() throws ApiException { String commentId = null; String editKey = null; String sso = null; - GetCommentText200Response response = api.getCommentText(tenantId, commentId) + PublicAPIGetCommentTextResponse response = api.getCommentText(tenantId, commentId) .editKey(editKey) .sso(sso) .execute(); @@ -224,12 +293,36 @@ public void getCommentVoteUserNamesTest() throws ApiException { String commentId = null; Integer dir = null; String sso = null; - GetCommentVoteUserNames200Response response = api.getCommentVoteUserNames(tenantId, commentId, dir) + GetCommentVoteUserNamesSuccessResponse response = api.getCommentVoteUserNames(tenantId, commentId, dir) .sso(sso) .execute(); // TODO: test validations } + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getCommentsForUserTest() throws ApiException { + String userId = null; + SortDirections direction = null; + String repliesToUserId = null; + Double page = null; + Boolean includei10n = null; + String locale = null; + Boolean isCrawler = null; + GetCommentsForUserResponse response = api.getCommentsForUser() + .userId(userId) + .direction(direction) + .repliesToUserId(repliesToUserId) + .page(page) + .includei10n(includei10n) + .locale(locale) + .isCrawler(isCrawler) + .execute(); + // TODO: test validations + } + /** * req tenantId urlId * @@ -265,7 +358,7 @@ public void getCommentsPublicTest() throws ApiException { String customConfigStr = null; String afterCommentId = null; String beforeCommentId = null; - GetCommentsPublic200Response response = api.getCommentsPublic(tenantId, urlId) + GetCommentsResponseWithPresencePublicComment response = api.getCommentsPublic(tenantId, urlId) .page(page) .direction(direction) .sso(sso) @@ -308,7 +401,8 @@ public void getEventLogTest() throws ApiException { String userIdWS = null; Long startTime = null; Long endTime = null; - GetEventLog200Response response = api.getEventLog(tenantId, urlId, userIdWS, startTime, endTime) + GetEventLogResponse response = api.getEventLog(tenantId, urlId, userIdWS, startTime) + .endTime(endTime) .execute(); // TODO: test validations } @@ -327,7 +421,7 @@ public void getFeedPostsPublicTest() throws ApiException { String sso = null; Boolean isCrawler = null; Boolean includeUserInfo = null; - GetFeedPostsPublic200Response response = api.getFeedPostsPublic(tenantId) + PublicFeedPostsResponse response = api.getFeedPostsPublic(tenantId) .afterId(afterId) .limit(limit) .tags(tags) @@ -346,12 +440,59 @@ public void getFeedPostsStatsTest() throws ApiException { String tenantId = null; List postIds = null; String sso = null; - GetFeedPostsStats200Response response = api.getFeedPostsStats(tenantId, postIds) + FeedPostsStatsResponse response = api.getFeedPostsStats(tenantId, postIds) .sso(sso) .execute(); // TODO: test validations } + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getGifLargeTest() throws ApiException { + String tenantId = null; + String largeInternalURLSanitized = null; + GifGetLargeResponse response = api.getGifLarge(tenantId, largeInternalURLSanitized) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getGifsSearchTest() throws ApiException { + String tenantId = null; + String search = null; + String locale = null; + String rating = null; + Double page = null; + GetGifsSearchResponse response = api.getGifsSearch(tenantId, search) + .locale(locale) + .rating(rating) + .page(page) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getGifsTrendingTest() throws ApiException { + String tenantId = null; + String locale = null; + String rating = null; + Double page = null; + GetGifsTrendingResponse response = api.getGifsTrending(tenantId) + .locale(locale) + .rating(rating) + .page(page) + .execute(); + // TODO: test validations + } + /** * req tenantId urlId userIdWS * @@ -364,7 +505,83 @@ public void getGlobalEventLogTest() throws ApiException { String userIdWS = null; Long startTime = null; Long endTime = null; - GetEventLog200Response response = api.getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime) + GetEventLogResponse response = api.getGlobalEventLog(tenantId, urlId, userIdWS, startTime) + .endTime(endTime) + .execute(); + // TODO: test validations + } + + /** + * 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. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOfflineUsersTest() throws ApiException { + String tenantId = null; + String urlId = null; + String afterName = null; + String afterUserId = null; + PageUsersOfflineResponse response = api.getOfflineUsers(tenantId, urlId) + .afterName(afterName) + .afterUserId(afterUserId) + .execute(); + // TODO: test validations + } + + /** + * 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). + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOnlineUsersTest() throws ApiException { + String tenantId = null; + String urlId = null; + String afterName = null; + String afterUserId = null; + PageUsersOnlineResponse response = api.getOnlineUsers(tenantId, urlId) + .afterName(afterName) + .afterUserId(afterUserId) + .execute(); + // TODO: test validations + } + + /** + * 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. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getPagesPublicTest() throws ApiException { + String tenantId = null; + String cursor = null; + Integer limit = null; + String q = null; + PagesSortBy sortBy = null; + Boolean hasComments = null; + GetPublicPagesResponse response = api.getPagesPublic(tenantId) + .cursor(cursor) + .limit(limit) + .q(q) + .sortBy(sortBy) + .hasComments(hasComments) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getTranslationsTest() throws ApiException { + String namespace = null; + String component = null; + String locale = null; + Boolean useFullTranslationIds = null; + GetTranslationsResponse response = api.getTranslations(namespace, component) + .locale(locale) + .useFullTranslationIds(useFullTranslationIds) .execute(); // TODO: test validations } @@ -376,7 +593,7 @@ public void getGlobalEventLogTest() throws ApiException { public void getUserNotificationCountTest() throws ApiException { String tenantId = null; String sso = null; - GetUserNotificationCount200Response response = api.getUserNotificationCount(tenantId) + GetUserNotificationCountResponse response = api.getUserNotificationCount(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -388,6 +605,7 @@ public void getUserNotificationCountTest() throws ApiException { @Test public void getUserNotificationsTest() throws ApiException { String tenantId = null; + String urlId = null; Integer pageSize = null; String afterId = null; Boolean includeContext = null; @@ -396,8 +614,10 @@ public void getUserNotificationsTest() throws ApiException { Boolean dmOnly = null; Boolean noDm = null; Boolean includeTranslations = null; + Boolean includeTenantNotifications = null; String sso = null; - GetUserNotifications200Response response = api.getUserNotifications(tenantId) + GetMyNotificationsResponse response = api.getUserNotifications(tenantId) + .urlId(urlId) .pageSize(pageSize) .afterId(afterId) .includeContext(includeContext) @@ -406,6 +626,7 @@ public void getUserNotificationsTest() throws ApiException { .dmOnly(dmOnly) .noDm(noDm) .includeTranslations(includeTranslations) + .includeTenantNotifications(includeTenantNotifications) .sso(sso) .execute(); // TODO: test validations @@ -419,7 +640,7 @@ public void getUserPresenceStatusesTest() throws ApiException { String tenantId = null; String urlIdWS = null; String userIds = null; - GetUserPresenceStatuses200Response response = api.getUserPresenceStatuses(tenantId, urlIdWS, userIds) + GetUserPresenceStatusesResponse response = api.getUserPresenceStatuses(tenantId, urlIdWS, userIds) .execute(); // TODO: test validations } @@ -432,13 +653,64 @@ public void getUserReactsPublicTest() throws ApiException { String tenantId = null; List postIds = null; String sso = null; - GetUserReactsPublic200Response response = api.getUserReactsPublic(tenantId) + UserReactsResponse response = api.getUserReactsPublic(tenantId) .postIds(postIds) .sso(sso) .execute(); // TODO: test validations } + /** + * 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). + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUsersInfoTest() throws ApiException { + String tenantId = null; + String ids = null; + PageUsersInfoResponse response = api.getUsersInfo(tenantId, ids) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getV1PageLikesTest() throws ApiException { + String tenantId = null; + String urlId = null; + GetV1PageLikes response = api.getV1PageLikes(tenantId, urlId) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getV2PageReactUsersTest() throws ApiException { + String tenantId = null; + String urlId = null; + String id = null; + GetV2PageReactUsersResponse response = api.getV2PageReactUsers(tenantId, urlId, id) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getV2PageReactsTest() throws ApiException { + String tenantId = null; + String urlId = null; + GetV2PageReacts response = api.getV2PageReacts(tenantId, urlId) + .execute(); + // TODO: test validations + } + /** * @throws ApiException if the Api call fails */ @@ -448,12 +720,22 @@ public void lockCommentTest() throws ApiException { String commentId = null; String broadcastId = null; String sso = null; - LockComment200Response response = api.lockComment(tenantId, commentId, broadcastId) + APIEmptyResponse response = api.lockComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); // TODO: test validations } + /** + * @throws ApiException if the Api call fails + */ + @Test + public void logoutPublicTest() throws ApiException { + APIEmptyResponse response = api.logoutPublic() + .execute(); + // TODO: test validations + } + /** * @throws ApiException if the Api call fails */ @@ -463,7 +745,7 @@ public void pinCommentTest() throws ApiException { String commentId = null; String broadcastId = null; String sso = null; - PinComment200Response response = api.pinComment(tenantId, commentId, broadcastId) + ChangeCommentPinStatusResponse response = api.pinComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -480,7 +762,7 @@ public void reactFeedPostPublicTest() throws ApiException { Boolean isUndo = null; String broadcastId = null; String sso = null; - ReactFeedPostPublic200Response response = api.reactFeedPostPublic(tenantId, postId, reactBodyParams) + ReactFeedPostResponse response = api.reactFeedPostPublic(tenantId, postId, reactBodyParams) .isUndo(isUndo) .broadcastId(broadcastId) .sso(sso) @@ -495,7 +777,7 @@ public void reactFeedPostPublicTest() throws ApiException { public void resetUserNotificationCountTest() throws ApiException { String tenantId = null; String sso = null; - ResetUserNotifications200Response response = api.resetUserNotificationCount(tenantId) + ResetUserNotificationsResponse response = api.resetUserNotificationCount(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -513,7 +795,7 @@ public void resetUserNotificationsTest() throws ApiException { Boolean dmOnly = null; Boolean noDm = null; String sso = null; - ResetUserNotifications200Response response = api.resetUserNotifications(tenantId) + ResetUserNotificationsResponse response = api.resetUserNotifications(tenantId) .afterId(afterId) .afterCreatedAt(afterCreatedAt) .unreadOnly(unreadOnly) @@ -535,7 +817,7 @@ public void searchUsersTest() throws ApiException { List mentionGroupIds = null; String sso = null; String searchSection = null; - SearchUsers200Response response = api.searchUsers(tenantId, urlId) + SearchUsersResult response = api.searchUsers(tenantId, urlId) .usernameStartsWith(usernameStartsWith) .mentionGroupIds(mentionGroupIds) .sso(sso) @@ -555,7 +837,7 @@ public void setCommentTextTest() throws ApiException { CommentTextUpdateRequest commentTextUpdateRequest = null; String editKey = null; String sso = null; - SetCommentText200Response response = api.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest) + PublicAPISetCommentTextResponse response = api.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest) .editKey(editKey) .sso(sso) .execute(); @@ -571,7 +853,7 @@ public void unBlockCommentPublicTest() throws ApiException { String commentId = null; PublicBlockFromCommentParams publicBlockFromCommentParams = null; String sso = null; - UnBlockCommentPublic200Response response = api.unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams) + UnblockSuccess response = api.unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams) .sso(sso) .execute(); // TODO: test validations @@ -586,7 +868,7 @@ public void unLockCommentTest() throws ApiException { String commentId = null; String broadcastId = null; String sso = null; - LockComment200Response response = api.unLockComment(tenantId, commentId, broadcastId) + APIEmptyResponse response = api.unLockComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -601,7 +883,7 @@ public void unPinCommentTest() throws ApiException { String commentId = null; String broadcastId = null; String sso = null; - PinComment200Response response = api.unPinComment(tenantId, commentId, broadcastId) + ChangeCommentPinStatusResponse response = api.unPinComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -617,7 +899,7 @@ public void updateFeedPostPublicTest() throws ApiException { UpdateFeedPostParams updateFeedPostParams = null; String broadcastId = null; String sso = null; - CreateFeedPostPublic200Response response = api.updateFeedPostPublic(tenantId, postId, updateFeedPostParams) + CreateFeedPostResponse response = api.updateFeedPostPublic(tenantId, postId, updateFeedPostParams) .broadcastId(broadcastId) .sso(sso) .execute(); @@ -636,7 +918,7 @@ public void updateUserNotificationCommentSubscriptionStatusTest() throws ApiExce String optedInOrOut = null; String commentId = null; String sso = null; - UpdateUserNotificationStatus200Response response = api.updateUserNotificationCommentSubscriptionStatus(tenantId, notificationId, optedInOrOut, commentId) + UpdateUserNotificationCommentSubscriptionStatusResponse response = api.updateUserNotificationCommentSubscriptionStatus(tenantId, notificationId, optedInOrOut, commentId) .sso(sso) .execute(); // TODO: test validations @@ -655,7 +937,7 @@ public void updateUserNotificationPageSubscriptionStatusTest() throws ApiExcepti String pageTitle = null; String subscribedOrUnsubscribed = null; String sso = null; - UpdateUserNotificationStatus200Response response = api.updateUserNotificationPageSubscriptionStatus(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed) + UpdateUserNotificationPageSubscriptionStatusResponse response = api.updateUserNotificationPageSubscriptionStatus(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed) .sso(sso) .execute(); // TODO: test validations @@ -670,7 +952,7 @@ public void updateUserNotificationStatusTest() throws ApiException { String notificationId = null; String newStatus = null; String sso = null; - UpdateUserNotificationStatus200Response response = api.updateUserNotificationStatus(tenantId, notificationId, newStatus) + UpdateUserNotificationStatusResponse response = api.updateUserNotificationStatus(tenantId, notificationId, newStatus) .sso(sso) .execute(); // TODO: test validations @@ -706,7 +988,7 @@ public void voteCommentTest() throws ApiException { VoteBodyParams voteBodyParams = null; String sessionId = null; String sso = null; - VoteComment200Response response = api.voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams) + VoteResponse response = api.voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams) .sessionId(sessionId) .sso(sso) .execute(); diff --git a/client/src/test/java/com/fastcomments/model/APIBanUserChangeLogTest.java b/client/src/test/java/com/fastcomments/model/APIBanUserChangeLogTest.java new file mode 100644 index 00000000..9c1b48a8 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/APIBanUserChangeLogTest.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIBanUserChangedValues; +import com.fastcomments.model.APIBannedUser; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for APIBanUserChangeLog + */ +public class APIBanUserChangeLogTest { + private final APIBanUserChangeLog model = new APIBanUserChangeLog(); + + /** + * Model tests for APIBanUserChangeLog + */ + @Test + public void testAPIBanUserChangeLog() { + // TODO: test APIBanUserChangeLog + } + + /** + * Test the property 'createdBannedUserId' + */ + @Test + public void createdBannedUserIdTest() { + // TODO: test createdBannedUserId + } + + /** + * Test the property 'updatedBannedUserId' + */ + @Test + public void updatedBannedUserIdTest() { + // TODO: test updatedBannedUserId + } + + /** + * Test the property 'deletedBannedUsers' + */ + @Test + public void deletedBannedUsersTest() { + // TODO: test deletedBannedUsers + } + + /** + * Test the property 'changedValuesBefore' + */ + @Test + public void changedValuesBeforeTest() { + // TODO: test changedValuesBefore + } + +} diff --git a/client/src/test/java/com/fastcomments/model/APIBanUserChangedValuesTest.java b/client/src/test/java/com/fastcomments/model/APIBanUserChangedValuesTest.java new file mode 100644 index 00000000..a64e07e3 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/APIBanUserChangedValuesTest.java @@ -0,0 +1,145 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for APIBanUserChangedValues + */ +public class APIBanUserChangedValuesTest { + private final APIBanUserChangedValues model = new APIBanUserChangedValues(); + + /** + * Model tests for APIBanUserChangedValues + */ + @Test + public void testAPIBanUserChangedValues() { + // TODO: test APIBanUserChangedValues + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'tenantId' + */ + @Test + public void tenantIdTest() { + // TODO: test tenantId + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'ipHash' + */ + @Test + public void ipHashTest() { + // TODO: test ipHash + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'bannedByUserId' + */ + @Test + public void bannedByUserIdTest() { + // TODO: test bannedByUserId + } + + /** + * Test the property 'bannedCommentText' + */ + @Test + public void bannedCommentTextTest() { + // TODO: test bannedCommentText + } + + /** + * Test the property 'banType' + */ + @Test + public void banTypeTest() { + // TODO: test banType + } + + /** + * Test the property 'bannedUntil' + */ + @Test + public void bannedUntilTest() { + // TODO: test bannedUntil + } + + /** + * Test the property 'hasEmailWildcard' + */ + @Test + public void hasEmailWildcardTest() { + // TODO: test hasEmailWildcard + } + + /** + * Test the property 'banReason' + */ + @Test + public void banReasonTest() { + // TODO: test banReason + } + +} diff --git a/client/src/test/java/com/fastcomments/model/APIBannedUserTest.java b/client/src/test/java/com/fastcomments/model/APIBannedUserTest.java new file mode 100644 index 00000000..23bf18bc --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/APIBannedUserTest.java @@ -0,0 +1,145 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for APIBannedUser + */ +public class APIBannedUserTest { + private final APIBannedUser model = new APIBannedUser(); + + /** + * Model tests for APIBannedUser + */ + @Test + public void testAPIBannedUser() { + // TODO: test APIBannedUser + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'tenantId' + */ + @Test + public void tenantIdTest() { + // TODO: test tenantId + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'ipHash' + */ + @Test + public void ipHashTest() { + // TODO: test ipHash + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'bannedByUserId' + */ + @Test + public void bannedByUserIdTest() { + // TODO: test bannedByUserId + } + + /** + * Test the property 'bannedCommentText' + */ + @Test + public void bannedCommentTextTest() { + // TODO: test bannedCommentText + } + + /** + * Test the property 'banType' + */ + @Test + public void banTypeTest() { + // TODO: test banType + } + + /** + * Test the property 'bannedUntil' + */ + @Test + public void bannedUntilTest() { + // TODO: test bannedUntil + } + + /** + * Test the property 'hasEmailWildcard' + */ + @Test + public void hasEmailWildcardTest() { + // TODO: test hasEmailWildcard + } + + /** + * Test the property 'banReason' + */ + @Test + public void banReasonTest() { + // TODO: test banReason + } + +} diff --git a/client/src/test/java/com/fastcomments/model/APIBannedUserWithMultiMatchInfoTest.java b/client/src/test/java/com/fastcomments/model/APIBannedUserWithMultiMatchInfoTest.java new file mode 100644 index 00000000..6c2fc286 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/APIBannedUserWithMultiMatchInfoTest.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.BannedUserMatch; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for APIBannedUserWithMultiMatchInfo + */ +public class APIBannedUserWithMultiMatchInfoTest { + private final APIBannedUserWithMultiMatchInfo model = new APIBannedUserWithMultiMatchInfo(); + + /** + * Model tests for APIBannedUserWithMultiMatchInfo + */ + @Test + public void testAPIBannedUserWithMultiMatchInfo() { + // TODO: test APIBannedUserWithMultiMatchInfo + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'banType' + */ + @Test + public void banTypeTest() { + // TODO: test banType + } + + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } + + /** + * Test the property 'ipHash' + */ + @Test + public void ipHashTest() { + // TODO: test ipHash + } + + /** + * Test the property 'bannedUntil' + */ + @Test + public void bannedUntilTest() { + // TODO: test bannedUntil + } + + /** + * Test the property 'hasEmailWildcard' + */ + @Test + public void hasEmailWildcardTest() { + // TODO: test hasEmailWildcard + } + + /** + * Test the property 'banReason' + */ + @Test + public void banReasonTest() { + // TODO: test banReason + } + + /** + * Test the property 'matches' + */ + @Test + public void matchesTest() { + // TODO: test matches + } + +} diff --git a/client/src/test/java/com/fastcomments/model/APICommentCommonBannedUserTest.java b/client/src/test/java/com/fastcomments/model/APICommentCommonBannedUserTest.java new file mode 100644 index 00000000..37d8678d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/APICommentCommonBannedUserTest.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for APICommentCommonBannedUser + */ +public class APICommentCommonBannedUserTest { + private final APICommentCommonBannedUser model = new APICommentCommonBannedUser(); + + /** + * Model tests for APICommentCommonBannedUser + */ + @Test + public void testAPICommentCommonBannedUser() { + // TODO: test APICommentCommonBannedUser + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'banType' + */ + @Test + public void banTypeTest() { + // TODO: test banType + } + + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } + + /** + * Test the property 'ipHash' + */ + @Test + public void ipHashTest() { + // TODO: test ipHash + } + + /** + * Test the property 'bannedUntil' + */ + @Test + public void bannedUntilTest() { + // TODO: test bannedUntil + } + + /** + * Test the property 'hasEmailWildcard' + */ + @Test + public void hasEmailWildcardTest() { + // TODO: test hasEmailWildcard + } + + /** + * Test the property 'banReason' + */ + @Test + public void banReasonTest() { + // TODO: test banReason + } + +} diff --git a/client/src/test/java/com/fastcomments/model/APIModerateGetUserBanPreferencesResponseTest.java b/client/src/test/java/com/fastcomments/model/APIModerateGetUserBanPreferencesResponseTest.java new file mode 100644 index 00000000..45d175ea --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/APIModerateGetUserBanPreferencesResponseTest.java @@ -0,0 +1,58 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIModerateUserBanPreferences; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for APIModerateGetUserBanPreferencesResponse + */ +public class APIModerateGetUserBanPreferencesResponseTest { + private final APIModerateGetUserBanPreferencesResponse model = new APIModerateGetUserBanPreferencesResponse(); + + /** + * Model tests for APIModerateGetUserBanPreferencesResponse + */ + @Test + public void testAPIModerateGetUserBanPreferencesResponse() { + // TODO: test APIModerateGetUserBanPreferencesResponse + } + + /** + * Test the property 'preferences' + */ + @Test + public void preferencesTest() { + // TODO: test preferences + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/APIModerateUserBanPreferencesTest.java b/client/src/test/java/com/fastcomments/model/APIModerateUserBanPreferencesTest.java new file mode 100644 index 00000000..79b2ce5f --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/APIModerateUserBanPreferencesTest.java @@ -0,0 +1,72 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for APIModerateUserBanPreferences + */ +public class APIModerateUserBanPreferencesTest { + private final APIModerateUserBanPreferences model = new APIModerateUserBanPreferences(); + + /** + * Model tests for APIModerateUserBanPreferences + */ + @Test + public void testAPIModerateUserBanPreferences() { + // TODO: test APIModerateUserBanPreferences + } + + /** + * Test the property 'shouldBanEmail' + */ + @Test + public void shouldBanEmailTest() { + // TODO: test shouldBanEmail + } + + /** + * Test the property 'shouldBanByIP' + */ + @Test + public void shouldBanByIPTest() { + // TODO: test shouldBanByIP + } + + /** + * Test the property 'lastBanType' + */ + @Test + public void lastBanTypeTest() { + // TODO: test lastBanType + } + + /** + * Test the property 'lastBanDuration' + */ + @Test + public void lastBanDurationTest() { + // TODO: test lastBanDuration + } + +} diff --git a/client/src/test/java/com/fastcomments/model/SaveCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/APISaveCommentResponseTest.java similarity index 81% rename from client/src/test/java/com/fastcomments/model/SaveCommentResponseTest.java rename to client/src/test/java/com/fastcomments/model/APISaveCommentResponseTest.java index aeb7662e..ddf954de 100644 --- a/client/src/test/java/com/fastcomments/model/SaveCommentResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/APISaveCommentResponseTest.java @@ -13,8 +13,8 @@ package com.fastcomments.model; +import com.fastcomments.model.APIComment; import com.fastcomments.model.APIStatus; -import com.fastcomments.model.FComment; import com.fastcomments.model.UserSessionInfo; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -29,17 +29,17 @@ import org.junit.jupiter.api.Test; /** - * Model tests for SaveCommentResponse + * Model tests for APISaveCommentResponse */ -public class SaveCommentResponseTest { - private final SaveCommentResponse model = new SaveCommentResponse(); +public class APISaveCommentResponseTest { + private final APISaveCommentResponse model = new APISaveCommentResponse(); /** - * Model tests for SaveCommentResponse + * Model tests for APISaveCommentResponse */ @Test - public void testSaveCommentResponse() { - // TODO: test SaveCommentResponse + public void testAPISaveCommentResponse() { + // TODO: test APISaveCommentResponse } /** diff --git a/client/src/test/java/com/fastcomments/model/AddDomainConfig200ResponseAnyOfTest.java b/client/src/test/java/com/fastcomments/model/AddDomainConfigResponseAnyOfTest.java similarity index 74% rename from client/src/test/java/com/fastcomments/model/AddDomainConfig200ResponseAnyOfTest.java rename to client/src/test/java/com/fastcomments/model/AddDomainConfigResponseAnyOfTest.java index 4da7349f..17b5f2b7 100644 --- a/client/src/test/java/com/fastcomments/model/AddDomainConfig200ResponseAnyOfTest.java +++ b/client/src/test/java/com/fastcomments/model/AddDomainConfigResponseAnyOfTest.java @@ -24,17 +24,17 @@ import org.junit.jupiter.api.Test; /** - * Model tests for AddDomainConfig200ResponseAnyOf + * Model tests for AddDomainConfigResponseAnyOf */ -public class AddDomainConfig200ResponseAnyOfTest { - private final AddDomainConfig200ResponseAnyOf model = new AddDomainConfig200ResponseAnyOf(); +public class AddDomainConfigResponseAnyOfTest { + private final AddDomainConfigResponseAnyOf model = new AddDomainConfigResponseAnyOf(); /** - * Model tests for AddDomainConfig200ResponseAnyOf + * Model tests for AddDomainConfigResponseAnyOf */ @Test - public void testAddDomainConfig200ResponseAnyOf() { - // TODO: test AddDomainConfig200ResponseAnyOf + public void testAddDomainConfigResponseAnyOf() { + // TODO: test AddDomainConfigResponseAnyOf } /** diff --git a/client/src/test/java/com/fastcomments/model/GetDomainConfig200ResponseTest.java b/client/src/test/java/com/fastcomments/model/AddDomainConfigResponseTest.java similarity index 74% rename from client/src/test/java/com/fastcomments/model/GetDomainConfig200ResponseTest.java rename to client/src/test/java/com/fastcomments/model/AddDomainConfigResponseTest.java index 70446ab3..f030fe3c 100644 --- a/client/src/test/java/com/fastcomments/model/GetDomainConfig200ResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/AddDomainConfigResponseTest.java @@ -13,8 +13,8 @@ package com.fastcomments.model; -import com.fastcomments.model.AddDomainConfig200ResponseAnyOf; -import com.fastcomments.model.GetDomainConfigs200ResponseAnyOf1; +import com.fastcomments.model.AddDomainConfigResponseAnyOf; +import com.fastcomments.model.GetDomainConfigsResponseAnyOf1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,49 +26,49 @@ import org.junit.jupiter.api.Test; /** - * Model tests for GetDomainConfig200Response + * Model tests for AddDomainConfigResponse */ -public class GetDomainConfig200ResponseTest { - private final GetDomainConfig200Response model = new GetDomainConfig200Response(); +public class AddDomainConfigResponseTest { + private final AddDomainConfigResponse model = new AddDomainConfigResponse(); /** - * Model tests for GetDomainConfig200Response + * Model tests for AddDomainConfigResponse */ @Test - public void testGetDomainConfig200Response() { - // TODO: test GetDomainConfig200Response + public void testAddDomainConfigResponse() { + // TODO: test AddDomainConfigResponse } /** - * Test the property '_configuration' + * Test the property 'reason' */ @Test - public void _configurationTest() { - // TODO: test _configuration + public void reasonTest() { + // TODO: test reason } /** - * Test the property 'status' + * Test the property 'code' */ @Test - public void statusTest() { - // TODO: test status + public void codeTest() { + // TODO: test code } /** - * Test the property 'reason' + * Test the property 'status' */ @Test - public void reasonTest() { - // TODO: test reason + public void statusTest() { + // TODO: test status } /** - * Test the property 'code' + * Test the property '_configuration' */ @Test - public void codeTest() { - // TODO: test code + public void _configurationTest() { + // TODO: test _configuration } } diff --git a/client/src/test/java/com/fastcomments/model/AddHashTagsBulk200ResponseTest.java b/client/src/test/java/com/fastcomments/model/AddHashTagsBulk200ResponseTest.java deleted file mode 100644 index 9a178b23..00000000 --- a/client/src/test/java/com/fastcomments/model/AddHashTagsBulk200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.AddHashTag200Response; -import com.fastcomments.model.BulkCreateHashTagsResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AddHashTagsBulk200Response - */ -public class AddHashTagsBulk200ResponseTest { - private final AddHashTagsBulk200Response model = new AddHashTagsBulk200Response(); - - /** - * Model tests for AddHashTagsBulk200Response - */ - @Test - public void testAddHashTagsBulk200Response() { - // TODO: test AddHashTagsBulk200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'results' - */ - @Test - public void resultsTest() { - // TODO: test results - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/AdjustCommentVotesParamsTest.java b/client/src/test/java/com/fastcomments/model/AdjustCommentVotesParamsTest.java new file mode 100644 index 00000000..c78955b6 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/AdjustCommentVotesParamsTest.java @@ -0,0 +1,48 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AdjustCommentVotesParams + */ +public class AdjustCommentVotesParamsTest { + private final AdjustCommentVotesParams model = new AdjustCommentVotesParams(); + + /** + * Model tests for AdjustCommentVotesParams + */ + @Test + public void testAdjustCommentVotesParams() { + // TODO: test AdjustCommentVotesParams + } + + /** + * Test the property 'adjustVoteAmount' + */ + @Test + public void adjustVoteAmountTest() { + // TODO: test adjustVoteAmount + } + +} diff --git a/client/src/test/java/com/fastcomments/model/AdjustVotesResponseTest.java b/client/src/test/java/com/fastcomments/model/AdjustVotesResponseTest.java new file mode 100644 index 00000000..704ad040 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/AdjustVotesResponseTest.java @@ -0,0 +1,56 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AdjustVotesResponse + */ +public class AdjustVotesResponseTest { + private final AdjustVotesResponse model = new AdjustVotesResponse(); + + /** + * Model tests for AdjustVotesResponse + */ + @Test + public void testAdjustVotesResponse() { + // TODO: test AdjustVotesResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'newCommentVotes' + */ + @Test + public void newCommentVotesTest() { + // TODO: test newCommentVotes + } + +} diff --git a/client/src/test/java/com/fastcomments/model/AggregateQuestionResults200ResponseTest.java b/client/src/test/java/com/fastcomments/model/AggregateQuestionResults200ResponseTest.java deleted file mode 100644 index c5269583..00000000 --- a/client/src/test/java/com/fastcomments/model/AggregateQuestionResults200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.AggregateQuestionResultsResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.QuestionResultAggregationOverall; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AggregateQuestionResults200Response - */ -public class AggregateQuestionResults200ResponseTest { - private final AggregateQuestionResults200Response model = new AggregateQuestionResults200Response(); - - /** - * Model tests for AggregateQuestionResults200Response - */ - @Test - public void testAggregateQuestionResults200Response() { - // TODO: test AggregateQuestionResults200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/AggregateResponseTest.java b/client/src/test/java/com/fastcomments/model/AggregateResponseTest.java new file mode 100644 index 00000000..5e637719 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/AggregateResponseTest.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.AggregationAPIError; +import com.fastcomments.model.AggregationItem; +import com.fastcomments.model.AggregationResponse; +import com.fastcomments.model.AggregationResponseStats; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AggregateResponse + */ +public class AggregateResponseTest { + private final AggregateResponse model = new AggregateResponse(); + + /** + * Model tests for AggregateResponse + */ + @Test + public void testAggregateResponse() { + // TODO: test AggregateResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'stats' + */ + @Test + public void statsTest() { + // TODO: test stats + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'validResourceNames' + */ + @Test + public void validResourceNamesTest() { + // TODO: test validResourceNames + } + +} diff --git a/client/src/test/java/com/fastcomments/model/AggregationAPIErrorTest.java b/client/src/test/java/com/fastcomments/model/AggregationAPIErrorTest.java new file mode 100644 index 00000000..02d5dc4d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/AggregationAPIErrorTest.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AggregationAPIError + */ +public class AggregationAPIErrorTest { + private final AggregationAPIError model = new AggregationAPIError(); + + /** + * Model tests for AggregationAPIError + */ + @Test + public void testAggregationAPIError() { + // TODO: test AggregationAPIError + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'validResourceNames' + */ + @Test + public void validResourceNamesTest() { + // TODO: test validResourceNames + } + +} diff --git a/client/src/test/java/com/fastcomments/model/AwardUserBadgeResponseTest.java b/client/src/test/java/com/fastcomments/model/AwardUserBadgeResponseTest.java new file mode 100644 index 00000000..2c6cf8c2 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/AwardUserBadgeResponseTest.java @@ -0,0 +1,68 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CommentUserBadgeInfo; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AwardUserBadgeResponse + */ +public class AwardUserBadgeResponseTest { + private final AwardUserBadgeResponse model = new AwardUserBadgeResponse(); + + /** + * Model tests for AwardUserBadgeResponse + */ + @Test + public void testAwardUserBadgeResponse() { + // TODO: test AwardUserBadgeResponse + } + + /** + * Test the property 'notes' + */ + @Test + public void notesTest() { + // TODO: test notes + } + + /** + * Test the property 'badges' + */ + @Test + public void badgesTest() { + // TODO: test badges + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/BanUserFromCommentResultTest.java b/client/src/test/java/com/fastcomments/model/BanUserFromCommentResultTest.java new file mode 100644 index 00000000..dcce7549 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/BanUserFromCommentResultTest.java @@ -0,0 +1,73 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIBanUserChangeLog; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BanUserFromCommentResult + */ +public class BanUserFromCommentResultTest { + private final BanUserFromCommentResult model = new BanUserFromCommentResult(); + + /** + * Model tests for BanUserFromCommentResult + */ + @Test + public void testBanUserFromCommentResult() { + // TODO: test BanUserFromCommentResult + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'changelog' + */ + @Test + public void changelogTest() { + // TODO: test changelog + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + +} diff --git a/client/src/test/java/com/fastcomments/model/BanUserUndoParamsTest.java b/client/src/test/java/com/fastcomments/model/BanUserUndoParamsTest.java new file mode 100644 index 00000000..d402931d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/BanUserUndoParamsTest.java @@ -0,0 +1,49 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIBanUserChangeLog; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BanUserUndoParams + */ +public class BanUserUndoParamsTest { + private final BanUserUndoParams model = new BanUserUndoParams(); + + /** + * Model tests for BanUserUndoParams + */ + @Test + public void testBanUserUndoParams() { + // TODO: test BanUserUndoParams + } + + /** + * Test the property 'changelog' + */ + @Test + public void changelogTest() { + // TODO: test changelog + } + +} diff --git a/client/src/test/java/com/fastcomments/model/RecordStringStringOrNumberValueTest.java b/client/src/test/java/com/fastcomments/model/BannedUserMatchMatchedOnValueTest.java similarity index 59% rename from client/src/test/java/com/fastcomments/model/RecordStringStringOrNumberValueTest.java rename to client/src/test/java/com/fastcomments/model/BannedUserMatchMatchedOnValueTest.java index 87fe9d40..459ea8aa 100644 --- a/client/src/test/java/com/fastcomments/model/RecordStringStringOrNumberValueTest.java +++ b/client/src/test/java/com/fastcomments/model/BannedUserMatchMatchedOnValueTest.java @@ -17,17 +17,17 @@ import org.junit.jupiter.api.Test; /** - * Model tests for RecordStringStringOrNumberValue + * Model tests for BannedUserMatchMatchedOnValue */ -public class RecordStringStringOrNumberValueTest { - private final RecordStringStringOrNumberValue model = new RecordStringStringOrNumberValue(); +public class BannedUserMatchMatchedOnValueTest { + private final BannedUserMatchMatchedOnValue model = new BannedUserMatchMatchedOnValue(); /** - * Model tests for RecordStringStringOrNumberValue + * Model tests for BannedUserMatchMatchedOnValue */ @Test - public void testRecordStringStringOrNumberValue() { - // TODO: test RecordStringStringOrNumberValue + public void testBannedUserMatchMatchedOnValue() { + // TODO: test BannedUserMatchMatchedOnValue } } diff --git a/client/src/test/java/com/fastcomments/model/BannedUserMatchTest.java b/client/src/test/java/com/fastcomments/model/BannedUserMatchTest.java new file mode 100644 index 00000000..886a576b --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/BannedUserMatchTest.java @@ -0,0 +1,58 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.BannedUserMatchMatchedOnValue; +import com.fastcomments.model.BannedUserMatchType; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BannedUserMatch + */ +public class BannedUserMatchTest { + private final BannedUserMatch model = new BannedUserMatch(); + + /** + * Model tests for BannedUserMatch + */ + @Test + public void testBannedUserMatch() { + // TODO: test BannedUserMatch + } + + /** + * Test the property 'matchedOn' + */ + @Test + public void matchedOnTest() { + // TODO: test matchedOn + } + + /** + * Test the property 'matchedOnValue' + */ + @Test + public void matchedOnValueTest() { + // TODO: test matchedOnValue + } + +} diff --git a/client/src/test/java/com/fastcomments/model/BannedUserMatchTypeTest.java b/client/src/test/java/com/fastcomments/model/BannedUserMatchTypeTest.java new file mode 100644 index 00000000..fbbd5a68 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/BannedUserMatchTypeTest.java @@ -0,0 +1,32 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BannedUserMatchType + */ +public class BannedUserMatchTypeTest { + /** + * Model tests for BannedUserMatchType + */ + @Test + public void testBannedUserMatchType() { + // TODO: test BannedUserMatchType + } + +} diff --git a/client/src/test/java/com/fastcomments/model/BlockFromCommentPublic200ResponseTest.java b/client/src/test/java/com/fastcomments/model/BlockFromCommentPublic200ResponseTest.java deleted file mode 100644 index e233cc79..00000000 --- a/client/src/test/java/com/fastcomments/model/BlockFromCommentPublic200ResponseTest.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.BlockSuccess; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for BlockFromCommentPublic200Response - */ -public class BlockFromCommentPublic200ResponseTest { - private final BlockFromCommentPublic200Response model = new BlockFromCommentPublic200Response(); - - /** - * Model tests for BlockFromCommentPublic200Response - */ - @Test - public void testBlockFromCommentPublic200Response() { - // TODO: test BlockFromCommentPublic200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'commentStatuses' - */ - @Test - public void commentStatusesTest() { - // TODO: test commentStatuses - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/BuildModerationFilterParamsTest.java b/client/src/test/java/com/fastcomments/model/BuildModerationFilterParamsTest.java new file mode 100644 index 00000000..c9bc7227 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/BuildModerationFilterParamsTest.java @@ -0,0 +1,80 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BuildModerationFilterParams + */ +public class BuildModerationFilterParamsTest { + private final BuildModerationFilterParams model = new BuildModerationFilterParams(); + + /** + * Model tests for BuildModerationFilterParams + */ + @Test + public void testBuildModerationFilterParams() { + // TODO: test BuildModerationFilterParams + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'tenantId' + */ + @Test + public void tenantIdTest() { + // TODO: test tenantId + } + + /** + * Test the property 'filters' + */ + @Test + public void filtersTest() { + // TODO: test filters + } + + /** + * Test the property 'searchFilters' + */ + @Test + public void searchFiltersTest() { + // TODO: test searchFilters + } + + /** + * Test the property 'textSearch' + */ + @Test + public void textSearchTest() { + // TODO: test textSearch + } + +} diff --git a/client/src/test/java/com/fastcomments/model/BuildModerationFilterResponseTest.java b/client/src/test/java/com/fastcomments/model/BuildModerationFilterResponseTest.java new file mode 100644 index 00000000..86f9004a --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/BuildModerationFilterResponseTest.java @@ -0,0 +1,57 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.ModerationFilter; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BuildModerationFilterResponse + */ +public class BuildModerationFilterResponseTest { + private final BuildModerationFilterResponse model = new BuildModerationFilterResponse(); + + /** + * Model tests for BuildModerationFilterResponse + */ + @Test + public void testBuildModerationFilterResponse() { + // TODO: test BuildModerationFilterResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'moderationFilter' + */ + @Test + public void moderationFilterTest() { + // TODO: test moderationFilter + } + +} diff --git a/client/src/test/java/com/fastcomments/model/BulkAggregateQuestionResults200ResponseTest.java b/client/src/test/java/com/fastcomments/model/BulkAggregateQuestionResults200ResponseTest.java deleted file mode 100644 index 287165af..00000000 --- a/client/src/test/java/com/fastcomments/model/BulkAggregateQuestionResults200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.BulkAggregateQuestionResultsResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.QuestionResultAggregationOverall; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for BulkAggregateQuestionResults200Response - */ -public class BulkAggregateQuestionResults200ResponseTest { - private final BulkAggregateQuestionResults200Response model = new BulkAggregateQuestionResults200Response(); - - /** - * Model tests for BulkAggregateQuestionResults200Response - */ - @Test - public void testBulkAggregateQuestionResults200Response() { - // TODO: test BulkAggregateQuestionResults200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/AddHashTag200ResponseTest.java b/client/src/test/java/com/fastcomments/model/BulkCreateHashTagsResponseResultsInnerTest.java similarity index 84% rename from client/src/test/java/com/fastcomments/model/AddHashTag200ResponseTest.java rename to client/src/test/java/com/fastcomments/model/BulkCreateHashTagsResponseResultsInnerTest.java index e6e29328..03188165 100644 --- a/client/src/test/java/com/fastcomments/model/AddHashTag200ResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/BulkCreateHashTagsResponseResultsInnerTest.java @@ -29,17 +29,17 @@ import org.junit.jupiter.api.Test; /** - * Model tests for AddHashTag200Response + * Model tests for BulkCreateHashTagsResponseResultsInner */ -public class AddHashTag200ResponseTest { - private final AddHashTag200Response model = new AddHashTag200Response(); +public class BulkCreateHashTagsResponseResultsInnerTest { + private final BulkCreateHashTagsResponseResultsInner model = new BulkCreateHashTagsResponseResultsInner(); /** - * Model tests for AddHashTag200Response + * Model tests for BulkCreateHashTagsResponseResultsInner */ @Test - public void testAddHashTag200Response() { - // TODO: test AddHashTag200Response + public void testBulkCreateHashTagsResponseResultsInner() { + // TODO: test BulkCreateHashTagsResponseResultsInner } /** diff --git a/client/src/test/java/com/fastcomments/model/BulkCreateHashTagsResponseTest.java b/client/src/test/java/com/fastcomments/model/BulkCreateHashTagsResponseTest.java index 47a9c493..643f3525 100644 --- a/client/src/test/java/com/fastcomments/model/BulkCreateHashTagsResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/BulkCreateHashTagsResponseTest.java @@ -14,7 +14,7 @@ package com.fastcomments.model; import com.fastcomments.model.APIStatus; -import com.fastcomments.model.AddHashTag200Response; +import com.fastcomments.model.BulkCreateHashTagsResponseResultsInner; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; diff --git a/client/src/test/java/com/fastcomments/model/BulkPreBanParamsTest.java b/client/src/test/java/com/fastcomments/model/BulkPreBanParamsTest.java new file mode 100644 index 00000000..dd943670 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/BulkPreBanParamsTest.java @@ -0,0 +1,50 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BulkPreBanParams + */ +public class BulkPreBanParamsTest { + private final BulkPreBanParams model = new BulkPreBanParams(); + + /** + * Model tests for BulkPreBanParams + */ + @Test + public void testBulkPreBanParams() { + // TODO: test BulkPreBanParams + } + + /** + * Test the property 'commentIds' + */ + @Test + public void commentIdsTest() { + // TODO: test commentIds + } + +} diff --git a/client/src/test/java/com/fastcomments/model/BulkPreBanSummaryTest.java b/client/src/test/java/com/fastcomments/model/BulkPreBanSummaryTest.java new file mode 100644 index 00000000..21f6b403 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/BulkPreBanSummaryTest.java @@ -0,0 +1,90 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BulkPreBanSummary + */ +public class BulkPreBanSummaryTest { + private final BulkPreBanSummary model = new BulkPreBanSummary(); + + /** + * Model tests for BulkPreBanSummary + */ + @Test + public void testBulkPreBanSummary() { + // TODO: test BulkPreBanSummary + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'totalRelatedCommentCount' + */ + @Test + public void totalRelatedCommentCountTest() { + // TODO: test totalRelatedCommentCount + } + + /** + * Test the property 'emailDomains' + */ + @Test + public void emailDomainsTest() { + // TODO: test emailDomains + } + + /** + * Test the property 'emails' + */ + @Test + public void emailsTest() { + // TODO: test emails + } + + /** + * Test the property 'userIds' + */ + @Test + public void userIdsTest() { + // TODO: test userIds + } + + /** + * Test the property 'ipHashes' + */ + @Test + public void ipHashesTest() { + // TODO: test ipHashes + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ChangeTicketState200ResponseTest.java b/client/src/test/java/com/fastcomments/model/ChangeTicketState200ResponseTest.java deleted file mode 100644 index 9d1a62e1..00000000 --- a/client/src/test/java/com/fastcomments/model/ChangeTicketState200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITicket; -import com.fastcomments.model.ChangeTicketStateResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ChangeTicketState200Response - */ -public class ChangeTicketState200ResponseTest { - private final ChangeTicketState200Response model = new ChangeTicketState200Response(); - - /** - * Model tests for ChangeTicketState200Response - */ - @Test - public void testChangeTicketState200Response() { - // TODO: test ChangeTicketState200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'ticket' - */ - @Test - public void ticketTest() { - // TODO: test ticket - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/CheckedCommentsForBlocked200ResponseTest.java b/client/src/test/java/com/fastcomments/model/CheckedCommentsForBlocked200ResponseTest.java deleted file mode 100644 index 2c8fa115..00000000 --- a/client/src/test/java/com/fastcomments/model/CheckedCommentsForBlocked200ResponseTest.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CheckBlockedCommentsResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CheckedCommentsForBlocked200Response - */ -public class CheckedCommentsForBlocked200ResponseTest { - private final CheckedCommentsForBlocked200Response model = new CheckedCommentsForBlocked200Response(); - - /** - * Model tests for CheckedCommentsForBlocked200Response - */ - @Test - public void testCheckedCommentsForBlocked200Response() { - // TODO: test CheckedCommentsForBlocked200Response - } - - /** - * Test the property 'commentStatuses' - */ - @Test - public void commentStatusesTest() { - // TODO: test commentStatuses - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/CombineCommentsWithQuestionResults200ResponseTest.java b/client/src/test/java/com/fastcomments/model/CombineCommentsWithQuestionResults200ResponseTest.java deleted file mode 100644 index 9f0020e9..00000000 --- a/client/src/test/java/com/fastcomments/model/CombineCommentsWithQuestionResults200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CombineQuestionResultsWithCommentsResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FindCommentsByRangeResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CombineCommentsWithQuestionResults200Response - */ -public class CombineCommentsWithQuestionResults200ResponseTest { - private final CombineCommentsWithQuestionResults200Response model = new CombineCommentsWithQuestionResults200Response(); - - /** - * Model tests for CombineCommentsWithQuestionResults200Response - */ - @Test - public void testCombineCommentsWithQuestionResults200Response() { - // TODO: test CombineCommentsWithQuestionResults200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/CommentDataTest.java b/client/src/test/java/com/fastcomments/model/CommentDataTest.java index 3b5806f7..ebe4e77c 100644 --- a/client/src/test/java/com/fastcomments/model/CommentDataTest.java +++ b/client/src/test/java/com/fastcomments/model/CommentDataTest.java @@ -15,7 +15,7 @@ import com.fastcomments.model.CommentUserHashTagInfo; import com.fastcomments.model.CommentUserMentionInfo; -import com.fastcomments.model.RecordStringStringOrNumberValue; +import com.fastcomments.model.GifSearchResponseImagesInnerInner; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -244,4 +244,12 @@ public void tosTest() { // TODO: test tos } + /** + * Test the property 'botId' + */ + @Test + public void botIdTest() { + // TODO: test botId + } + } diff --git a/client/src/test/java/com/fastcomments/model/CommentLogDataTest.java b/client/src/test/java/com/fastcomments/model/CommentLogDataTest.java index 4530f6ba..3de9ad85 100644 --- a/client/src/test/java/com/fastcomments/model/CommentLogDataTest.java +++ b/client/src/test/java/com/fastcomments/model/CommentLogDataTest.java @@ -161,6 +161,14 @@ public void trustFactorTest() { // TODO: test trustFactor } + /** + * Test the property 'source' + */ + @Test + public void sourceTest() { + // TODO: test source + } + /** * Test the property 'rule' */ diff --git a/client/src/test/java/com/fastcomments/model/CommentsByIdsParamsTest.java b/client/src/test/java/com/fastcomments/model/CommentsByIdsParamsTest.java new file mode 100644 index 00000000..fe70167c --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CommentsByIdsParamsTest.java @@ -0,0 +1,50 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CommentsByIdsParams + */ +public class CommentsByIdsParamsTest { + private final CommentsByIdsParams model = new CommentsByIdsParams(); + + /** + * Model tests for CommentsByIdsParams + */ + @Test + public void testCommentsByIdsParams() { + // TODO: test CommentsByIdsParams + } + + /** + * Test the property 'ids' + */ + @Test + public void idsTest() { + // TODO: test ids + } + +} diff --git a/client/src/test/java/com/fastcomments/model/CreateCommentParamsTest.java b/client/src/test/java/com/fastcomments/model/CreateCommentParamsTest.java index c9396656..84de8675 100644 --- a/client/src/test/java/com/fastcomments/model/CreateCommentParamsTest.java +++ b/client/src/test/java/com/fastcomments/model/CreateCommentParamsTest.java @@ -15,7 +15,7 @@ import com.fastcomments.model.CommentUserHashTagInfo; import com.fastcomments.model.CommentUserMentionInfo; -import com.fastcomments.model.RecordStringStringOrNumberValue; +import com.fastcomments.model.GifSearchResponseImagesInnerInner; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -244,6 +244,14 @@ public void tosTest() { // TODO: test tos } + /** + * Test the property 'botId' + */ + @Test + public void botIdTest() { + // TODO: test botId + } + /** * Test the property 'approved' */ diff --git a/client/src/test/java/com/fastcomments/model/CreateCommentPublic200ResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateCommentPublic200ResponseTest.java deleted file mode 100644 index 5368c962..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateCommentPublic200ResponseTest.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.PublicComment; -import com.fastcomments.model.SaveCommentsResponseWithPresence; -import com.fastcomments.model.UserSessionInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateCommentPublic200Response - */ -public class CreateCommentPublic200ResponseTest { - private final CreateCommentPublic200Response model = new CreateCommentPublic200Response(); - - /** - * Model tests for CreateCommentPublic200Response - */ - @Test - public void testCreateCommentPublic200Response() { - // TODO: test CreateCommentPublic200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'comment' - */ - @Test - public void commentTest() { - // TODO: test comment - } - - /** - * Test the property 'user' - */ - @Test - public void userTest() { - // TODO: test user - } - - /** - * Test the property 'moduleData' - */ - @Test - public void moduleDataTest() { - // TODO: test moduleData - } - - /** - * Test the property 'userIdWS' - */ - @Test - public void userIdWSTest() { - // TODO: test userIdWS - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/CreateEmailTemplate200ResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateEmailTemplate200ResponseTest.java deleted file mode 100644 index 8e8f9324..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateEmailTemplate200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateEmailTemplateResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.CustomEmailTemplate; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateEmailTemplate200Response - */ -public class CreateEmailTemplate200ResponseTest { - private final CreateEmailTemplate200Response model = new CreateEmailTemplate200Response(); - - /** - * Model tests for CreateEmailTemplate200Response - */ - @Test - public void testCreateEmailTemplate200Response() { - // TODO: test CreateEmailTemplate200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'emailTemplate' - */ - @Test - public void emailTemplateTest() { - // TODO: test emailTemplate - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/CreateFeedPost200ResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateFeedPost200ResponseTest.java deleted file mode 100644 index 6bebe585..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateFeedPost200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateFeedPostsResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FeedPost; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateFeedPost200Response - */ -public class CreateFeedPost200ResponseTest { - private final CreateFeedPost200Response model = new CreateFeedPost200Response(); - - /** - * Model tests for CreateFeedPost200Response - */ - @Test - public void testCreateFeedPost200Response() { - // TODO: test CreateFeedPost200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'feedPost' - */ - @Test - public void feedPostTest() { - // TODO: test feedPost - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/CreateFeedPostPublic200ResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateFeedPostPublic200ResponseTest.java deleted file mode 100644 index 6bb8e780..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateFeedPostPublic200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateFeedPostResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FeedPost; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateFeedPostPublic200Response - */ -public class CreateFeedPostPublic200ResponseTest { - private final CreateFeedPostPublic200Response model = new CreateFeedPostPublic200Response(); - - /** - * Model tests for CreateFeedPostPublic200Response - */ - @Test - public void testCreateFeedPostPublic200Response() { - // TODO: test CreateFeedPostPublic200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'feedPost' - */ - @Test - public void feedPostTest() { - // TODO: test feedPost - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/CreateModerator200ResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateModerator200ResponseTest.java deleted file mode 100644 index 51bbe00a..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateModerator200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateModeratorResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.Moderator; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateModerator200Response - */ -public class CreateModerator200ResponseTest { - private final CreateModerator200Response model = new CreateModerator200Response(); - - /** - * Model tests for CreateModerator200Response - */ - @Test - public void testCreateModerator200Response() { - // TODO: test CreateModerator200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'moderator' - */ - @Test - public void moderatorTest() { - // TODO: test moderator - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/CreateQuestionConfig200ResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateQuestionConfig200ResponseTest.java deleted file mode 100644 index 4c895e96..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateQuestionConfig200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateQuestionConfigResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.QuestionConfig; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateQuestionConfig200Response - */ -public class CreateQuestionConfig200ResponseTest { - private final CreateQuestionConfig200Response model = new CreateQuestionConfig200Response(); - - /** - * Model tests for CreateQuestionConfig200Response - */ - @Test - public void testCreateQuestionConfig200Response() { - // TODO: test CreateQuestionConfig200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'questionConfig' - */ - @Test - public void questionConfigTest() { - // TODO: test questionConfig - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/CreateQuestionResult200ResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateQuestionResult200ResponseTest.java deleted file mode 100644 index 237b7d19..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateQuestionResult200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateQuestionResultResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.QuestionResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateQuestionResult200Response - */ -public class CreateQuestionResult200ResponseTest { - private final CreateQuestionResult200Response model = new CreateQuestionResult200Response(); - - /** - * Model tests for CreateQuestionResult200Response - */ - @Test - public void testCreateQuestionResult200Response() { - // TODO: test CreateQuestionResult200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'questionResult' - */ - @Test - public void questionResultTest() { - // TODO: test questionResult - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/CreateTenant200ResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateTenant200ResponseTest.java deleted file mode 100644 index 1be3a55e..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateTenant200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITenant; -import com.fastcomments.model.CreateTenantResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateTenant200Response - */ -public class CreateTenant200ResponseTest { - private final CreateTenant200Response model = new CreateTenant200Response(); - - /** - * Model tests for CreateTenant200Response - */ - @Test - public void testCreateTenant200Response() { - // TODO: test CreateTenant200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'tenant' - */ - @Test - public void tenantTest() { - // TODO: test tenant - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/CreateTenantPackage200ResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateTenantPackage200ResponseTest.java deleted file mode 100644 index 91ba83e3..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateTenantPackage200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateTenantPackageResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.TenantPackage; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateTenantPackage200Response - */ -public class CreateTenantPackage200ResponseTest { - private final CreateTenantPackage200Response model = new CreateTenantPackage200Response(); - - /** - * Model tests for CreateTenantPackage200Response - */ - @Test - public void testCreateTenantPackage200Response() { - // TODO: test CreateTenantPackage200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'tenantPackage' - */ - @Test - public void tenantPackageTest() { - // TODO: test tenantPackage - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/CreateTenantUser200ResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateTenantUser200ResponseTest.java deleted file mode 100644 index 3f22c186..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateTenantUser200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CreateTenantUserResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.User; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateTenantUser200Response - */ -public class CreateTenantUser200ResponseTest { - private final CreateTenantUser200Response model = new CreateTenantUser200Response(); - - /** - * Model tests for CreateTenantUser200Response - */ - @Test - public void testCreateTenantUser200Response() { - // TODO: test CreateTenantUser200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'tenantUser' - */ - @Test - public void tenantUserTest() { - // TODO: test tenantUser - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/CreateTicket200ResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateTicket200ResponseTest.java deleted file mode 100644 index b152943a..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateTicket200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITicket; -import com.fastcomments.model.CreateTicketResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateTicket200Response - */ -public class CreateTicket200ResponseTest { - private final CreateTicket200Response model = new CreateTicket200Response(); - - /** - * Model tests for CreateTicket200Response - */ - @Test - public void testCreateTicket200Response() { - // TODO: test CreateTicket200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'ticket' - */ - @Test - public void ticketTest() { - // TODO: test ticket - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/CreateUserBadge200ResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateUserBadge200ResponseTest.java deleted file mode 100644 index b029f6a9..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateUserBadge200ResponseTest.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APICreateUserBadgeResponse; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.UserBadge; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateUserBadge200Response - */ -public class CreateUserBadge200ResponseTest { - private final CreateUserBadge200Response model = new CreateUserBadge200Response(); - - /** - * Model tests for CreateUserBadge200Response - */ - @Test - public void testCreateUserBadge200Response() { - // TODO: test CreateUserBadge200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'userBadge' - */ - @Test - public void userBadgeTest() { - // TODO: test userBadge - } - - /** - * Test the property 'notes' - */ - @Test - public void notesTest() { - // TODO: test notes - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublic200ResponseAnyOfTest.java b/client/src/test/java/com/fastcomments/model/CreateV1PageReactTest.java similarity index 71% rename from client/src/test/java/com/fastcomments/model/DeleteFeedPostPublic200ResponseAnyOfTest.java rename to client/src/test/java/com/fastcomments/model/CreateV1PageReactTest.java index c5aa71fa..4c9c219a 100644 --- a/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublic200ResponseAnyOfTest.java +++ b/client/src/test/java/com/fastcomments/model/CreateV1PageReactTest.java @@ -25,17 +25,25 @@ import org.junit.jupiter.api.Test; /** - * Model tests for DeleteFeedPostPublic200ResponseAnyOf + * Model tests for CreateV1PageReact */ -public class DeleteFeedPostPublic200ResponseAnyOfTest { - private final DeleteFeedPostPublic200ResponseAnyOf model = new DeleteFeedPostPublic200ResponseAnyOf(); +public class CreateV1PageReactTest { + private final CreateV1PageReact model = new CreateV1PageReact(); /** - * Model tests for DeleteFeedPostPublic200ResponseAnyOf + * Model tests for CreateV1PageReact */ @Test - public void testDeleteFeedPostPublic200ResponseAnyOf() { - // TODO: test DeleteFeedPostPublic200ResponseAnyOf + public void testCreateV1PageReact() { + // TODO: test CreateV1PageReact + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code } /** diff --git a/client/src/test/java/com/fastcomments/model/CustomConfigParametersTest.java b/client/src/test/java/com/fastcomments/model/CustomConfigParametersTest.java index eda1ebd7..5a05b5b1 100644 --- a/client/src/test/java/com/fastcomments/model/CustomConfigParametersTest.java +++ b/client/src/test/java/com/fastcomments/model/CustomConfigParametersTest.java @@ -28,6 +28,7 @@ import com.fastcomments.model.SortDirections; import com.fastcomments.model.SpamRule; import com.fastcomments.model.TOSConfig; +import com.fastcomments.model.UsersListLocation; import com.fastcomments.model.VoteStyle; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -473,6 +474,22 @@ public void noImageUploadsTest() { // TODO: test noImageUploads } + /** + * Test the property 'allowEmbeds' + */ + @Test + public void allowEmbedsTest() { + // TODO: test allowEmbeds + } + + /** + * Test the property 'allowedEmbedDomains' + */ + @Test + public void allowedEmbedDomainsTest() { + // TODO: test allowedEmbedDomains + } + /** * Test the property 'noStyles' */ @@ -513,6 +530,14 @@ public void requireSSOTest() { // TODO: test requireSSO } + /** + * Test the property 'enableFChat' + */ + @Test + public void enableFChatTest() { + // TODO: test enableFChat + } + /** * Test the property 'enableResizeHandle' */ @@ -673,6 +698,22 @@ public void wrapTest() { // TODO: test wrap } + /** + * Test the property 'usersListLocation' + */ + @Test + public void usersListLocationTest() { + // TODO: test usersListLocation + } + + /** + * Test the property 'usersListIncludeOffline' + */ + @Test + public void usersListIncludeOfflineTest() { + // TODO: test usersListIncludeOffline + } + /** * Test the property 'ticketBaseUrl' */ diff --git a/client/src/test/java/com/fastcomments/model/DeleteComment200ResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteComment200ResponseTest.java deleted file mode 100644 index 362c2d06..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteComment200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.DeleteCommentAction; -import com.fastcomments.model.DeleteCommentResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for DeleteComment200Response - */ -public class DeleteComment200ResponseTest { - private final DeleteComment200Response model = new DeleteComment200Response(); - - /** - * Model tests for DeleteComment200Response - */ - @Test - public void testDeleteComment200Response() { - // TODO: test DeleteComment200Response - } - - /** - * Test the property 'action' - */ - @Test - public void actionTest() { - // TODO: test action - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/DeleteCommentPublic200ResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteCommentPublic200ResponseTest.java deleted file mode 100644 index 9d787013..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteCommentPublic200ResponseTest.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.DeletedCommentResultComment; -import com.fastcomments.model.PublicAPIDeleteCommentResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for DeleteCommentPublic200Response - */ -public class DeleteCommentPublic200ResponseTest { - private final DeleteCommentPublic200Response model = new DeleteCommentPublic200Response(); - - /** - * Model tests for DeleteCommentPublic200Response - */ - @Test - public void testDeleteCommentPublic200Response() { - // TODO: test DeleteCommentPublic200Response - } - - /** - * Test the property 'comment' - */ - @Test - public void commentTest() { - // TODO: test comment - } - - /** - * Test the property 'hardRemoved' - */ - @Test - public void hardRemovedTest() { - // TODO: test hardRemoved - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/DeleteCommentVote200ResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteCommentVote200ResponseTest.java deleted file mode 100644 index 4911981e..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteCommentVote200ResponseTest.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.VoteDeleteResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for DeleteCommentVote200Response - */ -public class DeleteCommentVote200ResponseTest { - private final DeleteCommentVote200Response model = new DeleteCommentVote200Response(); - - /** - * Model tests for DeleteCommentVote200Response - */ - @Test - public void testDeleteCommentVote200Response() { - // TODO: test DeleteCommentVote200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'wasPendingVote' - */ - @Test - public void wasPendingVoteTest() { - // TODO: test wasPendingVote - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/DeleteDomainConfig200ResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteDomainConfigResponseTest.java similarity index 72% rename from client/src/test/java/com/fastcomments/model/DeleteDomainConfig200ResponseTest.java rename to client/src/test/java/com/fastcomments/model/DeleteDomainConfigResponseTest.java index c533738f..efafda26 100644 --- a/client/src/test/java/com/fastcomments/model/DeleteDomainConfig200ResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/DeleteDomainConfigResponseTest.java @@ -24,17 +24,17 @@ import org.junit.jupiter.api.Test; /** - * Model tests for DeleteDomainConfig200Response + * Model tests for DeleteDomainConfigResponse */ -public class DeleteDomainConfig200ResponseTest { - private final DeleteDomainConfig200Response model = new DeleteDomainConfig200Response(); +public class DeleteDomainConfigResponseTest { + private final DeleteDomainConfigResponse model = new DeleteDomainConfigResponse(); /** - * Model tests for DeleteDomainConfig200Response + * Model tests for DeleteDomainConfigResponse */ @Test - public void testDeleteDomainConfig200Response() { - // TODO: test DeleteDomainConfig200Response + public void testDeleteDomainConfigResponse() { + // TODO: test DeleteDomainConfigResponse } /** diff --git a/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublic200ResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublic200ResponseTest.java deleted file mode 100644 index 300fcad8..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublic200ResponseTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.DeleteFeedPostPublic200ResponseAnyOf; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for DeleteFeedPostPublic200Response - */ -public class DeleteFeedPostPublic200ResponseTest { - private final DeleteFeedPostPublic200Response model = new DeleteFeedPostPublic200Response(); - - /** - * Model tests for DeleteFeedPostPublic200Response - */ - @Test - public void testDeleteFeedPostPublic200Response() { - // TODO: test DeleteFeedPostPublic200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseTest.java new file mode 100644 index 00000000..5257f9e1 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseTest.java @@ -0,0 +1,49 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DeleteFeedPostPublicResponse + */ +public class DeleteFeedPostPublicResponseTest { + private final DeleteFeedPostPublicResponse model = new DeleteFeedPostPublicResponse(); + + /** + * Model tests for DeleteFeedPostPublicResponse + */ + @Test + public void testDeleteFeedPostPublicResponse() { + // TODO: test DeleteFeedPostPublicResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/DeleteHashTagRequestTest.java b/client/src/test/java/com/fastcomments/model/DeleteHashTagRequestBodyTest.java similarity index 74% rename from client/src/test/java/com/fastcomments/model/DeleteHashTagRequestTest.java rename to client/src/test/java/com/fastcomments/model/DeleteHashTagRequestBodyTest.java index 292b5158..215a0da2 100644 --- a/client/src/test/java/com/fastcomments/model/DeleteHashTagRequestTest.java +++ b/client/src/test/java/com/fastcomments/model/DeleteHashTagRequestBodyTest.java @@ -24,17 +24,17 @@ import org.junit.jupiter.api.Test; /** - * Model tests for DeleteHashTagRequest + * Model tests for DeleteHashTagRequestBody */ -public class DeleteHashTagRequestTest { - private final DeleteHashTagRequest model = new DeleteHashTagRequest(); +public class DeleteHashTagRequestBodyTest { + private final DeleteHashTagRequestBody model = new DeleteHashTagRequestBody(); /** - * Model tests for DeleteHashTagRequest + * Model tests for DeleteHashTagRequestBody */ @Test - public void testDeleteHashTagRequest() { - // TODO: test DeleteHashTagRequest + public void testDeleteHashTagRequestBody() { + // TODO: test DeleteHashTagRequestBody } /** diff --git a/client/src/test/java/com/fastcomments/model/FCommentTest.java b/client/src/test/java/com/fastcomments/model/FCommentTest.java index 4b352b89..9263cddc 100644 --- a/client/src/test/java/com/fastcomments/model/FCommentTest.java +++ b/client/src/test/java/com/fastcomments/model/FCommentTest.java @@ -621,4 +621,12 @@ public void tosAcceptedAtTest() { // TODO: test tosAcceptedAt } + /** + * Test the property 'botId' + */ + @Test + public void botIdTest() { + // TODO: test botId + } + } diff --git a/client/src/test/java/com/fastcomments/model/FlagComment200ResponseTest.java b/client/src/test/java/com/fastcomments/model/FlagComment200ResponseTest.java deleted file mode 100644 index 7c2af0ac..00000000 --- a/client/src/test/java/com/fastcomments/model/FlagComment200ResponseTest.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FlagCommentResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FlagComment200Response - */ -public class FlagComment200ResponseTest { - private final FlagComment200Response model = new FlagComment200Response(); - - /** - * Model tests for FlagComment200Response - */ - @Test - public void testFlagComment200Response() { - // TODO: test FlagComment200Response - } - - /** - * Test the property 'statusCode' - */ - @Test - public void statusCodeTest() { - // TODO: test statusCode - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'wasUnapproved' - */ - @Test - public void wasUnapprovedTest() { - // TODO: test wasUnapproved - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/FlagCommentPublic200ResponseTest.java b/client/src/test/java/com/fastcomments/model/FlagCommentPublic200ResponseTest.java deleted file mode 100644 index a4fd607e..00000000 --- a/client/src/test/java/com/fastcomments/model/FlagCommentPublic200ResponseTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIEmptyResponse; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FlagCommentPublic200Response - */ -public class FlagCommentPublic200ResponseTest { - private final FlagCommentPublic200Response model = new FlagCommentPublic200Response(); - - /** - * Model tests for FlagCommentPublic200Response - */ - @Test - public void testFlagCommentPublic200Response() { - // TODO: test FlagCommentPublic200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetAuditLogs200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetAuditLogs200ResponseTest.java deleted file mode 100644 index d150a7b0..00000000 --- a/client/src/test/java/com/fastcomments/model/GetAuditLogs200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIAuditLog; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetAuditLogsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetAuditLogs200Response - */ -public class GetAuditLogs200ResponseTest { - private final GetAuditLogs200Response model = new GetAuditLogs200Response(); - - /** - * Model tests for GetAuditLogs200Response - */ - @Test - public void testGetAuditLogs200Response() { - // TODO: test GetAuditLogs200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'auditLogs' - */ - @Test - public void auditLogsTest() { - // TODO: test auditLogs - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetBannedUsersCountResponseTest.java b/client/src/test/java/com/fastcomments/model/GetBannedUsersCountResponseTest.java new file mode 100644 index 00000000..eb37a35c --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetBannedUsersCountResponseTest.java @@ -0,0 +1,56 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetBannedUsersCountResponse + */ +public class GetBannedUsersCountResponseTest { + private final GetBannedUsersCountResponse model = new GetBannedUsersCountResponse(); + + /** + * Model tests for GetBannedUsersCountResponse + */ + @Test + public void testGetBannedUsersCountResponse() { + // TODO: test GetBannedUsersCountResponse + } + + /** + * Test the property 'totalCount' + */ + @Test + public void totalCountTest() { + // TODO: test totalCount + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetBannedUsersFromCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/GetBannedUsersFromCommentResponseTest.java new file mode 100644 index 00000000..2740d4d3 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetBannedUsersFromCommentResponseTest.java @@ -0,0 +1,68 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIBannedUserWithMultiMatchInfo; +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetBannedUsersFromCommentResponse + */ +public class GetBannedUsersFromCommentResponseTest { + private final GetBannedUsersFromCommentResponse model = new GetBannedUsersFromCommentResponse(); + + /** + * Model tests for GetBannedUsersFromCommentResponse + */ + @Test + public void testGetBannedUsersFromCommentResponse() { + // TODO: test GetBannedUsersFromCommentResponse + } + + /** + * Test the property 'bannedUsers' + */ + @Test + public void bannedUsersTest() { + // TODO: test bannedUsers + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetCachedNotificationCount200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCachedNotificationCount200ResponseTest.java deleted file mode 100644 index 2b126c14..00000000 --- a/client/src/test/java/com/fastcomments/model/GetCachedNotificationCount200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetCachedNotificationCountResponse; -import com.fastcomments.model.UserNotificationCount; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetCachedNotificationCount200Response - */ -public class GetCachedNotificationCount200ResponseTest { - private final GetCachedNotificationCount200Response model = new GetCachedNotificationCount200Response(); - - /** - * Model tests for GetCachedNotificationCount200Response - */ - @Test - public void testGetCachedNotificationCount200Response() { - // TODO: test GetCachedNotificationCount200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetComment200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetComment200ResponseTest.java deleted file mode 100644 index fc1b6f3c..00000000 --- a/client/src/test/java/com/fastcomments/model/GetComment200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIComment; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIGetCommentResponse; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetComment200Response - */ -public class GetComment200ResponseTest { - private final GetComment200Response model = new GetComment200Response(); - - /** - * Model tests for GetComment200Response - */ - @Test - public void testGetComment200Response() { - // TODO: test GetComment200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'comment' - */ - @Test - public void commentTest() { - // TODO: test comment - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetCommentBanStatusResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentBanStatusResponseTest.java new file mode 100644 index 00000000..f628c167 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetCommentBanStatusResponseTest.java @@ -0,0 +1,64 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetCommentBanStatusResponse + */ +public class GetCommentBanStatusResponseTest { + private final GetCommentBanStatusResponse model = new GetCommentBanStatusResponse(); + + /** + * Model tests for GetCommentBanStatusResponse + */ + @Test + public void testGetCommentBanStatusResponse() { + // TODO: test GetCommentBanStatusResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'emailDomain' + */ + @Test + public void emailDomainTest() { + // TODO: test emailDomain + } + + /** + * Test the property 'canIPBan' + */ + @Test + public void canIPBanTest() { + // TODO: test canIPBan + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetCommentText200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentText200ResponseTest.java deleted file mode 100644 index 0c9d4ec8..00000000 --- a/client/src/test/java/com/fastcomments/model/GetCommentText200ResponseTest.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.PublicAPIGetCommentTextResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetCommentText200Response - */ -public class GetCommentText200ResponseTest { - private final GetCommentText200Response model = new GetCommentText200Response(); - - /** - * Model tests for GetCommentText200Response - */ - @Test - public void testGetCommentText200Response() { - // TODO: test GetCommentText200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'commentText' - */ - @Test - public void commentTextTest() { - // TODO: test commentText - } - - /** - * Test the property 'sanitizedCommentText' - */ - @Test - public void sanitizedCommentTextTest() { - // TODO: test sanitizedCommentText - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetCommentTextResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentTextResponseTest.java new file mode 100644 index 00000000..4e7dee94 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetCommentTextResponseTest.java @@ -0,0 +1,57 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetCommentTextResponse + */ +public class GetCommentTextResponseTest { + private final GetCommentTextResponse model = new GetCommentTextResponse(); + + /** + * Model tests for GetCommentTextResponse + */ + @Test + public void testGetCommentTextResponse() { + // TODO: test GetCommentTextResponse + } + + /** + * Test the property 'comment' + */ + @Test + public void commentTest() { + // TODO: test comment + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetCommentVoteUserNames200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentVoteUserNames200ResponseTest.java deleted file mode 100644 index 181f3471..00000000 --- a/client/src/test/java/com/fastcomments/model/GetCommentVoteUserNames200ResponseTest.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetCommentVoteUserNamesSuccessResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetCommentVoteUserNames200Response - */ -public class GetCommentVoteUserNames200ResponseTest { - private final GetCommentVoteUserNames200Response model = new GetCommentVoteUserNames200Response(); - - /** - * Model tests for GetCommentVoteUserNames200Response - */ - @Test - public void testGetCommentVoteUserNames200Response() { - // TODO: test GetCommentVoteUserNames200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'voteUserNames' - */ - @Test - public void voteUserNamesTest() { - // TODO: test voteUserNames - } - - /** - * Test the property 'hasMore' - */ - @Test - public void hasMoreTest() { - // TODO: test hasMore - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetComments200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetComments200ResponseTest.java deleted file mode 100644 index 7f9781e6..00000000 --- a/client/src/test/java/com/fastcomments/model/GetComments200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIComment; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIGetCommentsResponse; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetComments200Response - */ -public class GetComments200ResponseTest { - private final GetComments200Response model = new GetComments200Response(); - - /** - * Model tests for GetComments200Response - */ - @Test - public void testGetComments200Response() { - // TODO: test GetComments200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'comments' - */ - @Test - public void commentsTest() { - // TODO: test comments - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetCommentsForUserResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentsForUserResponseTest.java new file mode 100644 index 00000000..36f40282 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetCommentsForUserResponseTest.java @@ -0,0 +1,51 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetCommentsForUserResponse + */ +public class GetCommentsForUserResponseTest { + private final GetCommentsForUserResponse model = new GetCommentsForUserResponse(); + + /** + * Model tests for GetCommentsForUserResponse + */ + @Test + public void testGetCommentsForUserResponse() { + // TODO: test GetCommentsForUserResponse + } + + /** + * Test the property 'moderatingTenantIds' + */ + @Test + public void moderatingTenantIdsTest() { + // TODO: test moderatingTenantIds + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetCommentsPublic200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentsPublic200ResponseTest.java deleted file mode 100644 index 41517c74..00000000 --- a/client/src/test/java/com/fastcomments/model/GetCommentsPublic200ResponseTest.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetCommentsResponseWithPresencePublicComment; -import com.fastcomments.model.PublicComment; -import com.fastcomments.model.UserSessionInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetCommentsPublic200Response - */ -public class GetCommentsPublic200ResponseTest { - private final GetCommentsPublic200Response model = new GetCommentsPublic200Response(); - - /** - * Model tests for GetCommentsPublic200Response - */ - @Test - public void testGetCommentsPublic200Response() { - // TODO: test GetCommentsPublic200Response - } - - /** - * Test the property 'statusCode' - */ - @Test - public void statusCodeTest() { - // TODO: test statusCode - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'translatedWarning' - */ - @Test - public void translatedWarningTest() { - // TODO: test translatedWarning - } - - /** - * Test the property 'comments' - */ - @Test - public void commentsTest() { - // TODO: test comments - } - - /** - * Test the property 'user' - */ - @Test - public void userTest() { - // TODO: test user - } - - /** - * Test the property 'urlIdClean' - */ - @Test - public void urlIdCleanTest() { - // TODO: test urlIdClean - } - - /** - * Test the property 'lastGenDate' - */ - @Test - public void lastGenDateTest() { - // TODO: test lastGenDate - } - - /** - * Test the property 'includesPastPages' - */ - @Test - public void includesPastPagesTest() { - // TODO: test includesPastPages - } - - /** - * Test the property 'isDemo' - */ - @Test - public void isDemoTest() { - // TODO: test isDemo - } - - /** - * Test the property 'commentCount' - */ - @Test - public void commentCountTest() { - // TODO: test commentCount - } - - /** - * Test the property 'isSiteAdmin' - */ - @Test - public void isSiteAdminTest() { - // TODO: test isSiteAdmin - } - - /** - * Test the property 'hasBillingIssue' - */ - @Test - public void hasBillingIssueTest() { - // TODO: test hasBillingIssue - } - - /** - * Test the property 'moduleData' - */ - @Test - public void moduleDataTest() { - // TODO: test moduleData - } - - /** - * Test the property 'pageNumber' - */ - @Test - public void pageNumberTest() { - // TODO: test pageNumber - } - - /** - * Test the property 'isWhiteLabeled' - */ - @Test - public void isWhiteLabeledTest() { - // TODO: test isWhiteLabeled - } - - /** - * Test the property 'isProd' - */ - @Test - public void isProdTest() { - // TODO: test isProd - } - - /** - * Test the property 'isCrawler' - */ - @Test - public void isCrawlerTest() { - // TODO: test isCrawler - } - - /** - * Test the property 'notificationCount' - */ - @Test - public void notificationCountTest() { - // TODO: test notificationCount - } - - /** - * Test the property 'hasMore' - */ - @Test - public void hasMoreTest() { - // TODO: test hasMore - } - - /** - * Test the property 'isClosed' - */ - @Test - public void isClosedTest() { - // TODO: test isClosed - } - - /** - * Test the property 'presencePollState' - */ - @Test - public void presencePollStateTest() { - // TODO: test presencePollState - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - - /** - * Test the property 'urlIdWS' - */ - @Test - public void urlIdWSTest() { - // TODO: test urlIdWS - } - - /** - * Test the property 'userIdWS' - */ - @Test - public void userIdWSTest() { - // TODO: test userIdWS - } - - /** - * Test the property 'tenantIdWS' - */ - @Test - public void tenantIdWSTest() { - // TODO: test tenantIdWS - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - -} diff --git a/client/src/test/java/com/fastcomments/model/AddDomainConfig200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetDomainConfigResponseTest.java similarity index 74% rename from client/src/test/java/com/fastcomments/model/AddDomainConfig200ResponseTest.java rename to client/src/test/java/com/fastcomments/model/GetDomainConfigResponseTest.java index 7f3746bb..f53cad7e 100644 --- a/client/src/test/java/com/fastcomments/model/AddDomainConfig200ResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/GetDomainConfigResponseTest.java @@ -13,8 +13,8 @@ package com.fastcomments.model; -import com.fastcomments.model.AddDomainConfig200ResponseAnyOf; -import com.fastcomments.model.GetDomainConfigs200ResponseAnyOf1; +import com.fastcomments.model.AddDomainConfigResponseAnyOf; +import com.fastcomments.model.GetDomainConfigsResponseAnyOf1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,49 +26,49 @@ import org.junit.jupiter.api.Test; /** - * Model tests for AddDomainConfig200Response + * Model tests for GetDomainConfigResponse */ -public class AddDomainConfig200ResponseTest { - private final AddDomainConfig200Response model = new AddDomainConfig200Response(); +public class GetDomainConfigResponseTest { + private final GetDomainConfigResponse model = new GetDomainConfigResponse(); /** - * Model tests for AddDomainConfig200Response + * Model tests for GetDomainConfigResponse */ @Test - public void testAddDomainConfig200Response() { - // TODO: test AddDomainConfig200Response + public void testGetDomainConfigResponse() { + // TODO: test GetDomainConfigResponse } /** - * Test the property 'reason' + * Test the property '_configuration' */ @Test - public void reasonTest() { - // TODO: test reason + public void _configurationTest() { + // TODO: test _configuration } /** - * Test the property 'code' + * Test the property 'status' */ @Test - public void codeTest() { - // TODO: test code + public void statusTest() { + // TODO: test status } /** - * Test the property 'status' + * Test the property 'reason' */ @Test - public void statusTest() { - // TODO: test status + public void reasonTest() { + // TODO: test reason } /** - * Test the property '_configuration' + * Test the property 'code' */ @Test - public void _configurationTest() { - // TODO: test _configuration + public void codeTest() { + // TODO: test code } } diff --git a/client/src/test/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOf1Test.java b/client/src/test/java/com/fastcomments/model/GetDomainConfigsResponseAnyOf1Test.java similarity index 75% rename from client/src/test/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOf1Test.java rename to client/src/test/java/com/fastcomments/model/GetDomainConfigsResponseAnyOf1Test.java index fb4481a5..06680856 100644 --- a/client/src/test/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOf1Test.java +++ b/client/src/test/java/com/fastcomments/model/GetDomainConfigsResponseAnyOf1Test.java @@ -24,17 +24,17 @@ import org.junit.jupiter.api.Test; /** - * Model tests for GetDomainConfigs200ResponseAnyOf1 + * Model tests for GetDomainConfigsResponseAnyOf1 */ -public class GetDomainConfigs200ResponseAnyOf1Test { - private final GetDomainConfigs200ResponseAnyOf1 model = new GetDomainConfigs200ResponseAnyOf1(); +public class GetDomainConfigsResponseAnyOf1Test { + private final GetDomainConfigsResponseAnyOf1 model = new GetDomainConfigsResponseAnyOf1(); /** - * Model tests for GetDomainConfigs200ResponseAnyOf1 + * Model tests for GetDomainConfigsResponseAnyOf1 */ @Test - public void testGetDomainConfigs200ResponseAnyOf1() { - // TODO: test GetDomainConfigs200ResponseAnyOf1 + public void testGetDomainConfigsResponseAnyOf1() { + // TODO: test GetDomainConfigsResponseAnyOf1 } /** diff --git a/client/src/test/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOfTest.java b/client/src/test/java/com/fastcomments/model/GetDomainConfigsResponseAnyOfTest.java similarity index 74% rename from client/src/test/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOfTest.java rename to client/src/test/java/com/fastcomments/model/GetDomainConfigsResponseAnyOfTest.java index 295821ca..3f5212b4 100644 --- a/client/src/test/java/com/fastcomments/model/GetDomainConfigs200ResponseAnyOfTest.java +++ b/client/src/test/java/com/fastcomments/model/GetDomainConfigsResponseAnyOfTest.java @@ -24,17 +24,17 @@ import org.junit.jupiter.api.Test; /** - * Model tests for GetDomainConfigs200ResponseAnyOf + * Model tests for GetDomainConfigsResponseAnyOf */ -public class GetDomainConfigs200ResponseAnyOfTest { - private final GetDomainConfigs200ResponseAnyOf model = new GetDomainConfigs200ResponseAnyOf(); +public class GetDomainConfigsResponseAnyOfTest { + private final GetDomainConfigsResponseAnyOf model = new GetDomainConfigsResponseAnyOf(); /** - * Model tests for GetDomainConfigs200ResponseAnyOf + * Model tests for GetDomainConfigsResponseAnyOf */ @Test - public void testGetDomainConfigs200ResponseAnyOf() { - // TODO: test GetDomainConfigs200ResponseAnyOf + public void testGetDomainConfigsResponseAnyOf() { + // TODO: test GetDomainConfigsResponseAnyOf } /** diff --git a/client/src/test/java/com/fastcomments/model/GetDomainConfigs200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetDomainConfigsResponseTest.java similarity index 74% rename from client/src/test/java/com/fastcomments/model/GetDomainConfigs200ResponseTest.java rename to client/src/test/java/com/fastcomments/model/GetDomainConfigsResponseTest.java index b9c88602..b2070aa8 100644 --- a/client/src/test/java/com/fastcomments/model/GetDomainConfigs200ResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/GetDomainConfigsResponseTest.java @@ -13,8 +13,8 @@ package com.fastcomments.model; -import com.fastcomments.model.GetDomainConfigs200ResponseAnyOf; -import com.fastcomments.model.GetDomainConfigs200ResponseAnyOf1; +import com.fastcomments.model.GetDomainConfigsResponseAnyOf; +import com.fastcomments.model.GetDomainConfigsResponseAnyOf1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,17 +26,17 @@ import org.junit.jupiter.api.Test; /** - * Model tests for GetDomainConfigs200Response + * Model tests for GetDomainConfigsResponse */ -public class GetDomainConfigs200ResponseTest { - private final GetDomainConfigs200Response model = new GetDomainConfigs200Response(); +public class GetDomainConfigsResponseTest { + private final GetDomainConfigsResponse model = new GetDomainConfigsResponse(); /** - * Model tests for GetDomainConfigs200Response + * Model tests for GetDomainConfigsResponse */ @Test - public void testGetDomainConfigs200Response() { - // TODO: test GetDomainConfigs200Response + public void testGetDomainConfigsResponse() { + // TODO: test GetDomainConfigsResponse } /** diff --git a/client/src/test/java/com/fastcomments/model/GetEmailTemplate200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetEmailTemplate200ResponseTest.java deleted file mode 100644 index c016cd4d..00000000 --- a/client/src/test/java/com/fastcomments/model/GetEmailTemplate200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.CustomEmailTemplate; -import com.fastcomments.model.GetEmailTemplateResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetEmailTemplate200Response - */ -public class GetEmailTemplate200ResponseTest { - private final GetEmailTemplate200Response model = new GetEmailTemplate200Response(); - - /** - * Model tests for GetEmailTemplate200Response - */ - @Test - public void testGetEmailTemplate200Response() { - // TODO: test GetEmailTemplate200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'emailTemplate' - */ - @Test - public void emailTemplateTest() { - // TODO: test emailTemplate - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetEmailTemplateDefinitions200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetEmailTemplateDefinitions200ResponseTest.java deleted file mode 100644 index 9a503a35..00000000 --- a/client/src/test/java/com/fastcomments/model/GetEmailTemplateDefinitions200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.EmailTemplateDefinition; -import com.fastcomments.model.GetEmailTemplateDefinitionsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetEmailTemplateDefinitions200Response - */ -public class GetEmailTemplateDefinitions200ResponseTest { - private final GetEmailTemplateDefinitions200Response model = new GetEmailTemplateDefinitions200Response(); - - /** - * Model tests for GetEmailTemplateDefinitions200Response - */ - @Test - public void testGetEmailTemplateDefinitions200Response() { - // TODO: test GetEmailTemplateDefinitions200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'definitions' - */ - @Test - public void definitionsTest() { - // TODO: test definitions - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetEmailTemplateRenderErrors200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetEmailTemplateRenderErrors200ResponseTest.java deleted file mode 100644 index 7d5bf8ae..00000000 --- a/client/src/test/java/com/fastcomments/model/GetEmailTemplateRenderErrors200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.EmailTemplateRenderErrorResponse; -import com.fastcomments.model.GetEmailTemplateRenderErrorsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetEmailTemplateRenderErrors200Response - */ -public class GetEmailTemplateRenderErrors200ResponseTest { - private final GetEmailTemplateRenderErrors200Response model = new GetEmailTemplateRenderErrors200Response(); - - /** - * Model tests for GetEmailTemplateRenderErrors200Response - */ - @Test - public void testGetEmailTemplateRenderErrors200Response() { - // TODO: test GetEmailTemplateRenderErrors200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'renderErrors' - */ - @Test - public void renderErrorsTest() { - // TODO: test renderErrors - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetEmailTemplates200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetEmailTemplates200ResponseTest.java deleted file mode 100644 index 505a0836..00000000 --- a/client/src/test/java/com/fastcomments/model/GetEmailTemplates200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.CustomEmailTemplate; -import com.fastcomments.model.GetEmailTemplatesResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetEmailTemplates200Response - */ -public class GetEmailTemplates200ResponseTest { - private final GetEmailTemplates200Response model = new GetEmailTemplates200Response(); - - /** - * Model tests for GetEmailTemplates200Response - */ - @Test - public void testGetEmailTemplates200Response() { - // TODO: test GetEmailTemplates200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'emailTemplates' - */ - @Test - public void emailTemplatesTest() { - // TODO: test emailTemplates - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetEventLog200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetEventLog200ResponseTest.java deleted file mode 100644 index e2e9dbff..00000000 --- a/client/src/test/java/com/fastcomments/model/GetEventLog200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.EventLogEntry; -import com.fastcomments.model.GetEventLogResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetEventLog200Response - */ -public class GetEventLog200ResponseTest { - private final GetEventLog200Response model = new GetEventLog200Response(); - - /** - * Model tests for GetEventLog200Response - */ - @Test - public void testGetEventLog200Response() { - // TODO: test GetEventLog200Response - } - - /** - * Test the property 'events' - */ - @Test - public void eventsTest() { - // TODO: test events - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetFeedPosts200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetFeedPosts200ResponseTest.java deleted file mode 100644 index 23df35e3..00000000 --- a/client/src/test/java/com/fastcomments/model/GetFeedPosts200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FeedPost; -import com.fastcomments.model.GetFeedPostsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetFeedPosts200Response - */ -public class GetFeedPosts200ResponseTest { - private final GetFeedPosts200Response model = new GetFeedPosts200Response(); - - /** - * Model tests for GetFeedPosts200Response - */ - @Test - public void testGetFeedPosts200Response() { - // TODO: test GetFeedPosts200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'feedPosts' - */ - @Test - public void feedPostsTest() { - // TODO: test feedPosts - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetFeedPostsPublic200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetFeedPostsPublic200ResponseTest.java deleted file mode 100644 index 8b677146..00000000 --- a/client/src/test/java/com/fastcomments/model/GetFeedPostsPublic200ResponseTest.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FeedPost; -import com.fastcomments.model.PublicFeedPostsResponse; -import com.fastcomments.model.UserSessionInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetFeedPostsPublic200Response - */ -public class GetFeedPostsPublic200ResponseTest { - private final GetFeedPostsPublic200Response model = new GetFeedPostsPublic200Response(); - - /** - * Model tests for GetFeedPostsPublic200Response - */ - @Test - public void testGetFeedPostsPublic200Response() { - // TODO: test GetFeedPostsPublic200Response - } - - /** - * Test the property 'myReacts' - */ - @Test - public void myReactsTest() { - // TODO: test myReacts - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'feedPosts' - */ - @Test - public void feedPostsTest() { - // TODO: test feedPosts - } - - /** - * Test the property 'user' - */ - @Test - public void userTest() { - // TODO: test user - } - - /** - * Test the property 'urlIdWS' - */ - @Test - public void urlIdWSTest() { - // TODO: test urlIdWS - } - - /** - * Test the property 'userIdWS' - */ - @Test - public void userIdWSTest() { - // TODO: test userIdWS - } - - /** - * Test the property 'tenantIdWS' - */ - @Test - public void tenantIdWSTest() { - // TODO: test tenantIdWS - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetFeedPostsStats200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetFeedPostsStats200ResponseTest.java deleted file mode 100644 index 034ffcc9..00000000 --- a/client/src/test/java/com/fastcomments/model/GetFeedPostsStats200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FeedPostStats; -import com.fastcomments.model.FeedPostsStatsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetFeedPostsStats200Response - */ -public class GetFeedPostsStats200ResponseTest { - private final GetFeedPostsStats200Response model = new GetFeedPostsStats200Response(); - - /** - * Model tests for GetFeedPostsStats200Response - */ - @Test - public void testGetFeedPostsStats200Response() { - // TODO: test GetFeedPostsStats200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'stats' - */ - @Test - public void statsTest() { - // TODO: test stats - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetGifsSearchResponseTest.java b/client/src/test/java/com/fastcomments/model/GetGifsSearchResponseTest.java new file mode 100644 index 00000000..08a299d5 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetGifsSearchResponseTest.java @@ -0,0 +1,70 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.GifSearchInternalError; +import com.fastcomments.model.GifSearchResponse; +import com.fastcomments.model.GifSearchResponseImagesInnerInner; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetGifsSearchResponse + */ +public class GetGifsSearchResponseTest { + private final GetGifsSearchResponse model = new GetGifsSearchResponse(); + + /** + * Model tests for GetGifsSearchResponse + */ + @Test + public void testGetGifsSearchResponse() { + // TODO: test GetGifsSearchResponse + } + + /** + * Test the property 'images' + */ + @Test + public void imagesTest() { + // TODO: test images + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetGifsTrendingResponseTest.java b/client/src/test/java/com/fastcomments/model/GetGifsTrendingResponseTest.java new file mode 100644 index 00000000..21eac6ed --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetGifsTrendingResponseTest.java @@ -0,0 +1,70 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.GifSearchInternalError; +import com.fastcomments.model.GifSearchResponse; +import com.fastcomments.model.GifSearchResponseImagesInnerInner; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetGifsTrendingResponse + */ +public class GetGifsTrendingResponseTest { + private final GetGifsTrendingResponse model = new GetGifsTrendingResponse(); + + /** + * Model tests for GetGifsTrendingResponse + */ + @Test + public void testGetGifsTrendingResponse() { + // TODO: test GetGifsTrendingResponse + } + + /** + * Test the property 'images' + */ + @Test + public void imagesTest() { + // TODO: test images + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetHashTags200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetHashTags200ResponseTest.java deleted file mode 100644 index 9eff43b3..00000000 --- a/client/src/test/java/com/fastcomments/model/GetHashTags200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetHashTagsResponse; -import com.fastcomments.model.TenantHashTag; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetHashTags200Response - */ -public class GetHashTags200ResponseTest { - private final GetHashTags200Response model = new GetHashTags200Response(); - - /** - * Model tests for GetHashTags200Response - */ - @Test - public void testGetHashTags200Response() { - // TODO: test GetHashTags200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'hashTags' - */ - @Test - public void hashTagsTest() { - // TODO: test hashTags - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetModerator200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetModerator200ResponseTest.java deleted file mode 100644 index 36fa6425..00000000 --- a/client/src/test/java/com/fastcomments/model/GetModerator200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetModeratorResponse; -import com.fastcomments.model.Moderator; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetModerator200Response - */ -public class GetModerator200ResponseTest { - private final GetModerator200Response model = new GetModerator200Response(); - - /** - * Model tests for GetModerator200Response - */ - @Test - public void testGetModerator200Response() { - // TODO: test GetModerator200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'moderator' - */ - @Test - public void moderatorTest() { - // TODO: test moderator - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetModerators200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetModerators200ResponseTest.java deleted file mode 100644 index 9225e7d7..00000000 --- a/client/src/test/java/com/fastcomments/model/GetModerators200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetModeratorsResponse; -import com.fastcomments.model.Moderator; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetModerators200Response - */ -public class GetModerators200ResponseTest { - private final GetModerators200Response model = new GetModerators200Response(); - - /** - * Model tests for GetModerators200Response - */ - @Test - public void testGetModerators200Response() { - // TODO: test GetModerators200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'moderators' - */ - @Test - public void moderatorsTest() { - // TODO: test moderators - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetNotificationCount200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetNotificationCount200ResponseTest.java deleted file mode 100644 index 51a7a3e7..00000000 --- a/client/src/test/java/com/fastcomments/model/GetNotificationCount200ResponseTest.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetNotificationCountResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetNotificationCount200Response - */ -public class GetNotificationCount200ResponseTest { - private final GetNotificationCount200Response model = new GetNotificationCount200Response(); - - /** - * Model tests for GetNotificationCount200Response - */ - @Test - public void testGetNotificationCount200Response() { - // TODO: test GetNotificationCount200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'count' - */ - @Test - public void countTest() { - // TODO: test count - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetNotifications200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetNotifications200ResponseTest.java deleted file mode 100644 index 473de5b6..00000000 --- a/client/src/test/java/com/fastcomments/model/GetNotifications200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetNotificationsResponse; -import com.fastcomments.model.UserNotification; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetNotifications200Response - */ -public class GetNotifications200ResponseTest { - private final GetNotifications200Response model = new GetNotifications200Response(); - - /** - * Model tests for GetNotifications200Response - */ - @Test - public void testGetNotifications200Response() { - // TODO: test GetNotifications200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'notifications' - */ - @Test - public void notificationsTest() { - // TODO: test notifications - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetPendingWebhookEventCount200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetPendingWebhookEventCount200ResponseTest.java deleted file mode 100644 index 20465798..00000000 --- a/client/src/test/java/com/fastcomments/model/GetPendingWebhookEventCount200ResponseTest.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetPendingWebhookEventCountResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetPendingWebhookEventCount200Response - */ -public class GetPendingWebhookEventCount200ResponseTest { - private final GetPendingWebhookEventCount200Response model = new GetPendingWebhookEventCount200Response(); - - /** - * Model tests for GetPendingWebhookEventCount200Response - */ - @Test - public void testGetPendingWebhookEventCount200Response() { - // TODO: test GetPendingWebhookEventCount200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'count' - */ - @Test - public void countTest() { - // TODO: test count - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetPendingWebhookEvents200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetPendingWebhookEvents200ResponseTest.java deleted file mode 100644 index a0f33d55..00000000 --- a/client/src/test/java/com/fastcomments/model/GetPendingWebhookEvents200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetPendingWebhookEventsResponse; -import com.fastcomments.model.PendingCommentToSyncOutbound; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetPendingWebhookEvents200Response - */ -public class GetPendingWebhookEvents200ResponseTest { - private final GetPendingWebhookEvents200Response model = new GetPendingWebhookEvents200Response(); - - /** - * Model tests for GetPendingWebhookEvents200Response - */ - @Test - public void testGetPendingWebhookEvents200Response() { - // TODO: test GetPendingWebhookEvents200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'pendingWebhookEvents' - */ - @Test - public void pendingWebhookEventsTest() { - // TODO: test pendingWebhookEvents - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetPublicPagesResponseTest.java b/client/src/test/java/com/fastcomments/model/GetPublicPagesResponseTest.java new file mode 100644 index 00000000..a9ed93fe --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetPublicPagesResponseTest.java @@ -0,0 +1,68 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.PublicPage; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetPublicPagesResponse + */ +public class GetPublicPagesResponseTest { + private final GetPublicPagesResponse model = new GetPublicPagesResponse(); + + /** + * Model tests for GetPublicPagesResponse + */ + @Test + public void testGetPublicPagesResponse() { + // TODO: test GetPublicPagesResponse + } + + /** + * Test the property 'nextCursor' + */ + @Test + public void nextCursorTest() { + // TODO: test nextCursor + } + + /** + * Test the property 'pages' + */ + @Test + public void pagesTest() { + // TODO: test pages + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetQuestionConfig200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetQuestionConfig200ResponseTest.java deleted file mode 100644 index c4ffa791..00000000 --- a/client/src/test/java/com/fastcomments/model/GetQuestionConfig200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetQuestionConfigResponse; -import com.fastcomments.model.QuestionConfig; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetQuestionConfig200Response - */ -public class GetQuestionConfig200ResponseTest { - private final GetQuestionConfig200Response model = new GetQuestionConfig200Response(); - - /** - * Model tests for GetQuestionConfig200Response - */ - @Test - public void testGetQuestionConfig200Response() { - // TODO: test GetQuestionConfig200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'questionConfig' - */ - @Test - public void questionConfigTest() { - // TODO: test questionConfig - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetQuestionConfigs200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetQuestionConfigs200ResponseTest.java deleted file mode 100644 index 6c581409..00000000 --- a/client/src/test/java/com/fastcomments/model/GetQuestionConfigs200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetQuestionConfigsResponse; -import com.fastcomments.model.QuestionConfig; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetQuestionConfigs200Response - */ -public class GetQuestionConfigs200ResponseTest { - private final GetQuestionConfigs200Response model = new GetQuestionConfigs200Response(); - - /** - * Model tests for GetQuestionConfigs200Response - */ - @Test - public void testGetQuestionConfigs200Response() { - // TODO: test GetQuestionConfigs200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'questionConfigs' - */ - @Test - public void questionConfigsTest() { - // TODO: test questionConfigs - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetQuestionResult200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetQuestionResult200ResponseTest.java deleted file mode 100644 index dd6a6da4..00000000 --- a/client/src/test/java/com/fastcomments/model/GetQuestionResult200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetQuestionResultResponse; -import com.fastcomments.model.QuestionResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetQuestionResult200Response - */ -public class GetQuestionResult200ResponseTest { - private final GetQuestionResult200Response model = new GetQuestionResult200Response(); - - /** - * Model tests for GetQuestionResult200Response - */ - @Test - public void testGetQuestionResult200Response() { - // TODO: test GetQuestionResult200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'questionResult' - */ - @Test - public void questionResultTest() { - // TODO: test questionResult - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetQuestionResults200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetQuestionResults200ResponseTest.java deleted file mode 100644 index 8ae40f65..00000000 --- a/client/src/test/java/com/fastcomments/model/GetQuestionResults200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetQuestionResultsResponse; -import com.fastcomments.model.QuestionResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetQuestionResults200Response - */ -public class GetQuestionResults200ResponseTest { - private final GetQuestionResults200Response model = new GetQuestionResults200Response(); - - /** - * Model tests for GetQuestionResults200Response - */ - @Test - public void testGetQuestionResults200Response() { - // TODO: test GetQuestionResults200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'questionResults' - */ - @Test - public void questionResultsTest() { - // TODO: test questionResults - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetSSOUsers200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetSSOUsersResponseTest.java similarity index 79% rename from client/src/test/java/com/fastcomments/model/GetSSOUsers200ResponseTest.java rename to client/src/test/java/com/fastcomments/model/GetSSOUsersResponseTest.java index c155c7cc..f3c68a3b 100644 --- a/client/src/test/java/com/fastcomments/model/GetSSOUsers200ResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/GetSSOUsersResponseTest.java @@ -27,17 +27,17 @@ import org.junit.jupiter.api.Test; /** - * Model tests for GetSSOUsers200Response + * Model tests for GetSSOUsersResponse */ -public class GetSSOUsers200ResponseTest { - private final GetSSOUsers200Response model = new GetSSOUsers200Response(); +public class GetSSOUsersResponseTest { + private final GetSSOUsersResponse model = new GetSSOUsersResponse(); /** - * Model tests for GetSSOUsers200Response + * Model tests for GetSSOUsersResponse */ @Test - public void testGetSSOUsers200Response() { - // TODO: test GetSSOUsers200Response + public void testGetSSOUsersResponse() { + // TODO: test GetSSOUsersResponse } /** diff --git a/client/src/test/java/com/fastcomments/model/GetTenant200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetTenant200ResponseTest.java deleted file mode 100644 index 5e183936..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTenant200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITenant; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTenantResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetTenant200Response - */ -public class GetTenant200ResponseTest { - private final GetTenant200Response model = new GetTenant200Response(); - - /** - * Model tests for GetTenant200Response - */ - @Test - public void testGetTenant200Response() { - // TODO: test GetTenant200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'tenant' - */ - @Test - public void tenantTest() { - // TODO: test tenant - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetTenantDailyUsages200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetTenantDailyUsages200ResponseTest.java deleted file mode 100644 index 78b2f101..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTenantDailyUsages200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITenantDailyUsage; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTenantDailyUsagesResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetTenantDailyUsages200Response - */ -public class GetTenantDailyUsages200ResponseTest { - private final GetTenantDailyUsages200Response model = new GetTenantDailyUsages200Response(); - - /** - * Model tests for GetTenantDailyUsages200Response - */ - @Test - public void testGetTenantDailyUsages200Response() { - // TODO: test GetTenantDailyUsages200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'tenantDailyUsages' - */ - @Test - public void tenantDailyUsagesTest() { - // TODO: test tenantDailyUsages - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetTenantManualBadgesResponseTest.java b/client/src/test/java/com/fastcomments/model/GetTenantManualBadgesResponseTest.java new file mode 100644 index 00000000..b918ae03 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetTenantManualBadgesResponseTest.java @@ -0,0 +1,60 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.TenantBadge; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetTenantManualBadgesResponse + */ +public class GetTenantManualBadgesResponseTest { + private final GetTenantManualBadgesResponse model = new GetTenantManualBadgesResponse(); + + /** + * Model tests for GetTenantManualBadgesResponse + */ + @Test + public void testGetTenantManualBadgesResponse() { + // TODO: test GetTenantManualBadgesResponse + } + + /** + * Test the property 'badges' + */ + @Test + public void badgesTest() { + // TODO: test badges + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetTenantPackage200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetTenantPackage200ResponseTest.java deleted file mode 100644 index ed9ce4ba..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTenantPackage200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTenantPackageResponse; -import com.fastcomments.model.TenantPackage; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetTenantPackage200Response - */ -public class GetTenantPackage200ResponseTest { - private final GetTenantPackage200Response model = new GetTenantPackage200Response(); - - /** - * Model tests for GetTenantPackage200Response - */ - @Test - public void testGetTenantPackage200Response() { - // TODO: test GetTenantPackage200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'tenantPackage' - */ - @Test - public void tenantPackageTest() { - // TODO: test tenantPackage - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetTenantPackages200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetTenantPackages200ResponseTest.java deleted file mode 100644 index 7f074499..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTenantPackages200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTenantPackagesResponse; -import com.fastcomments.model.TenantPackage; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetTenantPackages200Response - */ -public class GetTenantPackages200ResponseTest { - private final GetTenantPackages200Response model = new GetTenantPackages200Response(); - - /** - * Model tests for GetTenantPackages200Response - */ - @Test - public void testGetTenantPackages200Response() { - // TODO: test GetTenantPackages200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'tenantPackages' - */ - @Test - public void tenantPackagesTest() { - // TODO: test tenantPackages - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetTenantUser200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetTenantUser200ResponseTest.java deleted file mode 100644 index dec50a23..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTenantUser200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTenantUserResponse; -import com.fastcomments.model.User; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetTenantUser200Response - */ -public class GetTenantUser200ResponseTest { - private final GetTenantUser200Response model = new GetTenantUser200Response(); - - /** - * Model tests for GetTenantUser200Response - */ - @Test - public void testGetTenantUser200Response() { - // TODO: test GetTenantUser200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'tenantUser' - */ - @Test - public void tenantUserTest() { - // TODO: test tenantUser - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetTenantUsers200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetTenantUsers200ResponseTest.java deleted file mode 100644 index 344f1db4..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTenantUsers200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTenantUsersResponse; -import com.fastcomments.model.User; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetTenantUsers200Response - */ -public class GetTenantUsers200ResponseTest { - private final GetTenantUsers200Response model = new GetTenantUsers200Response(); - - /** - * Model tests for GetTenantUsers200Response - */ - @Test - public void testGetTenantUsers200Response() { - // TODO: test GetTenantUsers200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'tenantUsers' - */ - @Test - public void tenantUsersTest() { - // TODO: test tenantUsers - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetTenants200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetTenants200ResponseTest.java deleted file mode 100644 index 500a62c5..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTenants200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITenant; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTenantsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetTenants200Response - */ -public class GetTenants200ResponseTest { - private final GetTenants200Response model = new GetTenants200Response(); - - /** - * Model tests for GetTenants200Response - */ - @Test - public void testGetTenants200Response() { - // TODO: test GetTenants200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'tenants' - */ - @Test - public void tenantsTest() { - // TODO: test tenants - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetTicket200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetTicket200ResponseTest.java deleted file mode 100644 index 726d78df..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTicket200ResponseTest.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITicketDetail; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTicketResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetTicket200Response - */ -public class GetTicket200ResponseTest { - private final GetTicket200Response model = new GetTicket200Response(); - - /** - * Model tests for GetTicket200Response - */ - @Test - public void testGetTicket200Response() { - // TODO: test GetTicket200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'ticket' - */ - @Test - public void ticketTest() { - // TODO: test ticket - } - - /** - * Test the property 'availableStates' - */ - @Test - public void availableStatesTest() { - // TODO: test availableStates - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetTickets200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetTickets200ResponseTest.java deleted file mode 100644 index ff26580c..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTickets200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.APITicket; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetTicketsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetTickets200Response - */ -public class GetTickets200ResponseTest { - private final GetTickets200Response model = new GetTickets200Response(); - - /** - * Model tests for GetTickets200Response - */ - @Test - public void testGetTickets200Response() { - // TODO: test GetTickets200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'tickets' - */ - @Test - public void ticketsTest() { - // TODO: test tickets - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetTranslationsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetTranslationsResponseTest.java new file mode 100644 index 00000000..4519dfeb --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetTranslationsResponseTest.java @@ -0,0 +1,59 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetTranslationsResponse + */ +public class GetTranslationsResponseTest { + private final GetTranslationsResponse model = new GetTranslationsResponse(); + + /** + * Model tests for GetTranslationsResponse + */ + @Test + public void testGetTranslationsResponse() { + // TODO: test GetTranslationsResponse + } + + /** + * Test the property 'translations' + */ + @Test + public void translationsTest() { + // TODO: test translations + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetUser200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUser200ResponseTest.java deleted file mode 100644 index 241477b7..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUser200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetUserResponse; -import com.fastcomments.model.User; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetUser200Response - */ -public class GetUser200ResponseTest { - private final GetUser200Response model = new GetUser200Response(); - - /** - * Model tests for GetUser200Response - */ - @Test - public void testGetUser200Response() { - // TODO: test GetUser200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'user' - */ - @Test - public void userTest() { - // TODO: test user - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetUserBadge200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBadge200ResponseTest.java deleted file mode 100644 index 4e9d8f54..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserBadge200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIGetUserBadgeResponse; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.UserBadge; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetUserBadge200Response - */ -public class GetUserBadge200ResponseTest { - private final GetUserBadge200Response model = new GetUserBadge200Response(); - - /** - * Model tests for GetUserBadge200Response - */ - @Test - public void testGetUserBadge200Response() { - // TODO: test GetUserBadge200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'userBadge' - */ - @Test - public void userBadgeTest() { - // TODO: test userBadge - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressById200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressById200ResponseTest.java deleted file mode 100644 index 904d340c..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressById200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIGetUserBadgeProgressResponse; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.UserBadgeProgress; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetUserBadgeProgressById200Response - */ -public class GetUserBadgeProgressById200ResponseTest { - private final GetUserBadgeProgressById200Response model = new GetUserBadgeProgressById200Response(); - - /** - * Model tests for GetUserBadgeProgressById200Response - */ - @Test - public void testGetUserBadgeProgressById200Response() { - // TODO: test GetUserBadgeProgressById200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'userBadgeProgress' - */ - @Test - public void userBadgeProgressTest() { - // TODO: test userBadgeProgress - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressList200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressList200ResponseTest.java deleted file mode 100644 index 80d35503..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressList200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIGetUserBadgeProgressListResponse; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.UserBadgeProgress; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetUserBadgeProgressList200Response - */ -public class GetUserBadgeProgressList200ResponseTest { - private final GetUserBadgeProgressList200Response model = new GetUserBadgeProgressList200Response(); - - /** - * Model tests for GetUserBadgeProgressList200Response - */ - @Test - public void testGetUserBadgeProgressList200Response() { - // TODO: test GetUserBadgeProgressList200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'userBadgeProgresses' - */ - @Test - public void userBadgeProgressesTest() { - // TODO: test userBadgeProgresses - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetUserBadges200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBadges200ResponseTest.java deleted file mode 100644 index 71560362..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserBadges200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIGetUserBadgesResponse; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.UserBadge; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetUserBadges200Response - */ -public class GetUserBadges200ResponseTest { - private final GetUserBadges200Response model = new GetUserBadges200Response(); - - /** - * Model tests for GetUserBadges200Response - */ - @Test - public void testGetUserBadges200Response() { - // TODO: test GetUserBadges200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'userBadges' - */ - @Test - public void userBadgesTest() { - // TODO: test userBadges - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetUserInternalProfileResponseProfileTest.java b/client/src/test/java/com/fastcomments/model/GetUserInternalProfileResponseProfileTest.java new file mode 100644 index 00000000..9afbcfa7 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserInternalProfileResponseProfileTest.java @@ -0,0 +1,177 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetUserInternalProfileResponseProfile + */ +public class GetUserInternalProfileResponseProfileTest { + private final GetUserInternalProfileResponseProfile model = new GetUserInternalProfileResponseProfile(); + + /** + * Model tests for GetUserInternalProfileResponseProfile + */ + @Test + public void testGetUserInternalProfileResponseProfile() { + // TODO: test GetUserInternalProfileResponseProfile + } + + /** + * Test the property 'commenterName' + */ + @Test + public void commenterNameTest() { + // TODO: test commenterName + } + + /** + * Test the property 'firstCommentDate' + */ + @Test + public void firstCommentDateTest() { + // TODO: test firstCommentDate + } + + /** + * Test the property 'ipHash' + */ + @Test + public void ipHashTest() { + // TODO: test ipHash + } + + /** + * Test the property 'countryFlag' + */ + @Test + public void countryFlagTest() { + // TODO: test countryFlag + } + + /** + * Test the property 'countryCode' + */ + @Test + public void countryCodeTest() { + // TODO: test countryCode + } + + /** + * Test the property 'websiteUrl' + */ + @Test + public void websiteUrlTest() { + // TODO: test websiteUrl + } + + /** + * Test the property 'bio' + */ + @Test + public void bioTest() { + // TODO: test bio + } + + /** + * Test the property 'karma' + */ + @Test + public void karmaTest() { + // TODO: test karma + } + + /** + * Test the property 'locale' + */ + @Test + public void localeTest() { + // TODO: test locale + } + + /** + * Test the property 'verified' + */ + @Test + public void verifiedTest() { + // TODO: test verified + } + + /** + * Test the property 'avatarSrc' + */ + @Test + public void avatarSrcTest() { + // TODO: test avatarSrc + } + + /** + * Test the property 'displayName' + */ + @Test + public void displayNameTest() { + // TODO: test displayName + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'commenterEmail' + */ + @Test + public void commenterEmailTest() { + // TODO: test commenterEmail + } + + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } + + /** + * Test the property 'anonUserId' + */ + @Test + public void anonUserIdTest() { + // TODO: test anonUserId + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetUserInternalProfileResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserInternalProfileResponseTest.java new file mode 100644 index 00000000..aa721434 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserInternalProfileResponseTest.java @@ -0,0 +1,58 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.GetUserInternalProfileResponseProfile; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetUserInternalProfileResponse + */ +public class GetUserInternalProfileResponseTest { + private final GetUserInternalProfileResponse model = new GetUserInternalProfileResponse(); + + /** + * Model tests for GetUserInternalProfileResponse + */ + @Test + public void testGetUserInternalProfileResponse() { + // TODO: test GetUserInternalProfileResponse + } + + /** + * Test the property 'profile' + */ + @Test + public void profileTest() { + // TODO: test profile + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetUserManualBadgesResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserManualBadgesResponseTest.java new file mode 100644 index 00000000..bb64fa63 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserManualBadgesResponseTest.java @@ -0,0 +1,60 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.UserBadge; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetUserManualBadgesResponse + */ +public class GetUserManualBadgesResponseTest { + private final GetUserManualBadgesResponse model = new GetUserManualBadgesResponse(); + + /** + * Model tests for GetUserManualBadgesResponse + */ + @Test + public void testGetUserManualBadgesResponse() { + // TODO: test GetUserManualBadgesResponse + } + + /** + * Test the property 'badges' + */ + @Test + public void badgesTest() { + // TODO: test badges + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetUserNotificationCount200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserNotificationCount200ResponseTest.java deleted file mode 100644 index 76f0b03d..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserNotificationCount200ResponseTest.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetUserNotificationCountResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetUserNotificationCount200Response - */ -public class GetUserNotificationCount200ResponseTest { - private final GetUserNotificationCount200Response model = new GetUserNotificationCount200Response(); - - /** - * Model tests for GetUserNotificationCount200Response - */ - @Test - public void testGetUserNotificationCount200Response() { - // TODO: test GetUserNotificationCount200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'count' - */ - @Test - public void countTest() { - // TODO: test count - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetUserNotifications200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserNotifications200ResponseTest.java deleted file mode 100644 index 3041609f..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserNotifications200ResponseTest.java +++ /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 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetMyNotificationsResponse; -import com.fastcomments.model.RenderableUserNotification; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetUserNotifications200Response - */ -public class GetUserNotifications200ResponseTest { - private final GetUserNotifications200Response model = new GetUserNotifications200Response(); - - /** - * Model tests for GetUserNotifications200Response - */ - @Test - public void testGetUserNotifications200Response() { - // TODO: test GetUserNotifications200Response - } - - /** - * Test the property 'translations' - */ - @Test - public void translationsTest() { - // TODO: test translations - } - - /** - * Test the property 'isSubscribed' - */ - @Test - public void isSubscribedTest() { - // TODO: test isSubscribed - } - - /** - * Test the property 'hasMore' - */ - @Test - public void hasMoreTest() { - // TODO: test hasMore - } - - /** - * Test the property 'notifications' - */ - @Test - public void notificationsTest() { - // TODO: test notifications - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetUserPresenceStatuses200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserPresenceStatuses200ResponseTest.java deleted file mode 100644 index 76f34893..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserPresenceStatuses200ResponseTest.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetUserPresenceStatusesResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetUserPresenceStatuses200Response - */ -public class GetUserPresenceStatuses200ResponseTest { - private final GetUserPresenceStatuses200Response model = new GetUserPresenceStatuses200Response(); - - /** - * Model tests for GetUserPresenceStatuses200Response - */ - @Test - public void testGetUserPresenceStatuses200Response() { - // TODO: test GetUserPresenceStatuses200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'userIdsOnline' - */ - @Test - public void userIdsOnlineTest() { - // TODO: test userIdsOnline - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetUserReactsPublic200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserReactsPublic200ResponseTest.java deleted file mode 100644 index cd45852c..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserReactsPublic200ResponseTest.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.UserReactsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetUserReactsPublic200Response - */ -public class GetUserReactsPublic200ResponseTest { - private final GetUserReactsPublic200Response model = new GetUserReactsPublic200Response(); - - /** - * Model tests for GetUserReactsPublic200Response - */ - @Test - public void testGetUserReactsPublic200Response() { - // TODO: test GetUserReactsPublic200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'reacts' - */ - @Test - public void reactsTest() { - // TODO: test reacts - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetUserTrustFactorResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserTrustFactorResponseTest.java new file mode 100644 index 00000000..259001f7 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserTrustFactorResponseTest.java @@ -0,0 +1,65 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetUserTrustFactorResponse + */ +public class GetUserTrustFactorResponseTest { + private final GetUserTrustFactorResponse model = new GetUserTrustFactorResponse(); + + /** + * Model tests for GetUserTrustFactorResponse + */ + @Test + public void testGetUserTrustFactorResponse() { + // TODO: test GetUserTrustFactorResponse + } + + /** + * Test the property 'manualTrustFactor' + */ + @Test + public void manualTrustFactorTest() { + // TODO: test manualTrustFactor + } + + /** + * Test the property 'autoTrustFactor' + */ + @Test + public void autoTrustFactorTest() { + // TODO: test autoTrustFactor + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetV1PageLikesTest.java b/client/src/test/java/com/fastcomments/model/GetV1PageLikesTest.java new file mode 100644 index 00000000..868b86fa --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetV1PageLikesTest.java @@ -0,0 +1,81 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetV1PageLikes + */ +public class GetV1PageLikesTest { + private final GetV1PageLikes model = new GetV1PageLikes(); + + /** + * Model tests for GetV1PageLikes + */ + @Test + public void testGetV1PageLikes() { + // TODO: test GetV1PageLikes + } + + /** + * Test the property 'urlIdWS' + */ + @Test + public void urlIdWSTest() { + // TODO: test urlIdWS + } + + /** + * Test the property 'didLike' + */ + @Test + public void didLikeTest() { + // TODO: test didLike + } + + /** + * Test the property 'commentCount' + */ + @Test + public void commentCountTest() { + // TODO: test commentCount + } + + /** + * Test the property 'likeCount' + */ + @Test + public void likeCountTest() { + // TODO: test likeCount + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetV2PageReactUsersResponseTest.java b/client/src/test/java/com/fastcomments/model/GetV2PageReactUsersResponseTest.java new file mode 100644 index 00000000..82d11c3d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetV2PageReactUsersResponseTest.java @@ -0,0 +1,59 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetV2PageReactUsersResponse + */ +public class GetV2PageReactUsersResponseTest { + private final GetV2PageReactUsersResponse model = new GetV2PageReactUsersResponse(); + + /** + * Model tests for GetV2PageReactUsersResponse + */ + @Test + public void testGetV2PageReactUsersResponse() { + // TODO: test GetV2PageReactUsersResponse + } + + /** + * Test the property 'userNames' + */ + @Test + public void userNamesTest() { + // TODO: test userNames + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetV2PageReactsTest.java b/client/src/test/java/com/fastcomments/model/GetV2PageReactsTest.java new file mode 100644 index 00000000..f03f3e2d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetV2PageReactsTest.java @@ -0,0 +1,69 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetV2PageReacts + */ +public class GetV2PageReactsTest { + private final GetV2PageReacts model = new GetV2PageReacts(); + + /** + * Model tests for GetV2PageReacts + */ + @Test + public void testGetV2PageReacts() { + // TODO: test GetV2PageReacts + } + + /** + * Test the property 'reactedIds' + */ + @Test + public void reactedIdsTest() { + // TODO: test reactedIds + } + + /** + * Test the property 'counts' + */ + @Test + public void countsTest() { + // TODO: test counts + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GetVotes200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetVotes200ResponseTest.java deleted file mode 100644 index 5a052939..00000000 --- a/client/src/test/java/com/fastcomments/model/GetVotes200ResponseTest.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetVotesResponse; -import com.fastcomments.model.PublicVote; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetVotes200Response - */ -public class GetVotes200ResponseTest { - private final GetVotes200Response model = new GetVotes200Response(); - - /** - * Model tests for GetVotes200Response - */ - @Test - public void testGetVotes200Response() { - // TODO: test GetVotes200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'appliedAuthorizedVotes' - */ - @Test - public void appliedAuthorizedVotesTest() { - // TODO: test appliedAuthorizedVotes - } - - /** - * Test the property 'appliedAnonymousVotes' - */ - @Test - public void appliedAnonymousVotesTest() { - // TODO: test appliedAnonymousVotes - } - - /** - * Test the property 'pendingVotes' - */ - @Test - public void pendingVotesTest() { - // TODO: test pendingVotes - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GetVotesForUser200ResponseTest.java b/client/src/test/java/com/fastcomments/model/GetVotesForUser200ResponseTest.java deleted file mode 100644 index 8f77692f..00000000 --- a/client/src/test/java/com/fastcomments/model/GetVotesForUser200ResponseTest.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetVotesForUserResponse; -import com.fastcomments.model.PublicVote; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GetVotesForUser200Response - */ -public class GetVotesForUser200ResponseTest { - private final GetVotesForUser200Response model = new GetVotesForUser200Response(); - - /** - * Model tests for GetVotesForUser200Response - */ - @Test - public void testGetVotesForUser200Response() { - // TODO: test GetVotesForUser200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'appliedAuthorizedVotes' - */ - @Test - public void appliedAuthorizedVotesTest() { - // TODO: test appliedAuthorizedVotes - } - - /** - * Test the property 'appliedAnonymousVotes' - */ - @Test - public void appliedAnonymousVotesTest() { - // TODO: test appliedAnonymousVotes - } - - /** - * Test the property 'pendingVotes' - */ - @Test - public void pendingVotesTest() { - // TODO: test pendingVotes - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/GifGetLargeResponseTest.java b/client/src/test/java/com/fastcomments/model/GifGetLargeResponseTest.java new file mode 100644 index 00000000..e9ddf723 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GifGetLargeResponseTest.java @@ -0,0 +1,57 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GifGetLargeResponse + */ +public class GifGetLargeResponseTest { + private final GifGetLargeResponse model = new GifGetLargeResponse(); + + /** + * Model tests for GifGetLargeResponse + */ + @Test + public void testGifGetLargeResponse() { + // TODO: test GifGetLargeResponse + } + + /** + * Test the property 'src' + */ + @Test + public void srcTest() { + // TODO: test src + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GifSearchInternalErrorTest.java b/client/src/test/java/com/fastcomments/model/GifSearchInternalErrorTest.java new file mode 100644 index 00000000..a647cf4e --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GifSearchInternalErrorTest.java @@ -0,0 +1,57 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GifSearchInternalError + */ +public class GifSearchInternalErrorTest { + private final GifSearchInternalError model = new GifSearchInternalError(); + + /** + * Model tests for GifSearchInternalError + */ + @Test + public void testGifSearchInternalError() { + // TODO: test GifSearchInternalError + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GifSearchResponseImagesInnerInnerTest.java b/client/src/test/java/com/fastcomments/model/GifSearchResponseImagesInnerInnerTest.java new file mode 100644 index 00000000..ce902f40 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GifSearchResponseImagesInnerInnerTest.java @@ -0,0 +1,33 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GifSearchResponseImagesInnerInner + */ +public class GifSearchResponseImagesInnerInnerTest { + private final GifSearchResponseImagesInnerInner model = new GifSearchResponseImagesInnerInner(); + + /** + * Model tests for GifSearchResponseImagesInnerInner + */ + @Test + public void testGifSearchResponseImagesInnerInner() { + // TODO: test GifSearchResponseImagesInnerInner + } + +} diff --git a/client/src/test/java/com/fastcomments/model/GifSearchResponseTest.java b/client/src/test/java/com/fastcomments/model/GifSearchResponseTest.java new file mode 100644 index 00000000..53141568 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GifSearchResponseTest.java @@ -0,0 +1,60 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.GifSearchResponseImagesInnerInner; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GifSearchResponse + */ +public class GifSearchResponseTest { + private final GifSearchResponse model = new GifSearchResponse(); + + /** + * Model tests for GifSearchResponse + */ + @Test + public void testGifSearchResponse() { + // TODO: test GifSearchResponse + } + + /** + * Test the property 'images' + */ + @Test + public void imagesTest() { + // TODO: test images + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/HeaderAccountNotificationTest.java b/client/src/test/java/com/fastcomments/model/HeaderAccountNotificationTest.java index 35cd815e..e17ff386 100644 --- a/client/src/test/java/com/fastcomments/model/HeaderAccountNotificationTest.java +++ b/client/src/test/java/com/fastcomments/model/HeaderAccountNotificationTest.java @@ -112,4 +112,12 @@ public void createdAtTest() { // TODO: test createdAt } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + } diff --git a/client/src/test/java/com/fastcomments/model/ImportedAgentApprovalNotificationFrequencyTest.java b/client/src/test/java/com/fastcomments/model/ImportedAgentApprovalNotificationFrequencyTest.java new file mode 100644 index 00000000..d7a1bbce --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ImportedAgentApprovalNotificationFrequencyTest.java @@ -0,0 +1,32 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ImportedAgentApprovalNotificationFrequency + */ +public class ImportedAgentApprovalNotificationFrequencyTest { + /** + * Model tests for ImportedAgentApprovalNotificationFrequency + */ + @Test + public void testImportedAgentApprovalNotificationFrequency() { + // TODO: test ImportedAgentApprovalNotificationFrequency + } + +} diff --git a/client/src/test/java/com/fastcomments/model/LockComment200ResponseTest.java b/client/src/test/java/com/fastcomments/model/LockComment200ResponseTest.java deleted file mode 100644 index c2027a23..00000000 --- a/client/src/test/java/com/fastcomments/model/LockComment200ResponseTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIEmptyResponse; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for LockComment200Response - */ -public class LockComment200ResponseTest { - private final LockComment200Response model = new LockComment200Response(); - - /** - * Model tests for LockComment200Response - */ - @Test - public void testLockComment200Response() { - // TODO: test LockComment200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/ModerationAPIChildCommentsResponseTest.java b/client/src/test/java/com/fastcomments/model/ModerationAPIChildCommentsResponseTest.java new file mode 100644 index 00000000..20a075e0 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationAPIChildCommentsResponseTest.java @@ -0,0 +1,60 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.ModerationAPIComment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationAPIChildCommentsResponse + */ +public class ModerationAPIChildCommentsResponseTest { + private final ModerationAPIChildCommentsResponse model = new ModerationAPIChildCommentsResponse(); + + /** + * Model tests for ModerationAPIChildCommentsResponse + */ + @Test + public void testModerationAPIChildCommentsResponse() { + // TODO: test ModerationAPIChildCommentsResponse + } + + /** + * Test the property 'comments' + */ + @Test + public void commentsTest() { + // TODO: test comments + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationAPICommentLogTest.java b/client/src/test/java/com/fastcomments/model/ModerationAPICommentLogTest.java new file mode 100644 index 00000000..3f7d16d6 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationAPICommentLogTest.java @@ -0,0 +1,73 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationAPICommentLog + */ +public class ModerationAPICommentLogTest { + private final ModerationAPICommentLog model = new ModerationAPICommentLog(); + + /** + * Model tests for ModerationAPICommentLog + */ + @Test + public void testModerationAPICommentLog() { + // TODO: test ModerationAPICommentLog + } + + /** + * Test the property 'date' + */ + @Test + public void dateTest() { + // TODO: test date + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'actionName' + */ + @Test + public void actionNameTest() { + // TODO: test actionName + } + + /** + * Test the property 'messageHTML' + */ + @Test + public void messageHTMLTest() { + // TODO: test messageHTML + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationAPICommentResponseTest.java b/client/src/test/java/com/fastcomments/model/ModerationAPICommentResponseTest.java new file mode 100644 index 00000000..7d4eb2d7 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationAPICommentResponseTest.java @@ -0,0 +1,58 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.ModerationAPIComment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationAPICommentResponse + */ +public class ModerationAPICommentResponseTest { + private final ModerationAPICommentResponse model = new ModerationAPICommentResponse(); + + /** + * Model tests for ModerationAPICommentResponse + */ + @Test + public void testModerationAPICommentResponse() { + // TODO: test ModerationAPICommentResponse + } + + /** + * Test the property 'comment' + */ + @Test + public void commentTest() { + // TODO: test comment + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationAPICommentTest.java b/client/src/test/java/com/fastcomments/model/ModerationAPICommentTest.java new file mode 100644 index 00000000..ea16e3e0 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationAPICommentTest.java @@ -0,0 +1,380 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.CommentUserBadgeInfo; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationAPIComment + */ +public class ModerationAPICommentTest { + private final ModerationAPIComment model = new ModerationAPIComment(); + + /** + * Model tests for ModerationAPIComment + */ + @Test + public void testModerationAPIComment() { + // TODO: test ModerationAPIComment + } + + /** + * Test the property 'isLocalDeleted' + */ + @Test + public void isLocalDeletedTest() { + // TODO: test isLocalDeleted + } + + /** + * Test the property 'replyCount' + */ + @Test + public void replyCountTest() { + // TODO: test replyCount + } + + /** + * Test the property 'feedbackResults' + */ + @Test + public void feedbackResultsTest() { + // TODO: test feedbackResults + } + + /** + * Test the property 'isVotedUp' + */ + @Test + public void isVotedUpTest() { + // TODO: test isVotedUp + } + + /** + * Test the property 'isVotedDown' + */ + @Test + public void isVotedDownTest() { + // TODO: test isVotedDown + } + + /** + * Test the property 'myVoteId' + */ + @Test + public void myVoteIdTest() { + // TODO: test myVoteId + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'tenantId' + */ + @Test + public void tenantIdTest() { + // TODO: test tenantId + } + + /** + * Test the property 'urlId' + */ + @Test + public void urlIdTest() { + // TODO: test urlId + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + + /** + * Test the property 'pageTitle' + */ + @Test + public void pageTitleTest() { + // TODO: test pageTitle + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'anonUserId' + */ + @Test + public void anonUserIdTest() { + // TODO: test anonUserId + } + + /** + * Test the property 'commenterName' + */ + @Test + public void commenterNameTest() { + // TODO: test commenterName + } + + /** + * Test the property 'commenterLink' + */ + @Test + public void commenterLinkTest() { + // TODO: test commenterLink + } + + /** + * Test the property 'commentHTML' + */ + @Test + public void commentHTMLTest() { + // TODO: test commentHTML + } + + /** + * Test the property 'parentId' + */ + @Test + public void parentIdTest() { + // TODO: test parentId + } + + /** + * Test the property 'date' + */ + @Test + public void dateTest() { + // TODO: test date + } + + /** + * Test the property 'localDateString' + */ + @Test + public void localDateStringTest() { + // TODO: test localDateString + } + + /** + * Test the property 'votes' + */ + @Test + public void votesTest() { + // TODO: test votes + } + + /** + * Test the property 'votesUp' + */ + @Test + public void votesUpTest() { + // TODO: test votesUp + } + + /** + * Test the property 'votesDown' + */ + @Test + public void votesDownTest() { + // TODO: test votesDown + } + + /** + * Test the property 'expireAt' + */ + @Test + public void expireAtTest() { + // TODO: test expireAt + } + + /** + * Test the property 'reviewed' + */ + @Test + public void reviewedTest() { + // TODO: test reviewed + } + + /** + * Test the property 'avatarSrc' + */ + @Test + public void avatarSrcTest() { + // TODO: test avatarSrc + } + + /** + * Test the property 'isSpam' + */ + @Test + public void isSpamTest() { + // TODO: test isSpam + } + + /** + * Test the property 'permNotSpam' + */ + @Test + public void permNotSpamTest() { + // TODO: test permNotSpam + } + + /** + * Test the property 'hasLinks' + */ + @Test + public void hasLinksTest() { + // TODO: test hasLinks + } + + /** + * Test the property 'hasCode' + */ + @Test + public void hasCodeTest() { + // TODO: test hasCode + } + + /** + * Test the property 'approved' + */ + @Test + public void approvedTest() { + // TODO: test approved + } + + /** + * Test the property 'locale' + */ + @Test + public void localeTest() { + // TODO: test locale + } + + /** + * Test the property 'isBannedUser' + */ + @Test + public void isBannedUserTest() { + // TODO: test isBannedUser + } + + /** + * Test the property 'isByAdmin' + */ + @Test + public void isByAdminTest() { + // TODO: test isByAdmin + } + + /** + * Test the property 'isByModerator' + */ + @Test + public void isByModeratorTest() { + // TODO: test isByModerator + } + + /** + * Test the property 'isPinned' + */ + @Test + public void isPinnedTest() { + // TODO: test isPinned + } + + /** + * Test the property 'isLocked' + */ + @Test + public void isLockedTest() { + // TODO: test isLocked + } + + /** + * Test the property 'flagCount' + */ + @Test + public void flagCountTest() { + // TODO: test flagCount + } + + /** + * Test the property 'displayLabel' + */ + @Test + public void displayLabelTest() { + // TODO: test displayLabel + } + + /** + * Test the property 'badges' + */ + @Test + public void badgesTest() { + // TODO: test badges + } + + /** + * Test the property 'verified' + */ + @Test + public void verifiedTest() { + // TODO: test verified + } + + /** + * Test the property 'feedbackIds' + */ + @Test + public void feedbackIdsTest() { + // TODO: test feedbackIds + } + + /** + * Test the property 'isDeleted' + */ + @Test + public void isDeletedTest() { + // TODO: test isDeleted + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationAPICountCommentsResponseTest.java b/client/src/test/java/com/fastcomments/model/ModerationAPICountCommentsResponseTest.java new file mode 100644 index 00000000..e1d56b4e --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationAPICountCommentsResponseTest.java @@ -0,0 +1,57 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationAPICountCommentsResponse + */ +public class ModerationAPICountCommentsResponseTest { + private final ModerationAPICountCommentsResponse model = new ModerationAPICountCommentsResponse(); + + /** + * Model tests for ModerationAPICountCommentsResponse + */ + @Test + public void testModerationAPICountCommentsResponse() { + // TODO: test ModerationAPICountCommentsResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'count' + */ + @Test + public void countTest() { + // TODO: test count + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationAPIGetCommentIdsResponseTest.java b/client/src/test/java/com/fastcomments/model/ModerationAPIGetCommentIdsResponseTest.java new file mode 100644 index 00000000..4105f518 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationAPIGetCommentIdsResponseTest.java @@ -0,0 +1,67 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationAPIGetCommentIdsResponse + */ +public class ModerationAPIGetCommentIdsResponseTest { + private final ModerationAPIGetCommentIdsResponse model = new ModerationAPIGetCommentIdsResponse(); + + /** + * Model tests for ModerationAPIGetCommentIdsResponse + */ + @Test + public void testModerationAPIGetCommentIdsResponse() { + // TODO: test ModerationAPIGetCommentIdsResponse + } + + /** + * Test the property 'ids' + */ + @Test + public void idsTest() { + // TODO: test ids + } + + /** + * Test the property 'hasMore' + */ + @Test + public void hasMoreTest() { + // TODO: test hasMore + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationAPIGetCommentsResponseTest.java b/client/src/test/java/com/fastcomments/model/ModerationAPIGetCommentsResponseTest.java new file mode 100644 index 00000000..53563173 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationAPIGetCommentsResponseTest.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.ModerationAPIComment; +import com.fastcomments.model.ModerationFilter; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationAPIGetCommentsResponse + */ +public class ModerationAPIGetCommentsResponseTest { + private final ModerationAPIGetCommentsResponse model = new ModerationAPIGetCommentsResponse(); + + /** + * Model tests for ModerationAPIGetCommentsResponse + */ + @Test + public void testModerationAPIGetCommentsResponse() { + // TODO: test ModerationAPIGetCommentsResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'translations' + */ + @Test + public void translationsTest() { + // TODO: test translations + } + + /** + * Test the property 'comments' + */ + @Test + public void commentsTest() { + // TODO: test comments + } + + /** + * Test the property 'moderationFilter' + */ + @Test + public void moderationFilterTest() { + // TODO: test moderationFilter + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationAPIGetLogsResponseTest.java b/client/src/test/java/com/fastcomments/model/ModerationAPIGetLogsResponseTest.java new file mode 100644 index 00000000..7c724df7 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationAPIGetLogsResponseTest.java @@ -0,0 +1,60 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.ModerationAPICommentLog; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationAPIGetLogsResponse + */ +public class ModerationAPIGetLogsResponseTest { + private final ModerationAPIGetLogsResponse model = new ModerationAPIGetLogsResponse(); + + /** + * Model tests for ModerationAPIGetLogsResponse + */ + @Test + public void testModerationAPIGetLogsResponse() { + // TODO: test ModerationAPIGetLogsResponse + } + + /** + * Test the property 'logs' + */ + @Test + public void logsTest() { + // TODO: test logs + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationCommentSearchResponseTest.java b/client/src/test/java/com/fastcomments/model/ModerationCommentSearchResponseTest.java new file mode 100644 index 00000000..b8ff35e8 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationCommentSearchResponseTest.java @@ -0,0 +1,57 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationCommentSearchResponse + */ +public class ModerationCommentSearchResponseTest { + private final ModerationCommentSearchResponse model = new ModerationCommentSearchResponse(); + + /** + * Model tests for ModerationCommentSearchResponse + */ + @Test + public void testModerationCommentSearchResponse() { + // TODO: test ModerationCommentSearchResponse + } + + /** + * Test the property 'commentCount' + */ + @Test + public void commentCountTest() { + // TODO: test commentCount + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationExportResponseTest.java b/client/src/test/java/com/fastcomments/model/ModerationExportResponseTest.java new file mode 100644 index 00000000..d29427a7 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationExportResponseTest.java @@ -0,0 +1,56 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationExportResponse + */ +public class ModerationExportResponseTest { + private final ModerationExportResponse model = new ModerationExportResponse(); + + /** + * Model tests for ModerationExportResponse + */ + @Test + public void testModerationExportResponse() { + // TODO: test ModerationExportResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'batchJobId' + */ + @Test + public void batchJobIdTest() { + // TODO: test batchJobId + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationExportStatusResponseTest.java b/client/src/test/java/com/fastcomments/model/ModerationExportStatusResponseTest.java new file mode 100644 index 00000000..8fb8081d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationExportStatusResponseTest.java @@ -0,0 +1,72 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationExportStatusResponse + */ +public class ModerationExportStatusResponseTest { + private final ModerationExportStatusResponse model = new ModerationExportStatusResponse(); + + /** + * Model tests for ModerationExportStatusResponse + */ + @Test + public void testModerationExportStatusResponse() { + // TODO: test ModerationExportStatusResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'jobStatus' + */ + @Test + public void jobStatusTest() { + // TODO: test jobStatus + } + + /** + * Test the property 'recordCount' + */ + @Test + public void recordCountTest() { + // TODO: test recordCount + } + + /** + * Test the property 'downloadUrl' + */ + @Test + public void downloadUrlTest() { + // TODO: test downloadUrl + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationFilterTest.java b/client/src/test/java/com/fastcomments/model/ModerationFilterTest.java new file mode 100644 index 00000000..bbadaebd --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationFilterTest.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationFilter + */ +public class ModerationFilterTest { + private final ModerationFilter model = new ModerationFilter(); + + /** + * Model tests for ModerationFilter + */ + @Test + public void testModerationFilter() { + // TODO: test ModerationFilter + } + + /** + * Test the property 'reviewed' + */ + @Test + public void reviewedTest() { + // TODO: test reviewed + } + + /** + * Test the property 'approved' + */ + @Test + public void approvedTest() { + // TODO: test approved + } + + /** + * Test the property 'isSpam' + */ + @Test + public void isSpamTest() { + // TODO: test isSpam + } + + /** + * Test the property 'isBannedUser' + */ + @Test + public void isBannedUserTest() { + // TODO: test isBannedUser + } + + /** + * Test the property 'isLocked' + */ + @Test + public void isLockedTest() { + // TODO: test isLocked + } + + /** + * Test the property 'flagCountGt' + */ + @Test + public void flagCountGtTest() { + // TODO: test flagCountGt + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'urlId' + */ + @Test + public void urlIdTest() { + // TODO: test urlId + } + + /** + * Test the property 'domain' + */ + @Test + public void domainTest() { + // TODO: test domain + } + + /** + * Test the property 'moderationGroupIds' + */ + @Test + public void moderationGroupIdsTest() { + // TODO: test moderationGroupIds + } + + /** + * Test the property 'commentTextSearch' + */ + @Test + public void commentTextSearchTest() { + // TODO: test commentTextSearch + } + + /** + * Test the property 'exactCommentText' + */ + @Test + public void exactCommentTextTest() { + // TODO: test exactCommentText + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationPageSearchProjectedTest.java b/client/src/test/java/com/fastcomments/model/ModerationPageSearchProjectedTest.java new file mode 100644 index 00000000..90a908dc --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationPageSearchProjectedTest.java @@ -0,0 +1,72 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationPageSearchProjected + */ +public class ModerationPageSearchProjectedTest { + private final ModerationPageSearchProjected model = new ModerationPageSearchProjected(); + + /** + * Model tests for ModerationPageSearchProjected + */ + @Test + public void testModerationPageSearchProjected() { + // TODO: test ModerationPageSearchProjected + } + + /** + * Test the property 'urlId' + */ + @Test + public void urlIdTest() { + // TODO: test urlId + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'commentCount' + */ + @Test + public void commentCountTest() { + // TODO: test commentCount + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationPageSearchResponseTest.java b/client/src/test/java/com/fastcomments/model/ModerationPageSearchResponseTest.java new file mode 100644 index 00000000..66229dc3 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationPageSearchResponseTest.java @@ -0,0 +1,60 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.ModerationPageSearchProjected; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationPageSearchResponse + */ +public class ModerationPageSearchResponseTest { + private final ModerationPageSearchResponse model = new ModerationPageSearchResponse(); + + /** + * Model tests for ModerationPageSearchResponse + */ + @Test + public void testModerationPageSearchResponse() { + // TODO: test ModerationPageSearchResponse + } + + /** + * Test the property 'pages' + */ + @Test + public void pagesTest() { + // TODO: test pages + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationSiteSearchProjectedTest.java b/client/src/test/java/com/fastcomments/model/ModerationSiteSearchProjectedTest.java new file mode 100644 index 00000000..5c0b3558 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationSiteSearchProjectedTest.java @@ -0,0 +1,56 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationSiteSearchProjected + */ +public class ModerationSiteSearchProjectedTest { + private final ModerationSiteSearchProjected model = new ModerationSiteSearchProjected(); + + /** + * Model tests for ModerationSiteSearchProjected + */ + @Test + public void testModerationSiteSearchProjected() { + // TODO: test ModerationSiteSearchProjected + } + + /** + * Test the property 'domain' + */ + @Test + public void domainTest() { + // TODO: test domain + } + + /** + * Test the property 'logoSrc100px' + */ + @Test + public void logoSrc100pxTest() { + // TODO: test logoSrc100px + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationSiteSearchResponseTest.java b/client/src/test/java/com/fastcomments/model/ModerationSiteSearchResponseTest.java new file mode 100644 index 00000000..e140315d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationSiteSearchResponseTest.java @@ -0,0 +1,60 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.ModerationSiteSearchProjected; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationSiteSearchResponse + */ +public class ModerationSiteSearchResponseTest { + private final ModerationSiteSearchResponse model = new ModerationSiteSearchResponse(); + + /** + * Model tests for ModerationSiteSearchResponse + */ + @Test + public void testModerationSiteSearchResponse() { + // TODO: test ModerationSiteSearchResponse + } + + /** + * Test the property 'sites' + */ + @Test + public void sitesTest() { + // TODO: test sites + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationSuggestResponseTest.java b/client/src/test/java/com/fastcomments/model/ModerationSuggestResponseTest.java new file mode 100644 index 00000000..492330c2 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationSuggestResponseTest.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.ModerationPageSearchProjected; +import com.fastcomments.model.ModerationUserSearchProjected; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationSuggestResponse + */ +public class ModerationSuggestResponseTest { + private final ModerationSuggestResponse model = new ModerationSuggestResponse(); + + /** + * Model tests for ModerationSuggestResponse + */ + @Test + public void testModerationSuggestResponse() { + // TODO: test ModerationSuggestResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'pages' + */ + @Test + public void pagesTest() { + // TODO: test pages + } + + /** + * Test the property 'users' + */ + @Test + public void usersTest() { + // TODO: test users + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationUserSearchProjectedTest.java b/client/src/test/java/com/fastcomments/model/ModerationUserSearchProjectedTest.java new file mode 100644 index 00000000..be0acfc0 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationUserSearchProjectedTest.java @@ -0,0 +1,72 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationUserSearchProjected + */ +public class ModerationUserSearchProjectedTest { + private final ModerationUserSearchProjected model = new ModerationUserSearchProjected(); + + /** + * Model tests for ModerationUserSearchProjected + */ + @Test + public void testModerationUserSearchProjected() { + // TODO: test ModerationUserSearchProjected + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'displayName' + */ + @Test + public void displayNameTest() { + // TODO: test displayName + } + + /** + * Test the property 'avatarSrc' + */ + @Test + public void avatarSrcTest() { + // TODO: test avatarSrc + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ModerationUserSearchResponseTest.java b/client/src/test/java/com/fastcomments/model/ModerationUserSearchResponseTest.java new file mode 100644 index 00000000..348485e9 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ModerationUserSearchResponseTest.java @@ -0,0 +1,60 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.ModerationUserSearchProjected; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModerationUserSearchResponse + */ +public class ModerationUserSearchResponseTest { + private final ModerationUserSearchResponse model = new ModerationUserSearchResponse(); + + /** + * Model tests for ModerationUserSearchResponse + */ + @Test + public void testModerationUserSearchResponse() { + // TODO: test ModerationUserSearchResponse + } + + /** + * Test the property 'users' + */ + @Test + public void usersTest() { + // TODO: test users + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/PageUserEntryTest.java b/client/src/test/java/com/fastcomments/model/PageUserEntryTest.java new file mode 100644 index 00000000..adb91740 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PageUserEntryTest.java @@ -0,0 +1,72 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PageUserEntry + */ +public class PageUserEntryTest { + private final PageUserEntry model = new PageUserEntry(); + + /** + * Model tests for PageUserEntry + */ + @Test + public void testPageUserEntry() { + // TODO: test PageUserEntry + } + + /** + * Test the property 'isPrivate' + */ + @Test + public void isPrivateTest() { + // TODO: test isPrivate + } + + /** + * Test the property 'avatarSrc' + */ + @Test + public void avatarSrcTest() { + // TODO: test avatarSrc + } + + /** + * Test the property 'displayName' + */ + @Test + public void displayNameTest() { + // TODO: test displayName + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + +} diff --git a/client/src/test/java/com/fastcomments/model/PageUsersInfoResponseTest.java b/client/src/test/java/com/fastcomments/model/PageUsersInfoResponseTest.java new file mode 100644 index 00000000..89ca9ab8 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PageUsersInfoResponseTest.java @@ -0,0 +1,60 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.PageUserEntry; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PageUsersInfoResponse + */ +public class PageUsersInfoResponseTest { + private final PageUsersInfoResponse model = new PageUsersInfoResponse(); + + /** + * Model tests for PageUsersInfoResponse + */ + @Test + public void testPageUsersInfoResponse() { + // TODO: test PageUsersInfoResponse + } + + /** + * Test the property 'users' + */ + @Test + public void usersTest() { + // TODO: test users + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/PageUsersOfflineResponseTest.java b/client/src/test/java/com/fastcomments/model/PageUsersOfflineResponseTest.java new file mode 100644 index 00000000..b582b4b5 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PageUsersOfflineResponseTest.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.PageUserEntry; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PageUsersOfflineResponse + */ +public class PageUsersOfflineResponseTest { + private final PageUsersOfflineResponse model = new PageUsersOfflineResponse(); + + /** + * Model tests for PageUsersOfflineResponse + */ + @Test + public void testPageUsersOfflineResponse() { + // TODO: test PageUsersOfflineResponse + } + + /** + * Test the property 'nextAfterUserId' + */ + @Test + public void nextAfterUserIdTest() { + // TODO: test nextAfterUserId + } + + /** + * Test the property 'nextAfterName' + */ + @Test + public void nextAfterNameTest() { + // TODO: test nextAfterName + } + + /** + * Test the property 'users' + */ + @Test + public void usersTest() { + // TODO: test users + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/PageUsersOnlineResponseTest.java b/client/src/test/java/com/fastcomments/model/PageUsersOnlineResponseTest.java new file mode 100644 index 00000000..efebe112 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PageUsersOnlineResponseTest.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.PageUserEntry; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PageUsersOnlineResponse + */ +public class PageUsersOnlineResponseTest { + private final PageUsersOnlineResponse model = new PageUsersOnlineResponse(); + + /** + * Model tests for PageUsersOnlineResponse + */ + @Test + public void testPageUsersOnlineResponse() { + // TODO: test PageUsersOnlineResponse + } + + /** + * Test the property 'nextAfterUserId' + */ + @Test + public void nextAfterUserIdTest() { + // TODO: test nextAfterUserId + } + + /** + * Test the property 'nextAfterName' + */ + @Test + public void nextAfterNameTest() { + // TODO: test nextAfterName + } + + /** + * Test the property 'totalCount' + */ + @Test + public void totalCountTest() { + // TODO: test totalCount + } + + /** + * Test the property 'anonCount' + */ + @Test + public void anonCountTest() { + // TODO: test anonCount + } + + /** + * Test the property 'users' + */ + @Test + public void usersTest() { + // TODO: test users + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/PagesSortByTest.java b/client/src/test/java/com/fastcomments/model/PagesSortByTest.java new file mode 100644 index 00000000..7bdbbca0 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PagesSortByTest.java @@ -0,0 +1,32 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PagesSortBy + */ +public class PagesSortByTest { + /** + * Model tests for PagesSortBy + */ + @Test + public void testPagesSortBy() { + // TODO: test PagesSortBy + } + +} diff --git a/client/src/test/java/com/fastcomments/model/PatchDomainConfigResponseTest.java b/client/src/test/java/com/fastcomments/model/PatchDomainConfigResponseTest.java new file mode 100644 index 00000000..cb51cb85 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PatchDomainConfigResponseTest.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.AddDomainConfigResponseAnyOf; +import com.fastcomments.model.GetDomainConfigsResponseAnyOf1; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PatchDomainConfigResponse + */ +public class PatchDomainConfigResponseTest { + private final PatchDomainConfigResponse model = new PatchDomainConfigResponse(); + + /** + * Model tests for PatchDomainConfigResponse + */ + @Test + public void testPatchDomainConfigResponse() { + // TODO: test PatchDomainConfigResponse + } + + /** + * Test the property '_configuration' + */ + @Test + public void _configurationTest() { + // TODO: test _configuration + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + +} diff --git a/client/src/test/java/com/fastcomments/model/PatchHashTag200ResponseTest.java b/client/src/test/java/com/fastcomments/model/PatchHashTag200ResponseTest.java deleted file mode 100644 index 7ee3f4e1..00000000 --- a/client/src/test/java/com/fastcomments/model/PatchHashTag200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.TenantHashTag; -import com.fastcomments.model.UpdateHashTagResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for PatchHashTag200Response - */ -public class PatchHashTag200ResponseTest { - private final PatchHashTag200Response model = new PatchHashTag200Response(); - - /** - * Model tests for PatchHashTag200Response - */ - @Test - public void testPatchHashTag200Response() { - // TODO: test PatchHashTag200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'hashTag' - */ - @Test - public void hashTagTest() { - // TODO: test hashTag - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/PinComment200ResponseTest.java b/client/src/test/java/com/fastcomments/model/PinComment200ResponseTest.java deleted file mode 100644 index 35e8c131..00000000 --- a/client/src/test/java/com/fastcomments/model/PinComment200ResponseTest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.ChangeCommentPinStatusResponse; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.RecordStringBeforeStringOrNullAfterStringOrNullValue; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for PinComment200Response - */ -public class PinComment200ResponseTest { - private final PinComment200Response model = new PinComment200Response(); - - /** - * Model tests for PinComment200Response - */ - @Test - public void testPinComment200Response() { - // TODO: test PinComment200Response - } - - /** - * Test the property 'commentPositions' - */ - @Test - public void commentPositionsTest() { - // TODO: test commentPositions - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java new file mode 100644 index 00000000..dba61c87 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java @@ -0,0 +1,58 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.DeleteCommentResult; +import com.fastcomments.model.RemoveCommentActionResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PostRemoveCommentResponse + */ +public class PostRemoveCommentResponseTest { + private final PostRemoveCommentResponse model = new PostRemoveCommentResponse(); + + /** + * Model tests for PostRemoveCommentResponse + */ + @Test + public void testPostRemoveCommentResponse() { + // TODO: test PostRemoveCommentResponse + } + + /** + * Test the property 'action' + */ + @Test + public void actionTest() { + // TODO: test action + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/PreBanSummaryTest.java b/client/src/test/java/com/fastcomments/model/PreBanSummaryTest.java new file mode 100644 index 00000000..3c2448d7 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PreBanSummaryTest.java @@ -0,0 +1,67 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PreBanSummary + */ +public class PreBanSummaryTest { + private final PreBanSummary model = new PreBanSummary(); + + /** + * Model tests for PreBanSummary + */ + @Test + public void testPreBanSummary() { + // TODO: test PreBanSummary + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'usernames' + */ + @Test + public void usernamesTest() { + // TODO: test usernames + } + + /** + * Test the property 'count' + */ + @Test + public void countTest() { + // TODO: test count + } + +} diff --git a/client/src/test/java/com/fastcomments/model/PublicPageTest.java b/client/src/test/java/com/fastcomments/model/PublicPageTest.java new file mode 100644 index 00000000..3e3df1c1 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PublicPageTest.java @@ -0,0 +1,80 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PublicPage + */ +public class PublicPageTest { + private final PublicPage model = new PublicPage(); + + /** + * Model tests for PublicPage + */ + @Test + public void testPublicPage() { + // TODO: test PublicPage + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'commentCount' + */ + @Test + public void commentCountTest() { + // TODO: test commentCount + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + + /** + * Test the property 'urlId' + */ + @Test + public void urlIdTest() { + // TODO: test urlId + } + +} diff --git a/client/src/test/java/com/fastcomments/model/PutDomainConfigResponseTest.java b/client/src/test/java/com/fastcomments/model/PutDomainConfigResponseTest.java new file mode 100644 index 00000000..35c79304 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PutDomainConfigResponseTest.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.AddDomainConfigResponseAnyOf; +import com.fastcomments.model.GetDomainConfigsResponseAnyOf1; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PutDomainConfigResponse + */ +public class PutDomainConfigResponseTest { + private final PutDomainConfigResponse model = new PutDomainConfigResponse(); + + /** + * Model tests for PutDomainConfigResponse + */ + @Test + public void testPutDomainConfigResponse() { + // TODO: test PutDomainConfigResponse + } + + /** + * Test the property '_configuration' + */ + @Test + public void _configurationTest() { + // TODO: test _configuration + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + +} diff --git a/client/src/test/java/com/fastcomments/model/ReactFeedPostPublic200ResponseTest.java b/client/src/test/java/com/fastcomments/model/ReactFeedPostPublic200ResponseTest.java deleted file mode 100644 index 386cce66..00000000 --- a/client/src/test/java/com/fastcomments/model/ReactFeedPostPublic200ResponseTest.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.ReactFeedPostResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ReactFeedPostPublic200Response - */ -public class ReactFeedPostPublic200ResponseTest { - private final ReactFeedPostPublic200Response model = new ReactFeedPostPublic200Response(); - - /** - * Model tests for ReactFeedPostPublic200Response - */ - @Test - public void testReactFeedPostPublic200Response() { - // TODO: test ReactFeedPostPublic200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'reactType' - */ - @Test - public void reactTypeTest() { - // TODO: test reactType - } - - /** - * Test the property 'isUndo' - */ - @Test - public void isUndoTest() { - // TODO: test isUndo - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/RemoveCommentActionResponseTest.java b/client/src/test/java/com/fastcomments/model/RemoveCommentActionResponseTest.java new file mode 100644 index 00000000..66902803 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/RemoveCommentActionResponseTest.java @@ -0,0 +1,56 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RemoveCommentActionResponse + */ +public class RemoveCommentActionResponseTest { + private final RemoveCommentActionResponse model = new RemoveCommentActionResponse(); + + /** + * Model tests for RemoveCommentActionResponse + */ + @Test + public void testRemoveCommentActionResponse() { + // TODO: test RemoveCommentActionResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'action' + */ + @Test + public void actionTest() { + // TODO: test action + } + +} diff --git a/client/src/test/java/com/fastcomments/model/RemoveUserBadgeResponseTest.java b/client/src/test/java/com/fastcomments/model/RemoveUserBadgeResponseTest.java new file mode 100644 index 00000000..ee81e89a --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/RemoveUserBadgeResponseTest.java @@ -0,0 +1,60 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CommentUserBadgeInfo; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RemoveUserBadgeResponse + */ +public class RemoveUserBadgeResponseTest { + private final RemoveUserBadgeResponse model = new RemoveUserBadgeResponse(); + + /** + * Model tests for RemoveUserBadgeResponse + */ + @Test + public void testRemoveUserBadgeResponse() { + // TODO: test RemoveUserBadgeResponse + } + + /** + * Test the property 'badges' + */ + @Test + public void badgesTest() { + // TODO: test badges + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/RenderEmailTemplate200ResponseTest.java b/client/src/test/java/com/fastcomments/model/RenderEmailTemplate200ResponseTest.java deleted file mode 100644 index 9b1fadb5..00000000 --- a/client/src/test/java/com/fastcomments/model/RenderEmailTemplate200ResponseTest.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.RenderEmailTemplateResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for RenderEmailTemplate200Response - */ -public class RenderEmailTemplate200ResponseTest { - private final RenderEmailTemplate200Response model = new RenderEmailTemplate200Response(); - - /** - * Model tests for RenderEmailTemplate200Response - */ - @Test - public void testRenderEmailTemplate200Response() { - // TODO: test RenderEmailTemplate200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'html' - */ - @Test - public void htmlTest() { - // TODO: test html - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/ResetUserNotifications200ResponseTest.java b/client/src/test/java/com/fastcomments/model/ResetUserNotifications200ResponseTest.java deleted file mode 100644 index 2d4b552d..00000000 --- a/client/src/test/java/com/fastcomments/model/ResetUserNotifications200ResponseTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.ResetUserNotificationsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ResetUserNotifications200Response - */ -public class ResetUserNotifications200ResponseTest { - private final ResetUserNotifications200Response model = new ResetUserNotifications200Response(); - - /** - * Model tests for ResetUserNotifications200Response - */ - @Test - public void testResetUserNotifications200Response() { - // TODO: test ResetUserNotifications200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/SaveComment200ResponseTest.java b/client/src/test/java/com/fastcomments/model/SaveCommentsBulkResponseTest.java similarity index 86% rename from client/src/test/java/com/fastcomments/model/SaveComment200ResponseTest.java rename to client/src/test/java/com/fastcomments/model/SaveCommentsBulkResponseTest.java index f7bb6c47..b24be075 100644 --- a/client/src/test/java/com/fastcomments/model/SaveComment200ResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/SaveCommentsBulkResponseTest.java @@ -13,11 +13,11 @@ package com.fastcomments.model; +import com.fastcomments.model.APIComment; import com.fastcomments.model.APIError; +import com.fastcomments.model.APISaveCommentResponse; import com.fastcomments.model.APIStatus; import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.FComment; -import com.fastcomments.model.SaveCommentResponse; import com.fastcomments.model.UserSessionInfo; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -32,17 +32,17 @@ import org.junit.jupiter.api.Test; /** - * Model tests for SaveComment200Response + * Model tests for SaveCommentsBulkResponse */ -public class SaveComment200ResponseTest { - private final SaveComment200Response model = new SaveComment200Response(); +public class SaveCommentsBulkResponseTest { + private final SaveCommentsBulkResponse model = new SaveCommentsBulkResponse(); /** - * Model tests for SaveComment200Response + * Model tests for SaveCommentsBulkResponse */ @Test - public void testSaveComment200Response() { - // TODO: test SaveComment200Response + public void testSaveCommentsBulkResponse() { + // TODO: test SaveCommentsBulkResponse } /** diff --git a/client/src/test/java/com/fastcomments/model/SearchUsers200ResponseTest.java b/client/src/test/java/com/fastcomments/model/SearchUsers200ResponseTest.java deleted file mode 100644 index 79147e35..00000000 --- a/client/src/test/java/com/fastcomments/model/SearchUsers200ResponseTest.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.SearchUsersResponse; -import com.fastcomments.model.SearchUsersSectionedResponse; -import com.fastcomments.model.UserSearchResult; -import com.fastcomments.model.UserSearchSectionResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for SearchUsers200Response - */ -public class SearchUsers200ResponseTest { - private final SearchUsers200Response model = new SearchUsers200Response(); - - /** - * Model tests for SearchUsers200Response - */ - @Test - public void testSearchUsers200Response() { - // TODO: test SearchUsers200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'sections' - */ - @Test - public void sectionsTest() { - // TODO: test sections - } - - /** - * Test the property 'users' - */ - @Test - public void usersTest() { - // TODO: test users - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/SearchUsersResultTest.java b/client/src/test/java/com/fastcomments/model/SearchUsersResultTest.java new file mode 100644 index 00000000..6268d462 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/SearchUsersResultTest.java @@ -0,0 +1,71 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.SearchUsersResponse; +import com.fastcomments.model.SearchUsersSectionedResponse; +import com.fastcomments.model.UserSearchResult; +import com.fastcomments.model.UserSearchSectionResult; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SearchUsersResult + */ +public class SearchUsersResultTest { + private final SearchUsersResult model = new SearchUsersResult(); + + /** + * Model tests for SearchUsersResult + */ + @Test + public void testSearchUsersResult() { + // TODO: test SearchUsersResult + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'sections' + */ + @Test + public void sectionsTest() { + // TODO: test sections + } + + /** + * Test the property 'users' + */ + @Test + public void usersTest() { + // TODO: test users + } + +} diff --git a/client/src/test/java/com/fastcomments/model/SetCommentApprovedResponseTest.java b/client/src/test/java/com/fastcomments/model/SetCommentApprovedResponseTest.java new file mode 100644 index 00000000..7198c47c --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/SetCommentApprovedResponseTest.java @@ -0,0 +1,57 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SetCommentApprovedResponse + */ +public class SetCommentApprovedResponseTest { + private final SetCommentApprovedResponse model = new SetCommentApprovedResponse(); + + /** + * Model tests for SetCommentApprovedResponse + */ + @Test + public void testSetCommentApprovedResponse() { + // TODO: test SetCommentApprovedResponse + } + + /** + * Test the property 'didResetFlaggedCount' + */ + @Test + public void didResetFlaggedCountTest() { + // TODO: test didResetFlaggedCount + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/SetCommentText200ResponseTest.java b/client/src/test/java/com/fastcomments/model/SetCommentText200ResponseTest.java deleted file mode 100644 index 0f910a31..00000000 --- a/client/src/test/java/com/fastcomments/model/SetCommentText200ResponseTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.PublicAPISetCommentTextResponse; -import com.fastcomments.model.SetCommentTextResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for SetCommentText200Response - */ -public class SetCommentText200ResponseTest { - private final SetCommentText200Response model = new SetCommentText200Response(); - - /** - * Model tests for SetCommentText200Response - */ - @Test - public void testSetCommentText200Response() { - // TODO: test SetCommentText200Response - } - - /** - * Test the property 'comment' - */ - @Test - public void commentTest() { - // TODO: test comment - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/SetCommentTextParamsTest.java b/client/src/test/java/com/fastcomments/model/SetCommentTextParamsTest.java new file mode 100644 index 00000000..15f0701d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/SetCommentTextParamsTest.java @@ -0,0 +1,48 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SetCommentTextParams + */ +public class SetCommentTextParamsTest { + private final SetCommentTextParams model = new SetCommentTextParams(); + + /** + * Model tests for SetCommentTextParams + */ + @Test + public void testSetCommentTextParams() { + // TODO: test SetCommentTextParams + } + + /** + * Test the property 'comment' + */ + @Test + public void commentTest() { + // TODO: test comment + } + +} diff --git a/client/src/test/java/com/fastcomments/model/SetCommentTextResponseTest.java b/client/src/test/java/com/fastcomments/model/SetCommentTextResponseTest.java new file mode 100644 index 00000000..5731f791 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/SetCommentTextResponseTest.java @@ -0,0 +1,57 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SetCommentTextResponse + */ +public class SetCommentTextResponseTest { + private final SetCommentTextResponse model = new SetCommentTextResponse(); + + /** + * Model tests for SetCommentTextResponse + */ + @Test + public void testSetCommentTextResponse() { + // TODO: test SetCommentTextResponse + } + + /** + * Test the property 'newCommentTextHTML' + */ + @Test + public void newCommentTextHTMLTest() { + // TODO: test newCommentTextHTML + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/SetUserTrustFactorResponseTest.java b/client/src/test/java/com/fastcomments/model/SetUserTrustFactorResponseTest.java new file mode 100644 index 00000000..59f46ae6 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/SetUserTrustFactorResponseTest.java @@ -0,0 +1,57 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SetUserTrustFactorResponse + */ +public class SetUserTrustFactorResponseTest { + private final SetUserTrustFactorResponse model = new SetUserTrustFactorResponse(); + + /** + * Model tests for SetUserTrustFactorResponse + */ + @Test + public void testSetUserTrustFactorResponse() { + // TODO: test SetUserTrustFactorResponse + } + + /** + * Test the property 'previousManualTrustFactor' + */ + @Test + public void previousManualTrustFactorTest() { + // TODO: test previousManualTrustFactor + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/TenantBadgeTest.java b/client/src/test/java/com/fastcomments/model/TenantBadgeTest.java new file mode 100644 index 00000000..5f4cb992 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/TenantBadgeTest.java @@ -0,0 +1,209 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TenantBadge + */ +public class TenantBadgeTest { + private final TenantBadge model = new TenantBadge(); + + /** + * Model tests for TenantBadge + */ + @Test + public void testTenantBadge() { + // TODO: test TenantBadge + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'tenantId' + */ + @Test + public void tenantIdTest() { + // TODO: test tenantId + } + + /** + * Test the property 'createdByUserId' + */ + @Test + public void createdByUserIdTest() { + // TODO: test createdByUserId + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'enabled' + */ + @Test + public void enabledTest() { + // TODO: test enabled + } + + /** + * Test the property 'urlId' + */ + @Test + public void urlIdTest() { + // TODO: test urlId + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'threshold' + */ + @Test + public void thresholdTest() { + // TODO: test threshold + } + + /** + * Test the property 'uses' + */ + @Test + public void usesTest() { + // TODO: test uses + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'displayLabel' + */ + @Test + public void displayLabelTest() { + // TODO: test displayLabel + } + + /** + * Test the property 'displaySrc' + */ + @Test + public void displaySrcTest() { + // TODO: test displaySrc + } + + /** + * Test the property 'backgroundColor' + */ + @Test + public void backgroundColorTest() { + // TODO: test backgroundColor + } + + /** + * Test the property 'borderColor' + */ + @Test + public void borderColorTest() { + // TODO: test borderColor + } + + /** + * Test the property 'textColor' + */ + @Test + public void textColorTest() { + // TODO: test textColor + } + + /** + * Test the property 'cssClass' + */ + @Test + public void cssClassTest() { + // TODO: test cssClass + } + + /** + * Test the property 'veteranUserThresholdMillis' + */ + @Test + public void veteranUserThresholdMillisTest() { + // TODO: test veteranUserThresholdMillis + } + + /** + * Test the property 'isAwaitingReprocess' + */ + @Test + public void isAwaitingReprocessTest() { + // TODO: test isAwaitingReprocess + } + + /** + * Test the property 'isAwaitingDeletion' + */ + @Test + public void isAwaitingDeletionTest() { + // TODO: test isAwaitingDeletion + } + + /** + * Test the property 'replacesBadgeId' + */ + @Test + public void replacesBadgeIdTest() { + // TODO: test replacesBadgeId + } + +} diff --git a/client/src/test/java/com/fastcomments/model/TenantPackageTest.java b/client/src/test/java/com/fastcomments/model/TenantPackageTest.java index 35b8c74c..b54e857b 100644 --- a/client/src/test/java/com/fastcomments/model/TenantPackageTest.java +++ b/client/src/test/java/com/fastcomments/model/TenantPackageTest.java @@ -72,6 +72,14 @@ public void createdAtTest() { // TODO: test createdAt } + /** + * Test the property 'templateId' + */ + @Test + public void templateIdTest() { + // TODO: test templateId + } + /** * Test the property 'monthlyCostUSD' */ @@ -488,4 +496,36 @@ public void isSSOBillingMonthlyActiveUsersTest() { // TODO: test isSSOBillingMonthlyActiveUsers } + /** + * Test the property 'hasAIAgents' + */ + @Test + public void hasAIAgentsTest() { + // TODO: test hasAIAgents + } + + /** + * Test the property 'maxAIAgents' + */ + @Test + public void maxAIAgentsTest() { + // TODO: test maxAIAgents + } + + /** + * Test the property 'aiAgentDailyBudgetCents' + */ + @Test + public void aiAgentDailyBudgetCentsTest() { + // TODO: test aiAgentDailyBudgetCents + } + + /** + * Test the property 'aiAgentMonthlyBudgetCents' + */ + @Test + public void aiAgentMonthlyBudgetCentsTest() { + // TODO: test aiAgentMonthlyBudgetCents + } + } diff --git a/client/src/test/java/com/fastcomments/model/UnBlockCommentPublic200ResponseTest.java b/client/src/test/java/com/fastcomments/model/UnBlockCommentPublic200ResponseTest.java deleted file mode 100644 index 1572d727..00000000 --- a/client/src/test/java/com/fastcomments/model/UnBlockCommentPublic200ResponseTest.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.UnblockSuccess; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UnBlockCommentPublic200Response - */ -public class UnBlockCommentPublic200ResponseTest { - private final UnBlockCommentPublic200Response model = new UnBlockCommentPublic200Response(); - - /** - * Model tests for UnBlockCommentPublic200Response - */ - @Test - public void testUnBlockCommentPublic200Response() { - // TODO: test UnBlockCommentPublic200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'commentStatuses' - */ - @Test - public void commentStatusesTest() { - // TODO: test commentStatuses - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/UpdateUserBadge200ResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateUserBadge200ResponseTest.java deleted file mode 100644 index b9072870..00000000 --- a/client/src/test/java/com/fastcomments/model/UpdateUserBadge200ResponseTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIEmptySuccessResponse; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UpdateUserBadge200Response - */ -public class UpdateUserBadge200ResponseTest { - private final UpdateUserBadge200Response model = new UpdateUserBadge200Response(); - - /** - * Model tests for UpdateUserBadge200Response - */ - @Test - public void testUpdateUserBadge200Response() { - // TODO: test UpdateUserBadge200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponseTest.java new file mode 100644 index 00000000..e1d0e1bf --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponseTest.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.IgnoredResponse; +import com.fastcomments.model.UserNotificationWriteResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateUserNotificationCommentSubscriptionStatusResponse + */ +public class UpdateUserNotificationCommentSubscriptionStatusResponseTest { + private final UpdateUserNotificationCommentSubscriptionStatusResponse model = new UpdateUserNotificationCommentSubscriptionStatusResponse(); + + /** + * Model tests for UpdateUserNotificationCommentSubscriptionStatusResponse + */ + @Test + public void testUpdateUserNotificationCommentSubscriptionStatusResponse() { + // TODO: test UpdateUserNotificationCommentSubscriptionStatusResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'matchedCount' + */ + @Test + public void matchedCountTest() { + // TODO: test matchedCount + } + + /** + * Test the property 'modifiedCount' + */ + @Test + public void modifiedCountTest() { + // TODO: test modifiedCount + } + + /** + * Test the property 'note' + */ + @Test + public void noteTest() { + // TODO: test note + } + +} diff --git a/client/src/test/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponseTest.java new file mode 100644 index 00000000..9c910d47 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponseTest.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.IgnoredResponse; +import com.fastcomments.model.UserNotificationWriteResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateUserNotificationPageSubscriptionStatusResponse + */ +public class UpdateUserNotificationPageSubscriptionStatusResponseTest { + private final UpdateUserNotificationPageSubscriptionStatusResponse model = new UpdateUserNotificationPageSubscriptionStatusResponse(); + + /** + * Model tests for UpdateUserNotificationPageSubscriptionStatusResponse + */ + @Test + public void testUpdateUserNotificationPageSubscriptionStatusResponse() { + // TODO: test UpdateUserNotificationPageSubscriptionStatusResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'matchedCount' + */ + @Test + public void matchedCountTest() { + // TODO: test matchedCount + } + + /** + * Test the property 'modifiedCount' + */ + @Test + public void modifiedCountTest() { + // TODO: test modifiedCount + } + + /** + * Test the property 'note' + */ + @Test + public void noteTest() { + // TODO: test note + } + +} diff --git a/client/src/test/java/com/fastcomments/model/UpdateUserNotificationStatus200ResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateUserNotificationStatus200ResponseTest.java deleted file mode 100644 index deae0af9..00000000 --- a/client/src/test/java/com/fastcomments/model/UpdateUserNotificationStatus200ResponseTest.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.IgnoredResponse; -import com.fastcomments.model.UserNotificationWriteResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UpdateUserNotificationStatus200Response - */ -public class UpdateUserNotificationStatus200ResponseTest { - private final UpdateUserNotificationStatus200Response model = new UpdateUserNotificationStatus200Response(); - - /** - * Model tests for UpdateUserNotificationStatus200Response - */ - @Test - public void testUpdateUserNotificationStatus200Response() { - // TODO: test UpdateUserNotificationStatus200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'matchedCount' - */ - @Test - public void matchedCountTest() { - // TODO: test matchedCount - } - - /** - * Test the property 'modifiedCount' - */ - @Test - public void modifiedCountTest() { - // TODO: test modifiedCount - } - - /** - * Test the property 'note' - */ - @Test - public void noteTest() { - // TODO: test note - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/client/src/test/java/com/fastcomments/model/UpdateUserNotificationStatusResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateUserNotificationStatusResponseTest.java new file mode 100644 index 00000000..38e08f7c --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UpdateUserNotificationStatusResponseTest.java @@ -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 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.IgnoredResponse; +import com.fastcomments.model.UserNotificationWriteResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateUserNotificationStatusResponse + */ +public class UpdateUserNotificationStatusResponseTest { + private final UpdateUserNotificationStatusResponse model = new UpdateUserNotificationStatusResponse(); + + /** + * Model tests for UpdateUserNotificationStatusResponse + */ + @Test + public void testUpdateUserNotificationStatusResponse() { + // TODO: test UpdateUserNotificationStatusResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'matchedCount' + */ + @Test + public void matchedCountTest() { + // TODO: test matchedCount + } + + /** + * Test the property 'modifiedCount' + */ + @Test + public void modifiedCountTest() { + // TODO: test modifiedCount + } + + /** + * Test the property 'note' + */ + @Test + public void noteTest() { + // TODO: test note + } + +} diff --git a/client/src/test/java/com/fastcomments/model/UserTest.java b/client/src/test/java/com/fastcomments/model/UserTest.java index 2c8bff25..db2955bd 100644 --- a/client/src/test/java/com/fastcomments/model/UserTest.java +++ b/client/src/test/java/com/fastcomments/model/UserTest.java @@ -14,6 +14,7 @@ package com.fastcomments.model; import com.fastcomments.model.DigestEmailFrequency; +import com.fastcomments.model.ImportedAgentApprovalNotificationFrequency; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -353,6 +354,14 @@ public void adminNotificationFrequencyTest() { // TODO: test adminNotificationFrequency } + /** + * Test the property 'agentApprovalNotificationFrequency' + */ + @Test + public void agentApprovalNotificationFrequencyTest() { + // TODO: test agentApprovalNotificationFrequency + } + /** * Test the property 'lastTenantNotificationSentDate' */ diff --git a/client/src/test/java/com/fastcomments/model/UsersListLocationTest.java b/client/src/test/java/com/fastcomments/model/UsersListLocationTest.java new file mode 100644 index 00000000..21d6ad68 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UsersListLocationTest.java @@ -0,0 +1,32 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.fastcomments.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UsersListLocation + */ +public class UsersListLocationTest { + /** + * Model tests for UsersListLocation + */ + @Test + public void testUsersListLocation() { + // TODO: test UsersListLocation + } + +} diff --git a/client/src/test/java/com/fastcomments/model/VoteComment200ResponseTest.java b/client/src/test/java/com/fastcomments/model/VoteComment200ResponseTest.java deleted file mode 100644 index 5a916df2..00000000 --- a/client/src/test/java/com/fastcomments/model/VoteComment200ResponseTest.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.fastcomments.model; - -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.VoteResponse; -import com.fastcomments.model.VoteResponseUser; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for VoteComment200Response - */ -public class VoteComment200ResponseTest { - private final VoteComment200Response model = new VoteComment200Response(); - - /** - * Model tests for VoteComment200Response - */ - @Test - public void testVoteComment200Response() { - // TODO: test VoteComment200Response - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'voteId' - */ - @Test - public void voteIdTest() { - // TODO: test voteId - } - - /** - * Test the property 'isVerified' - */ - @Test - public void isVerifiedTest() { - // TODO: test isVerified - } - - /** - * Test the property 'user' - */ - @Test - public void userTest() { - // TODO: test user - } - - /** - * Test the property 'editKey' - */ - @Test - public void editKeyTest() { - // TODO: test editKey - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'secondaryCode' - */ - @Test - public void secondaryCodeTest() { - // TODO: test secondaryCode - } - - /** - * Test the property 'bannedUntil' - */ - @Test - public void bannedUntilTest() { - // TODO: test bannedUntil - } - - /** - * Test the property 'maxCharacterLength' - */ - @Test - public void maxCharacterLengthTest() { - // TODO: test maxCharacterLength - } - - /** - * Test the property 'translatedError' - */ - @Test - public void translatedErrorTest() { - // TODO: test translatedError - } - - /** - * Test the property 'customConfig' - */ - @Test - public void customConfigTest() { - // TODO: test customConfig - } - -} diff --git a/core/build.gradle b/core/build.gradle index 23bd64d6..7318fb3b 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -1,3 +1,4 @@ +apply plugin: 'java' apply plugin: 'idea' apply plugin: 'eclipse' apply plugin: 'com.diffplug.spotless' @@ -66,6 +67,8 @@ dependencies { implementation project(':client') implementation 'com.google.code.gson:gson:2.12.1' implementation 'commons-codec:commons-codec:1.16.0' + testImplementation 'org.junit.jupiter:junit-jupiter:5.10.3' + testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.10.3' } javadoc { diff --git a/core/src/test/java/com/fastcomments/SSOIntegrationTest.java b/core/src/test/java/com/fastcomments/SSOIntegrationTest.java new file mode 100644 index 00000000..646628a2 --- /dev/null +++ b/core/src/test/java/com/fastcomments/SSOIntegrationTest.java @@ -0,0 +1,79 @@ +package com.fastcomments; + +import com.fastcomments.api.PublicApi; +import com.fastcomments.core.sso.FastCommentsSSO; +import com.fastcomments.core.sso.SecureSSOUserData; +import com.fastcomments.invoker.ApiClient; +import com.fastcomments.invoker.ApiException; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CommentData; +import com.fastcomments.model.GetCommentsResponseWithPresencePublicComment; +import com.fastcomments.model.SaveCommentsResponseWithPresence; +import org.junit.jupiter.api.Test; + +import java.security.GeneralSecurityException; + +import static org.junit.jupiter.api.Assertions.*; +import static org.junit.jupiter.api.Assumptions.assumeTrue; + +/** + * Integration tests that hit the live FastComments API. Requires FASTCOMMENTS_API_KEY and + * FASTCOMMENTS_TENANT_ID; skipped when they are not set. + */ +public class SSOIntegrationTest { + + private static final String API_KEY = System.getenv("FASTCOMMENTS_API_KEY"); + private static final String TENANT_ID = System.getenv("FASTCOMMENTS_TENANT_ID"); + private static final String BASE_URL = + System.getenv().getOrDefault("FASTCOMMENTS_BASE_URL", "https://fastcomments.com"); + + private PublicApi publicApi() { + ApiClient apiClient = new ApiClient(); + apiClient.setBasePath(BASE_URL); + return new PublicApi(apiClient); + } + + @Test + public void testCreateAndFetchCommentWithSecureSSO() throws GeneralSecurityException, ApiException { + assumeTrue(API_KEY != null && !API_KEY.isEmpty(), "FASTCOMMENTS_API_KEY is required"); + assumeTrue(TENANT_ID != null && !TENANT_ID.isEmpty(), "FASTCOMMENTS_TENANT_ID is required"); + + long timestamp = System.currentTimeMillis(); + String urlId = "sdk-test-java-" + timestamp; + String commentText = "Test from Java SDK at " + timestamp; + + SecureSSOUserData user = new SecureSSOUserData( + "java-user-" + timestamp, + "java-" + timestamp + "@example.com", + "javatester" + timestamp, + "https://example.com/avatar.jpg"); + FastCommentsSSO sso = FastCommentsSSO.createSecure(API_KEY, user); + String token = sso.prepareToSend(); + + CommentData commentData = new CommentData() + .commenterName(user.username) + .comment(commentText) + .url("https://example.com/java-test") + .urlId(urlId); + + SaveCommentsResponseWithPresence createResponse = publicApi() + .createCommentPublic(TENANT_ID, urlId, "java-test-" + timestamp, commentData) + .sso(token) + .execute(); + + assertEquals(APIStatus.SUCCESS, createResponse.getStatus(), "Create comment should succeed"); + assertNotNull(createResponse.getComment(), "Response should include the created comment"); + assertEquals(user.username, createResponse.getComment().getCommenterName()); + assertTrue(createResponse.getComment().getCommentHTML().contains(commentText)); + + GetCommentsResponseWithPresencePublicComment getResponse = publicApi() + .getCommentsPublic(TENANT_ID, urlId) + .sso(token) + .execute(); + + assertEquals("success", getResponse.getStatus(), "Get comments should succeed"); + assertNotNull(getResponse.getComments()); + assertTrue(getResponse.getComments().size() >= 1, "Should have at least one comment"); + assertEquals(user.username, getResponse.getComments().get(0).getCommenterName()); + } +} diff --git a/core/src/test/java/com/fastcomments/core/sso/SSOTest.java b/core/src/test/java/com/fastcomments/core/sso/SSOTest.java new file mode 100644 index 00000000..cdca7317 --- /dev/null +++ b/core/src/test/java/com/fastcomments/core/sso/SSOTest.java @@ -0,0 +1,57 @@ +package com.fastcomments.core.sso; + +import org.junit.jupiter.api.Test; + +import java.security.GeneralSecurityException; + +import static org.junit.jupiter.api.Assertions.*; + +/** + * Unit tests for SSO token / verification hash generation. No network or credentials required. + */ +public class SSOTest { + + private static final String API_KEY = "test-api-key-12345"; + + @Test + public void testCreateSecureSSOProducesToken() throws GeneralSecurityException { + SecureSSOUserData user = new SecureSSOUserData( + "user-1", "user@example.com", "tester", "https://example.com/avatar.jpg"); + FastCommentsSSO sso = FastCommentsSSO.createSecure(API_KEY, user); + + String token = sso.prepareToSend(); + assertNotNull(token); + assertFalse(token.isEmpty()); + + SecureSSOPayload payload = sso.getSecureSSOPayload(); + assertNotNull(payload); + assertNotNull(payload.userDataJSONBase64); + assertNotNull(payload.verificationHash); + assertTrue(payload.timestamp != null && payload.timestamp > 0); + } + + @Test + public void testCreateSimpleSSOProducesToken() { + SimpleSSOUserData user = new SimpleSSOUserData( + "tester", "user@example.com", "https://example.com/avatar.jpg"); + FastCommentsSSO sso = new FastCommentsSSO(user); + + String token = sso.prepareToSend(); + assertNotNull(token); + assertFalse(token.isEmpty()); + } + + @Test + public void testVerificationHashIsDeterministic() throws GeneralSecurityException { + long timestamp = 1700000000000L; + String userData = "dGVzdA=="; // base64("test") + + String hashA = SecureSSOPayload.createVerificationHash(API_KEY, timestamp, userData); + String hashB = SecureSSOPayload.createVerificationHash(API_KEY, timestamp, userData); + + assertNotNull(hashA); + assertFalse(hashA.isEmpty()); + assertEquals(hashA, hashB); + assertNotEquals(hashA, SecureSSOPayload.createVerificationHash(API_KEY, timestamp + 1, userData)); + } +} diff --git a/openapi.json b/openapi.json index 01cfdc47..ca0225c5 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,128 +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", - "new-ticket", - "updated-ticket-state", - "updated-ticket-assignment", - "deleted-ticket" - ], - "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" }, @@ -1715,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" @@ -1739,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" - }, - "createdAt": { - "type": "integer", - "format": "int64" + "hasEmailWildcard": { + "type": "boolean" }, - "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" @@ -1793,3439 +2101,3000 @@ "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", - "nullable": true + "GetBannedUsersFromCommentResponse": { + "properties": { + "bannedUsers": { + "items": { + "$ref": "#/components/schemas/APIBannedUserWithMultiMatchInfo" }, - "before": { - "type": "string", - "nullable": true - } + "type": "array" }, - "required": [ - "after", - "before" - ], - "type": "object" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" + "code": { + "type": "string", + "enum": [ + "not-found", + "not-logged-in" + ] + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "bannedUsers", + "status" + ], + "type": "object" }, - "CommentPositions": { - "$ref": "#/components/schemas/Record_string._before-string-or-null--after-string-or-null__" + "APIEmptyResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" }, - "LiveEvent": { + "BanUserUndoParams": { "properties": { - "type": { - "$ref": "#/components/schemas/LiveEventType" - }, - "timestamp": { - "type": "integer", - "format": "int64" - }, - "ts": { - "type": "integer", - "format": "int64" - }, - "broadcastId": { - "type": "string" - }, - "userId": { - "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" - }, - "isClosed": { - "type": "boolean" - }, - "uj": { - "items": { - "type": "string" - }, - "type": "array" - }, - "ul": { - "items": { - "type": "string" - }, - "type": "array" - }, - "sc": { - "type": "integer", - "format": "int32" - }, - "changes": { - "$ref": "#/components/schemas/Int32Map" + "changelog": { + "$ref": "#/components/schemas/APIBanUserChangeLog" } }, "required": [ - "type" + "changelog" ], "type": "object", "additionalProperties": false }, - "PublicAPIGetCommentTextResponse": { + "DeleteCommentAction": { + "type": "string", + "enum": [ + "already-deleted", + "hard-removed", + "anonymized" + ] + }, + "DeleteCommentResult": { "properties": { + "action": { + "$ref": "#/components/schemas/DeleteCommentAction" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "commentText": { - "type": "string" - }, - "sanitizedCommentText": { - "type": "string" } }, "required": [ - "status", - "commentText", - "sanitizedCommentText" + "action", + "status" ], "type": "object" }, - "SetCommentTextResult": { + "RemoveCommentActionResponse": { "properties": { - "approved": { - "type": "boolean" + "status": { + "type": "string" }, - "commentHTML": { + "action": { "type": "string" } }, "required": [ - "approved", - "commentHTML" + "status", + "action" ], "type": "object", "additionalProperties": false }, - "PublicAPISetCommentTextResponse": { + "SetCommentApprovedResponse": { "properties": { - "comment": { - "$ref": "#/components/schemas/SetCommentTextResult" + "didResetFlaggedCount": { + "type": "boolean" }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "comment", "status" ], "type": "object" }, - "CommentUserMentionInfo": { + "ModerationAPICommentLog": { "properties": { - "id": { - "type": "string" + "date": { + "type": "string", + "format": "date-time" }, - "tag": { + "username": { "type": "string" }, - "rawTag": { + "actionName": { "type": "string" }, - "type": { - "type": "string", - "enum": [ - "user", - "sso" - ] - }, - "sent": { - "type": "boolean" + "messageHTML": { + "type": "string" } }, "required": [ - "id", - "tag" + "date", + "actionName", + "messageHTML" ], "type": "object", "additionalProperties": false }, - "CommentUserHashTagInfo": { + "ModerationAPIGetLogsResponse": { "properties": { - "id": { - "type": "string" - }, - "tag": { - "type": "string" - }, - "url": { - "type": "string", - "nullable": true + "logs": { + "items": { + "$ref": "#/components/schemas/ModerationAPICommentLog" + }, + "type": "array" }, - "retain": { - "type": "boolean" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "id", - "tag", - "url" + "logs", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CommentTextUpdateRequest": { + "ModerationAPICommentResponse": { "properties": { "comment": { - "type": "string" + "$ref": "#/components/schemas/ModerationAPIComment" }, - "mentions": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "comment", + "status" + ], + "type": "object" + }, + "ModerationAPIChildCommentsResponse": { + "properties": { + "comments": { "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" + "$ref": "#/components/schemas/ModerationAPIComment" }, "type": "array" }, - "hashTags": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "comments", + "status" + ], + "type": "object" + }, + "CommentsByIdsParams": { + "properties": { + "ids": { "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" + "type": "string" }, "type": "array" } }, + "required": [ + "ids" + ], + "type": "object", + "additionalProperties": false + }, + "GetCommentTextResponse": { + "properties": { + "comment": { + "type": "string", + "nullable": true + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "SetCommentTextResponse": { + "properties": { + "newCommentTextHTML": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "newCommentTextHTML", + "status" + ], + "type": "object" + }, + "SetCommentTextParams": { + "properties": { + "comment": { + "type": "string" + } + }, "required": [ "comment" ], "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" + "AdjustVotesResponse": { + "properties": { + "status": { + "type": "string" + }, + "newCommentVotes": { + "type": "integer", + "format": "int32" + } + }, + "required": [ + "status", + "newCommentVotes" + ], + "type": "object", + "additionalProperties": false + }, + "AdjustCommentVotesParams": { + "properties": { + "adjustVoteAmount": { + "type": "number", + "format": "double" + } + }, + "required": [ + "adjustVoteAmount" + ], + "type": "object", + "additionalProperties": false + }, + "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" + "tenantId", + "createdByUserId", + "createdAt", + "enabled", + "type", + "threshold", + "uses", + "name", + "description", + "displayLabel", + "displaySrc", + "backgroundColor", + "borderColor", + "textColor", + "isAwaitingReprocess", + "isAwaitingDeletion" ], "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_": { + "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" } - ] - }, - "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" + "required": [ + "status" + ], + "type": "object" }, - "CommentData": { + "RemoveUserBadgeResponse": { "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": { + "badges": { "items": { - "type": "string" + "$ref": "#/components/schemas/CommentUserBadgeInfo" }, "type": "array" }, - "questionValues": { - "$ref": "#/components/schemas/Record_string.string-or-number_" - }, - "tos": { - "type": "boolean" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "commenterName", - "comment", - "url", - "urlId" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "DeletedCommentResultComment": { + "GetUserTrustFactorResponse": { "properties": { - "isDeleted": { - "type": "boolean" - }, - "commentHTML": { - "type": "string" + "manualTrustFactor": { + "type": "number", + "format": "double" }, - "commenterName": { - "type": "string" + "autoTrustFactor": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "commentHTML", - "commenterName" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "PublicAPIDeleteCommentResponse": { + "SetUserTrustFactorResponse": { "properties": { - "comment": { - "$ref": "#/components/schemas/DeletedCommentResultComment" - }, - "hardRemoved": { - "type": "boolean" + "previousManualTrustFactor": { + "type": "number", + "format": "double" }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "hardRemoved", "status" ], "type": "object" }, - "CheckBlockedCommentsResponse": { + "GetUserInternalProfileResponse": { "properties": { - "commentStatuses": { - "$ref": "#/components/schemas/Record_string.boolean_" + "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": "object" }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "commentStatuses", + "profile", "status" ], "type": "object" }, - "VoteResponseUser": { + "GetBannedUsersCountResponse": { "properties": { - "sessionId": { - "type": "string", - "nullable": true + "totalCount": { + "type": "number", + "format": "double" + }, + "status": { + "type": "string" } }, - "type": "object", - "additionalProperties": false + "required": [ + "totalCount", + "status" + ], + "type": "object" }, - "VoteResponse": { + "GifSearchResponse": { "properties": { - "status": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIStatus" - }, - { - "type": "string", - "enum": [ - "pending-verification" + "images": { + "items": { + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + } ] - } - ] - }, - "voteId": { - "type": "string" - }, - "isVerified": { - "type": "boolean" - }, - "user": { - "$ref": "#/components/schemas/VoteResponseUser" + }, + "type": "array" + }, + "type": "array" }, - "editKey": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ + "images", "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "VoteBodyParams": { + "GifSearchInternalError": { "properties": { - "commenterEmail": { - "type": "string", - "nullable": true - }, - "commenterName": { - "type": "string", - "nullable": true - }, - "voteDir": { - "type": "string", - "enum": [ - "up", - "down" - ] + "code": { + "type": "string" }, - "url": { - "type": "string", - "nullable": true - } - }, - "required": [ - "commenterEmail", - "commenterName", - "voteDir", - "url" - ], - "type": "object", - "additionalProperties": false - }, - "VoteDeleteResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "wasPendingVote": { - "type": "boolean" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ + "code", "status" ], - "type": "object", - "additionalProperties": false - }, - "GetCommentVoteUserNamesSuccessResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "voteUserNames": { - "items": { - "type": "string" - }, - "type": "array" - }, - "hasMore": { - "type": "boolean" - } - }, - "required": [ - "status", - "voteUserNames", - "hasMore" - ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "ChangeCommentPinStatusResponse": { + "GifGetLargeResponse": { "properties": { - "commentPositions": { - "$ref": "#/components/schemas/CommentPositions" + "src": { + "type": "string" }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "commentPositions", + "src", "status" ], "type": "object" }, - "BlockSuccess": { + "FeedPostMediaItemAsset": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "w": { + "type": "integer", + "format": "int32" }, - "commentStatuses": { - "$ref": "#/components/schemas/Record_string.boolean_" + "h": { + "type": "integer", + "format": "int32" + }, + "src": { + "type": "string" } }, "required": [ - "status", - "commentStatuses" + "w", + "h", + "src" ], "type": "object", "additionalProperties": false }, - "PublicBlockFromCommentParams": { + "FeedPostMediaItem": { "properties": { - "commentIds": { + "title": { + "type": "string" + }, + "linkUrl": { + "type": "string" + }, + "sizes": { "items": { - "type": "string" + "$ref": "#/components/schemas/FeedPostMediaItemAsset" }, - "type": "array", - "nullable": true, - "description": "A list of comment ids to check if are blocked after performing the update." + "type": "array" } }, "required": [ - "commentIds" + "sizes" ], "type": "object", "additionalProperties": false }, - "UnblockSuccess": { + "FeedPostLink": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "text": { + "type": "string" }, - "commentStatuses": { - "$ref": "#/components/schemas/Record_string.boolean_" + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" } }, - "required": [ - "status", - "commentStatuses" - ], "type": "object", "additionalProperties": false }, - "APIUserSubscription": { + "Int32Map": { + "properties": {}, + "additionalProperties": { + "type": "integer", + "format": "int32" + }, + "type": "object" + }, + "FeedPost": { "properties": { - "notificationFrequency": { - "type": "number", - "format": "double" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "pageTitle": { + "_id": { "type": "string" }, - "url": { + "tenantId": { "type": "string" }, - "urlId": { + "title": { "type": "string" }, - "anonUserId": { + "fromUserId": { "type": "string" }, - "userId": { - "type": "string" + "fromUserDisplayName": { + "type": "string", + "nullable": true }, - "id": { - "type": "string" - } - }, - "required": [ - "createdAt", - "urlId", - "id" - ], - "type": "object" - }, - "GetSubscriptionsAPIResponse": { - "properties": { - "reason": { - "type": "string" + "fromUserAvatar": { + "type": "string", + "nullable": true }, - "code": { + "fromIpHash": { "type": "string" }, - "subscriptions": { + "tags": { "items": { - "$ref": "#/components/schemas/APIUserSubscription" + "type": "string" }, "type": "array" }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "CreateSubscriptionAPIResponse": { - "properties": { - "reason": { - "type": "string" + "weight": { + "type": "number", + "format": "double" }, - "code": { + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "contentHTML": { "type": "string" }, - "subscription": { - "$ref": "#/components/schemas/APIUserSubscription" + "media": { + "items": { + "$ref": "#/components/schemas/FeedPostMediaItem" + }, + "type": "array" }, - "status": { - "type": "string" + "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": [ - "status" + "_id", + "tenantId", + "createdAt" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "CreateAPIUserSubscriptionData": { + "UserSessionInfo": { "properties": { - "notificationFrequency": { - "type": "number", - "format": "double" - }, - "pageTitle": { + "id": { "type": "string" }, - "url": { - "type": "string" + "authorized": { + "type": "boolean" }, - "urlId": { - "type": "string" + "avatarSrc": { + "type": "string", + "nullable": true }, - "anonUserId": { - "type": "string" + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array" }, - "userId": { - "type": "string" - } - }, - "required": [ - "urlId" - ], - "type": "object" - }, - "UpdateSubscriptionAPIResponse": { - "properties": { - "reason": { + "displayLabel": { "type": "string" }, - "code": { - "type": "string" - }, - "subscription": { - "$ref": "#/components/schemas/APIUserSubscription" - }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "UpdateAPIUserSubscriptionData": { - "properties": { - "notificationFrequency": { - "type": "number", - "format": "double" - } - }, - "type": "object" - }, - "DeleteSubscriptionAPIResponse": { - "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "APISSOUser": { - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "websiteUrl": { + "displayName": { "type": "string" }, "email": { - "type": "string" - }, - "signUpDate": { - "type": "integer", - "format": "int64" - }, - "createdFromUrlId": { - "type": "string" - }, - "loginCount": { - "type": "integer", - "format": "int32" - }, - "avatarSrc": { - "type": "string" - }, - "optedInNotifications": { - "type": "boolean" - }, - "optedInSubscriptionNotifications": { - "type": "boolean" - }, - "displayLabel": { - "type": "string" - }, - "displayName": { - "type": "string" + "type": "string", + "nullable": true }, - "isAccountOwner": { - "type": "boolean" + "groupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "isAdminAdmin": { + "hasBlockedUsers": { "type": "boolean" }, - "isCommentModeratorAdmin": { + "isAnonSession": { "type": "boolean" }, - "isProfileActivityPrivate": { + "needsTOS": { "type": "boolean" }, - "isProfileCommentsPrivate": { - "type": "boolean" + "sessionId": { + "type": "string", + "nullable": true }, - "isProfileDMDisabled": { - "type": "boolean" + "username": { + "type": "string" }, - "hasBlockedUsers": { - "type": "boolean" + "websiteUrl": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "GetPublicFeedPostsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "groupIds": { + "feedPosts": { "items": { - "type": "string" + "$ref": "#/components/schemas/FeedPost" }, "type": "array" + }, + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true } }, "required": [ - "id", - "username", - "websiteUrl", - "email", - "signUpDate", - "createdFromUrlId", - "loginCount", - "avatarSrc", - "optedInNotifications", - "optedInSubscriptionNotifications", - "displayLabel", - "displayName" + "status", + "feedPosts" ], "type": "object", "additionalProperties": false }, - "GetSSOUserByIdAPIResponse": { + "TenantIdWS": { + "type": "string" + }, + "UserIdWS": { + "type": "string" + }, + "UrlIdWS": { + "type": "string" + }, + "UserPresenceData": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" + "urlIdWS": { + "$ref": "#/components/schemas/UrlIdWS" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" + "userIdWS": { + "$ref": "#/components/schemas/UserIdWS" }, - "status": { - "type": "string" + "tenantIdWS": { + "$ref": "#/components/schemas/TenantIdWS" } }, - "required": [ - "status" - ], "type": "object" }, - "GetSSOUserByEmailAPIResponse": { - "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" + "PublicFeedPostsResponse": { + "allOf": [ + { + "properties": { + "myReacts": { + "properties": {}, + "additionalProperties": { + "properties": {}, + "additionalProperties": { + "type": "boolean" + }, + "type": "object" + }, + "type": "object" + } + }, + "type": "object" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" + { + "$ref": "#/components/schemas/GetPublicFeedPostsResponse" }, - "status": { - "type": "string" + { + "$ref": "#/components/schemas/UserPresenceData" } - }, - "required": [ - "status" - ], - "type": "object" + ] }, - "DeleteSSOUserAPIResponse": { + "ReactFeedPostResponse": { "properties": { - "reason": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "code": { + "reactType": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" - }, - "status": { - "type": "string" + "isUndo": { + "type": "boolean" } }, "required": [ - "status" + "status", + "reactType", + "isUndo" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "PatchSSOUserAPIResponse": { + "ReactBodyParams": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/APISSOUser" - }, - "status": { + "reactType": { "type": "string" } }, - "required": [ - "status" - ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "UpdateAPISSOUserData": { + "UserReactsResponse": { "properties": { - "groupIds": { - "items": { - "type": "string" - }, - "type": "array" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "hasBlockedUsers": { - "type": "boolean" - }, - "isProfileDMDisabled": { - "type": "boolean" - }, - "isProfileCommentsPrivate": { - "type": "boolean" - }, - "isProfileActivityPrivate": { - "type": "boolean" - }, - "isCommentModeratorAdmin": { - "type": "boolean" - }, - "isAdminAdmin": { - "type": "boolean" - }, - "isAccountOwner": { - "type": "boolean" - }, - "displayName": { - "type": "string" - }, - "displayLabel": { - "type": "string" - }, - "optedInSubscriptionNotifications": { - "type": "boolean" - }, - "optedInNotifications": { - "type": "boolean" - }, - "avatarSrc": { - "type": "string" - }, - "loginCount": { - "type": "integer", - "format": "int32" - }, - "createdFromUrlId": { - "type": "string" - }, - "signUpDate": { - "type": "integer", - "format": "int64" - }, - "email": { - "type": "string" - }, - "websiteUrl": { - "type": "string" - }, - "username": { - "type": "string" - }, - "id": { - "type": "string" + "reacts": { + "properties": {}, + "additionalProperties": { + "properties": {}, + "additionalProperties": { + "type": "boolean" + }, + "type": "object" + }, + "type": "object" } }, - "type": "object" + "required": [ + "status", + "reacts" + ], + "type": "object", + "additionalProperties": false }, - "PutSSOUserAPIResponse": { + "CreateFeedPostResponse": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "user": { - "allOf": [ - { - "$ref": "#/components/schemas/APISSOUser" - } - ], - "nullable": true - }, "status": { - "type": "string" + "$ref": "#/components/schemas/APIStatus" + }, + "feedPost": { + "$ref": "#/components/schemas/FeedPost" } }, "required": [ - "status" + "status", + "feedPost" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "AddSSOUserAPIResponse": { + "CreateFeedPostParams": { "properties": { - "reason": { + "title": { "type": "string" }, - "code": { + "contentHTML": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" - }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "CreateAPISSOUserData": { - "properties": { - "groupIds": { + "media": { "items": { - "type": "string" + "$ref": "#/components/schemas/FeedPostMediaItem" }, "type": "array" }, - "hasBlockedUsers": { - "type": "boolean" - }, - "isProfileDMDisabled": { - "type": "boolean" - }, - "isProfileCommentsPrivate": { - "type": "boolean" - }, - "isProfileActivityPrivate": { - "type": "boolean" + "links": { + "items": { + "$ref": "#/components/schemas/FeedPostLink" + }, + "type": "array" }, - "isCommentModeratorAdmin": { - "type": "boolean" + "fromUserId": { + "type": "string" }, - "isAdminAdmin": { - "type": "boolean" + "fromUserDisplayName": { + "type": "string" }, - "isAccountOwner": { - "type": "boolean" + "tags": { + "items": { + "type": "string" + }, + "type": "array" }, - "displayName": { + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "type": "object", + "additionalProperties": false + }, + "UpdateFeedPostParams": { + "properties": { + "title": { "type": "string" }, - "displayLabel": { + "contentHTML": { "type": "string" }, - "optedInSubscriptionNotifications": { - "type": "boolean" + "media": { + "items": { + "$ref": "#/components/schemas/FeedPostMediaItem" + }, + "type": "array" }, - "optedInNotifications": { - "type": "boolean" + "links": { + "items": { + "$ref": "#/components/schemas/FeedPostLink" + }, + "type": "array" }, - "avatarSrc": { - "type": "string" + "tags": { + "items": { + "type": "string" + }, + "type": "array" }, - "loginCount": { + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "type": "object", + "additionalProperties": false + }, + "FeedPostStats": { + "properties": { + "reacts": { + "$ref": "#/components/schemas/Int32Map" + }, + "commentCount": { "type": "integer", "format": "int32" + } + }, + "type": "object", + "additionalProperties": false + }, + "FeedPostsStatsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "createdFromUrlId": { + "stats": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/FeedPostStats" + }, + "type": "object" + } + }, + "required": [ + "status", + "stats" + ], + "type": "object", + "additionalProperties": false + }, + "EventLogEntry": { + "properties": { + "_id": { "type": "string" }, - "signUpDate": { - "type": "integer", - "format": "int64" + "createdAt": { + "type": "string", + "format": "date-time" }, - "email": { + "tenantId": { "type": "string" }, - "websiteUrl": { + "urlId": { "type": "string" }, - "username": { + "broadcastId": { "type": "string" }, - "id": { + "data": { "type": "string" } }, "required": [ - "email", - "username", - "id" + "_id", + "createdAt", + "tenantId", + "urlId", + "broadcastId", + "data" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "APIPage": { + "GetEventLogResponse": { "properties": { - "isClosed": { - "type": "boolean" - }, - "accessibleByGroupIds": { + "events": { "items": { - "type": "string" + "$ref": "#/components/schemas/EventLogEntry" }, "type": "array" }, - "rootCommentCount": { - "type": "integer", - "format": "int64" + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "events", + "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", + "new-ticket", + "updated-ticket-state", + "updated-ticket-assignment", + "deleted-ticket", + "page-react", + "question-result" + ], + "type": "string" + }, + "TenantId": { + "type": "string" + }, + "UserNotification": { + "properties": { + "_id": { + "type": "string" }, - "commentCount": { - "type": "integer", - "format": "int64" + "tenantId": { + "$ref": "#/components/schemas/TenantId" }, - "createdAt": { + "userId": { "type": "string", - "format": "date-time" + "nullable": true }, - "title": { + "anonUserId": { + "type": "string", + "nullable": true + }, + "urlId": { "type": "string" }, "url": { "type": "string" }, - "urlId": { - "type": "string" + "pageTitle": { + "type": "string", + "nullable": true }, - "id": { - "type": "string" - } - }, - "required": [ - "rootCommentCount", - "commentCount", - "createdAt", - "title", - "urlId", - "id" - ], - "type": "object" - }, - "GetPagesAPIResponse": { - "properties": { - "reason": { - "type": "string" + "relatedObjectType": { + "$ref": "#/components/schemas/NotificationObjectType" }, - "code": { + "relatedObjectId": { "type": "string" }, - "pages": { + "viewed": { + "type": "boolean" + }, + "isUnreadMessage": { + "type": "boolean" + }, + "sent": { + "type": "boolean" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "type": { + "$ref": "#/components/schemas/NotificationType" + }, + "fromCommentId": { + "type": "string", + "nullable": true + }, + "fromVoteId": { + "type": "string", + "nullable": true + }, + "fromUserName": { + "type": "string", + "nullable": true + }, + "fromUserId": { + "type": "string", + "nullable": true + }, + "fromUserAvatarSrc": { + "type": "string", + "nullable": true + }, + "optedOut": { + "type": "boolean" + }, + "count": { + "type": "integer", + "format": "int64" + }, + "relatedIds": { "items": { - "$ref": "#/components/schemas/APIPage" + "type": "string" }, "type": "array" }, - "status": { - "type": "string" + "fromUserIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "fromUserNames": { + "items": { + "type": "string" + }, + "type": "array" } }, "required": [ - "status" + "_id", + "tenantId", + "urlId", + "url", + "relatedObjectType", + "relatedObjectId", + "viewed", + "isUnreadMessage", + "sent", + "createdAt", + "type", + "optedOut" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "GetPageByURLIdAPIResponse": { + "PubSubVote": { "properties": { - "reason": { + "_id": { "type": "string" }, - "code": { + "tenantId": { "type": "string" }, - "page": { - "$ref": "#/components/schemas/APIPage" - }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "AddPageAPIResponse": { - "properties": { - "reason": { + "urlId": { "type": "string" }, - "code": { + "urlIdRaw": { "type": "string" }, - "page": { - "$ref": "#/components/schemas/APIPage" - }, - "status": { + "commentId": { "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "CreateAPIPageData": { - "properties": { - "accessibleByGroupIds": { - "items": { - "type": "string" - }, - "type": "array" }, - "rootCommentCount": { + "userId": { + "type": "string", + "nullable": true + }, + "direction": { "type": "integer", - "format": "int64" + "format": "int32" }, - "commentCount": { + "createdAt": { "type": "integer", "format": "int64" }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "urlId": { - "type": "string" + "verificationId": { + "type": "string", + "nullable": true } }, "required": [ - "title", - "url", - "urlId" + "_id", + "tenantId", + "urlId", + "urlIdRaw", + "commentId", + "direction", + "createdAt", + "verificationId" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "PatchPageAPIResponse": { - "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "commentsUpdated": { - "type": "integer", - "format": "int64" - }, - "page": { - "$ref": "#/components/schemas/APIPage" - }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "UpdateAPIPageData": { - "properties": { - "isClosed": { - "type": "boolean" - }, - "accessibleByGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "urlId": { - "type": "string" - } - }, - "type": "object" - }, - "DeletePageAPIResponse": { - "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" + "FDomain": { + "type": "string" }, - "PublicVote": { + "PubSubCommentBase": { "properties": { - "id": { - "type": "string" - }, - "urlId": { + "_id": { "type": "string" }, - "commentId": { + "tenantId": { "type": "string" }, "userId": { - "type": "string" + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, - "direction": { + "urlId": { "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" - }, - "type": "array" - } - }, - "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" - }, - "type": "array" - }, - "pendingVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" - }, - "type": "array" - } - }, - "required": [ - "status", - "appliedAuthorizedVotes", - "appliedAnonymousVotes", - "pendingVotes" - ], - "type": "object", - "additionalProperties": false - }, - "DigestEmailFrequency": { - "enum": [ - -1, - 0, - 1, - 2 - ], - "type": "integer" - }, - "User": { - "properties": { - "_id": { + "commenterName": { "type": "string" }, - "tenantId": { + "commenterLink": { "type": "string", "nullable": true }, - "username": { + "commentHTML": { "type": "string" }, - "displayName": { + "comment": { "type": "string" }, - "websiteUrl": { + "parentId": { "type": "string", "nullable": true }, - "email": { - "type": "string", + "votes": { + "type": "integer", + "format": "int32", "nullable": true }, - "pendingEmail": { - "type": "string" - }, - "backupEmail": { - "type": "string" - }, - "pendingBackupEmail": { - "type": "string" - }, - "signUpDate": { + "votesUp": { "type": "integer", - "format": "int64" - }, - "createdFromUrlId": { - "type": "string", + "format": "int32", "nullable": true }, - "createdFromTenantId": { - "type": "string", + "votesDown": { + "type": "integer", + "format": "int32", "nullable": true }, - "createdFromIpHashed": { - "type": "string" - }, "verified": { "type": "boolean" }, - "loginId": { - "type": "string" - }, - "loginIdDate": { - "type": "integer", - "format": "int64" - }, - "loginCount": { - "type": "integer", - "format": "int32" - }, - "optedInNotifications": { - "type": "boolean" - }, - "optedInTenantNotifications": { - "type": "boolean" - }, - "hideAccountCode": { - "type": "boolean" - }, "avatarSrc": { "type": "string", "nullable": true }, - "isFastCommentsHelpRequestAdmin": { + "hasImages": { "type": "boolean" }, - "isHelpRequestAdmin": { + "hasLinks": { "type": "boolean" }, - "isAccountOwner": { + "isByAdmin": { "type": "boolean" }, - "isAdminAdmin": { + "isByModerator": { "type": "boolean" }, - "isBillingAdmin": { - "type": "boolean" + "isPinned": { + "type": "boolean", + "nullable": true }, - "isAnalyticsAdmin": { - "type": "boolean" + "isLocked": { + "type": "boolean", + "nullable": true }, - "isCustomizationAdmin": { - "type": "boolean" + "displayLabel": { + "type": "string", + "nullable": true }, - "isManageDataAdmin": { - "type": "boolean" + "rating": { + "type": "number", + "format": "double", + "nullable": true }, - "isCommentModeratorAdmin": { + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", + "nullable": true + }, + "viewCount": { + "type": "integer", + "format": "int64", + "nullable": true + }, + "isDeleted": { "type": "boolean" }, - "isAPIAdmin": { + "isDeletedUser": { "type": "boolean" }, - "isSiteAdmin": { + "isSpam": { "type": "boolean" }, - "moderatorIds": { + "anonUserId": { + "type": "string", + "nullable": true + }, + "feedbackIds": { "items": { "type": "string" }, "type": "array" }, - "isImpersonator": { - "type": "boolean" + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true }, - "isCouponManager": { - "type": "boolean" + "domain": { + "allOf": [ + { + "$ref": "#/components/schemas/FDomain" + } + ], + "nullable": true }, - "locale": { + "url": { "type": "string" }, - "digestEmailFrequency": { - "$ref": "#/components/schemas/DigestEmailFrequency" - }, - "notificationFrequency": { - "type": "number", - "format": "double" - }, - "adminNotificationFrequency": { - "type": "number", - "format": "double" - }, - "lastTenantNotificationSentDate": { - "type": "string", - "format": "date-time" - }, - "lastReplyNotificationSentDate": { + "pageTitle": { "type": "string", - "format": "date-time" - }, - "ignoredAddToMySiteMessages": { - "type": "boolean" + "nullable": true }, - "lastLoginDate": { + "expireAt": { "type": "string", - "format": "date-time" - }, - "displayLabel": { - "type": "string" + "format": "date-time", + "nullable": true }, - "isProfileActivityPrivate": { + "reviewed": { "type": "boolean" }, - "isProfileCommentsPrivate": { + "hasCode": { "type": "boolean" }, - "isProfileDMDisabled": { + "approved": { "type": "boolean" }, - "profileCommentApprovalMode": { - "type": "number", - "format": "double" - }, - "karma": { - "type": "number", - "format": "double" - }, - "passwordHash": { - "type": "string" - }, - "averageTicketAckTimeMS": { - "type": "number", - "format": "double", + "locale": { + "type": "string", "nullable": true }, - "hasBlockedUsers": { + "isBannedUser": { "type": "boolean" }, - "bio": { - "type": "string" - }, - "headerBackgroundSrc": { - "type": "string" - }, - "countryCode": { - "type": "string" - }, - "countryFlag": { - "type": "string" - }, - "socialLinks": { + "groupIds": { "items": { "type": "string" }, - "type": "array" - }, - "hasTwoFactor": { - "type": "boolean" - }, - "isEmailSuppressed": { - "type": "boolean" + "type": "array", + "nullable": true } }, "required": [ "_id", - "username", - "email", - "signUpDate", - "createdFromTenantId", - "createdFromIpHashed", + "tenantId", + "urlId", + "commenterName", + "commentHTML", + "comment", "verified", - "loginId", - "loginIdDate" + "url", + "approved", + "locale" ], "type": "object", "additionalProperties": false }, - "GetUserResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "PubSubComment": { + "allOf": [ + { + "$ref": "#/components/schemas/PubSubCommentBase" }, - "user": { - "$ref": "#/components/schemas/User" + { + "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 + } + }, + "required": [ + "after", + "before" + ], + "type": "object" }, - "required": [ - "status", - "user" - ], "type": "object", - "additionalProperties": false + "description": "Construct a type with a set of properties K of type T" }, - "UserBadge": { + "CommentPositions": { + "$ref": "#/components/schemas/Record_string._before-string-or-null--after-string-or-null__" + }, + "LiveEvent": { "properties": { - "_id": { - "type": "string" - }, - "userId": { - "type": "string" - }, - "badgeId": { - "type": "string" - }, - "fromTenantId": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, "type": { + "$ref": "#/components/schemas/LiveEventType" + }, + "timestamp": { "type": "integer", - "format": "int32" + "format": "int64" }, - "threshold": { + "ts": { "type": "integer", "format": "int64" }, - "description": { + "broadcastId": { "type": "string" }, - "displayLabel": { + "userId": { "type": "string" }, - "displaySrc": { - "type": "string", - "nullable": true - }, - "backgroundColor": { - "type": "string", - "nullable": true + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array" }, - "borderColor": { - "type": "string", - "nullable": true + "notification": { + "$ref": "#/components/schemas/UserNotification" }, - "textColor": { - "type": "string", - "nullable": true + "vote": { + "$ref": "#/components/schemas/PubSubVote" }, - "cssClass": { - "type": "string", - "nullable": true + "comment": { + "$ref": "#/components/schemas/PubSubComment" }, - "veteranUserThresholdMillis": { - "type": "integer", - "format": "int64" + "feedPost": { + "$ref": "#/components/schemas/FeedPost" }, - "displayedOnComments": { - "type": "boolean" - }, - "receivedAt": { - "type": "string", - "format": "date-time" + "extraInfo": { + "properties": { + "commentPositions": { + "$ref": "#/components/schemas/CommentPositions" + } + }, + "type": "object" }, - "order": { - "type": "integer", - "format": "int32" + "config": { + "additionalProperties": false, + "type": "object" }, - "urlId": { - "type": "string", - "nullable": true - } - }, - "required": [ - "_id", - "userId", - "badgeId", - "fromTenantId", - "createdAt", - "type", - "threshold", - "description", - "displayLabel", - "veteranUserThresholdMillis", - "displayedOnComments", - "receivedAt" - ], - "type": "object", - "additionalProperties": false - }, - "APIGetUserBadgeResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "isClosed": { + "type": "boolean" }, - "userBadge": { - "$ref": "#/components/schemas/UserBadge" - } - }, - "required": [ - "status", - "userBadge" - ], - "type": "object", - "additionalProperties": false - }, - "APIGetUserBadgesResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "uj": { + "items": { + "type": "string" + }, + "type": "array" }, - "userBadges": { + "ul": { "items": { - "$ref": "#/components/schemas/UserBadge" + "type": "string" }, "type": "array" + }, + "sc": { + "type": "integer", + "format": "int32" + }, + "changes": { + "$ref": "#/components/schemas/Int32Map" } }, "required": [ - "status", - "userBadges" + "type" ], "type": "object", "additionalProperties": false }, - "APICreateUserBadgeResponse": { + "PublicAPIGetCommentTextResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "userBadge": { - "$ref": "#/components/schemas/UserBadge" + "commentText": { + "type": "string" }, - "notes": { - "items": { - "type": "string" - }, - "type": "array" + "sanitizedCommentText": { + "type": "string" } }, "required": [ "status", - "userBadge" + "commentText", + "sanitizedCommentText" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateUserBadgeParams": { + "SetCommentTextResult": { "properties": { - "userId": { - "type": "string" + "approved": { + "type": "boolean" }, - "badgeId": { + "commentHTML": { "type": "string" - }, - "displayedOnComments": { - "type": "boolean" } }, "required": [ - "userId", - "badgeId" + "approved", + "commentHTML" ], "type": "object", "additionalProperties": false }, - "APIEmptySuccessResponse": { + "PublicAPISetCommentTextResponse": { "properties": { + "comment": { + "$ref": "#/components/schemas/SetCommentTextResult" + }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ + "comment", "status" ], - "type": "object", - "additionalProperties": false - }, - "UpdateUserBadgeParams": { - "properties": { - "displayedOnComments": { - "type": "boolean" - } - }, - "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" + "type": "object" }, - "UserBadgeProgress": { + "CommentUserMentionInfo": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { + "id": { "type": "string" }, - "userId": { + "tag": { "type": "string" }, - "firstCommentId": { + "rawTag": { "type": "string" }, - "firstCommentDate": { + "type": { "type": "string", - "format": "date-time" - }, - "autoTrustFactor": { - "type": "number", - "format": "double" - }, - "manualTrustFactor": { - "type": "number", - "format": "double" - }, - "progress": { - "$ref": "#/components/schemas/Record_string.number_" + "enum": [ + "user", + "sso" + ] }, - "tosAcceptedAt": { - "type": "string", - "format": "date-time" + "sent": { + "type": "boolean" } }, "required": [ - "_id", - "tenantId", - "userId", - "firstCommentId", - "firstCommentDate", - "progress" + "id", + "tag" ], "type": "object", "additionalProperties": false }, - "APIGetUserBadgeProgressResponse": { + "CommentUserHashTagInfo": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "id": { + "type": "string" }, - "userBadgeProgress": { - "$ref": "#/components/schemas/UserBadgeProgress" + "tag": { + "type": "string" + }, + "url": { + "type": "string", + "nullable": true + }, + "retain": { + "type": "boolean" } }, "required": [ - "status", - "userBadgeProgress" + "id", + "tag", + "url" ], "type": "object", "additionalProperties": false }, - "APIGetUserBadgeProgressListResponse": { + "CommentTextUpdateRequest": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "comment": { + "type": "string" }, - "userBadgeProgresses": { + "mentions": { "items": { - "$ref": "#/components/schemas/UserBadgeProgress" + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" + }, + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" }, "type": "array" } }, "required": [ - "status", - "userBadgeProgresses" + "comment" ], "type": "object", "additionalProperties": false }, - "APITicket": { - "properties": { - "_id": { - "type": "string" - }, - "urlId": { - "type": "string" - }, - "userId": { - "type": "string" - }, - "managedByTenantId": { - "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_" }, - "assignedUserIds": { - "items": { - "type": "string" + { + "properties": { + "moderatingTenantIds": { + "items": { + "type": "string" + }, + "type": "array" + } }, - "type": "array" - }, - "subject": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "state": { - "type": "integer", - "format": "int32" - }, - "fileCount": { - "type": "integer", - "format": "int32" + "type": "object" } - }, - "required": [ - "_id", - "urlId", - "userId", - "managedByTenantId", - "assignedUserIds", - "subject", - "createdAt", - "state", - "fileCount" - ], - "type": "object", - "additionalProperties": false + ] }, - "GetTicketsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "tickets": { - "items": { - "$ref": "#/components/schemas/APITicket" + "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" - } - }, - "required": [ - "status", - "tickets" - ], - "type": "object", - "additionalProperties": false - }, - "CreateTicketResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "type": "object" }, - "ticket": { - "$ref": "#/components/schemas/APITicket" - } - }, - "required": [ - "status", - "ticket" - ], - "type": "object", - "additionalProperties": false - }, - "CreateTicketBody": { - "properties": { - "subject": { - "type": "string" + { + "$ref": "#/components/schemas/PublicCommentBase" } - }, - "required": [ - "subject" - ], - "type": "object", - "additionalProperties": false + ] }, - "APITicketFile": { + "PublicCommentBase": { "properties": { - "id": { + "_id": { "type": "string" }, - "s3Key": { - "type": "string" + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, - "originalFileName": { + "commenterName": { "type": "string" }, - "sizeBytes": { - "type": "integer", - "format": "int32" + "commenterLink": { + "type": "string", + "nullable": true }, - "contentType": { + "commentHTML": { "type": "string" }, - "uploadedByUserId": { - "type": "string" + "parentId": { + "type": "string", + "nullable": true }, - "uploadedAt": { - "type": "string" + "date": { + "type": "string", + "format": "date-time", + "nullable": true }, - "url": { - "type": "string" + "votes": { + "type": "integer", + "format": "int32", + "nullable": true }, - "expiresAt": { - "type": "string" + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true }, - "expired": { + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "verified": { "type": "boolean" - } - }, - "required": [ - "id", - "s3Key", - "originalFileName", - "sizeBytes", - "contentType", - "uploadedByUserId", - "uploadedAt", - "url", - "expiresAt" - ], - "type": "object", - "additionalProperties": false - }, - "APITicketDetail": { - "properties": { - "_id": { - "type": "string" }, - "urlId": { - "type": "string" + "avatarSrc": { + "type": "string", + "nullable": true }, - "userId": { - "type": "string" + "hasImages": { + "type": "boolean" }, - "managedByTenantId": { - "type": "string" + "isByAdmin": { + "type": "boolean" }, - "assignedUserIds": { - "items": { - "type": "string" - }, - "type": "array" + "isByModerator": { + "type": "boolean" }, - "subject": { - "type": "string" + "isPinned": { + "type": "boolean", + "nullable": true }, - "createdAt": { - "type": "string" + "isLocked": { + "type": "boolean", + "nullable": true }, - "state": { - "type": "integer", - "format": "int32" + "displayLabel": { + "type": "string", + "nullable": true }, - "fileCount": { - "type": "integer", - "format": "int32" + "rating": { + "type": "number", + "format": "double", + "nullable": true }, - "files": { + "badges": { "items": { - "$ref": "#/components/schemas/APITicketFile" + "$ref": "#/components/schemas/CommentUserBadgeInfo" }, - "type": "array" + "type": "array", + "nullable": true }, - "reopenedAt": { - "type": "string", + "viewCount": { + "type": "integer", + "format": "int64", "nullable": true }, - "resolvedAt": { + "isDeleted": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "isSpam": { + "type": "boolean" + }, + "anonUserId": { "type": "string", "nullable": true }, - "ackAt": { - "type": "string", - "nullable": true + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "requiresVerification": { + "type": "boolean" + }, + "editKey": { + "type": "string" + }, + "approved": { + "type": "boolean" } }, "required": [ "_id", - "urlId", - "userId", - "managedByTenantId", - "assignedUserIds", - "subject", - "createdAt", - "state", - "fileCount", - "files" + "commenterName", + "commentHTML", + "date", + "verified" ], "type": "object", "additionalProperties": false }, - "GetTicketResponse": { + "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" + }, "status": { - "$ref": "#/components/schemas/APIStatus" + "type": "string" }, - "ticket": { - "$ref": "#/components/schemas/APITicketDetail" + "code": { + "type": "string" }, - "availableStates": { + "reason": { + "type": "string" + }, + "translatedWarning": { + "type": "string" + }, + "comments": { "items": { - "type": "number", - "format": "double" + "$ref": "#/components/schemas/PublicComment" }, "type": "array" + }, + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true + }, + "urlIdClean": { + "type": "string" + }, + "lastGenDate": { + "type": "integer", + "format": "int64", + "nullable": true + }, + "includesPastPages": { + "type": "boolean" + }, + "isDemo": { + "type": "boolean", + "enum": [ + true + ], + "nullable": false + }, + "commentCount": { + "type": "integer", + "format": "int32" + }, + "isSiteAdmin": { + "type": "boolean" + }, + "hasBillingIssue": { + "type": "boolean", + "enum": [ + true + ], + "nullable": false + }, + "moduleData": { + "$ref": "#/components/schemas/Record_string.any_" + }, + "pageNumber": { + "type": "integer", + "format": "int32" + }, + "isWhiteLabeled": { + "type": "boolean" + }, + "isProd": { + "type": "boolean", + "enum": [ + false + ], + "nullable": false + }, + "isCrawler": { + "type": "boolean", + "enum": [ + true + ], + "nullable": false + }, + "notificationCount": { + "type": "integer", + "format": "int32" + }, + "hasMore": { + "type": "boolean" + }, + "isClosed": { + "type": "boolean" + }, + "presencePollState": { + "type": "integer", + "format": "int32" + }, + "customConfig": { + "$ref": "#/components/schemas/CustomConfigParameters" } }, "required": [ "status", - "ticket", - "availableStates" + "comments", + "user", + "pageNumber" ], "type": "object", "additionalProperties": false }, - "ChangeTicketStateResponse": { + "GetCommentsResponseWithPresence_PublicComment_": { + "allOf": [ + { + "$ref": "#/components/schemas/GetCommentsResponse_PublicComment_" + }, + { + "$ref": "#/components/schemas/UserPresenceData" + } + ] + }, + "SaveCommentResponseOptimized": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "ticket": { - "$ref": "#/components/schemas/APITicket" + "comment": { + "$ref": "#/components/schemas/PublicComment" + }, + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true + }, + "moduleData": { + "$ref": "#/components/schemas/Record_string.any_" } }, "required": [ "status", - "ticket" + "comment", + "user" ], "type": "object", "additionalProperties": false }, - "ChangeTicketStateBody": { - "properties": { - "state": { - "type": "integer", - "format": "int32" + "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" + } + ] }, - "required": [ - "state" - ], "type": "object", - "additionalProperties": false - }, - "ImportedSiteType": { - "enum": [ - 0, - 1 - ], - "type": "integer" - }, - "SiteType": { - "$ref": "#/components/schemas/ImportedSiteType" + "description": "Construct a type with a set of properties K of type T" }, - "APIDomainConfiguration": { + "CommentData": { "properties": { - "id": { + "date": { + "type": "integer", + "format": "int64" + }, + "localDateString": { "type": "string" }, - "domain": { + "localDateHours": { + "type": "integer", + "format": "int32" + }, + "commenterName": { "type": "string" }, - "emailFromName": { + "commenterEmail": { "type": "string", "nullable": true }, - "emailFromEmail": { + "commenterLink": { "type": "string", "nullable": true }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "comment": { + "type": "string" }, - "wpSyncToken": { + "productId": { + "type": "integer", + "format": "int32" + }, + "userId": { "type": "string", "nullable": true }, - "wpSynced": { - "type": "boolean" - }, - "wpURL": { + "avatarSrc": { "type": "string", "nullable": true }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "autoAddedDate": { - "type": "string", - "format": "date-time" - }, - "siteType": { - "$ref": "#/components/schemas/SiteType" - }, - "logoSrc": { - "type": "string", - "nullable": true - }, - "logoSrc100px": { + "parentId": { "type": "string", "nullable": true }, - "footerUnsubscribeURL": { - "type": "string" - }, - "disableUnsubscribeLinks": { - "type": "boolean" - } - }, - "required": [ - "id", - "domain", - "createdAt" - ], - "type": "object", - "additionalProperties": false - }, - "BillingInfo": { - "properties": { - "name": { - "type": "string" - }, - "address": { - "type": "string" - }, - "city": { - "type": "string" - }, - "state": { - "type": "string" + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" }, - "zip": { - "type": "string" + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" }, - "country": { + "pageTitle": { "type": "string" }, - "currency": { - "type": "string", - "nullable": true, - "description": "Currency for invoices." - }, - "email": { - "type": "string", - "description": "Email for invoices." - } - }, - "required": [ - "name", - "address", - "city", - "state", - "zip", - "country" - ], - "type": "object", - "additionalProperties": false - }, - "APITenant": { - "properties": { - "id": { - "type": "string" + "isFromMyAccountPage": { + "type": "boolean" }, - "name": { + "url": { "type": "string" }, - "email": { + "urlId": { "type": "string" }, - "signUpDate": { - "type": "number", - "format": "double" + "meta": { + "additionalProperties": false, + "type": "object" }, - "packageId": { - "type": "string" + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "paymentFrequency": { + "rating": { "type": "number", "format": "double" }, - "billingInfoValid": { - "type": "boolean" - }, - "billingHandledExternally": { + "fromOfflineRestore": { "type": "boolean" }, - "createdBy": { - "type": "string" - }, - "isSetup": { - "type": "boolean" + "autoplayDelayMS": { + "type": "integer", + "format": "int64" }, - "domainConfiguration": { + "feedbackIds": { "items": { - "$ref": "#/components/schemas/APIDomainConfiguration" + "type": "string" }, "type": "array" }, - "billingInfo": { - "$ref": "#/components/schemas/BillingInfo" - }, - "stripeCustomerId": { - "type": "string" - }, - "stripeSubscriptionId": { - "type": "string" - }, - "stripePlanId": { - "type": "string" - }, - "enableProfanityFilter": { - "type": "boolean" - }, - "enableSpamFilter": { - "type": "boolean" - }, - "lastBillingIssueReminderDate": { - "type": "string", - "format": "date-time" - }, - "removeUnverifiedComments": { - "type": "boolean" - }, - "unverifiedCommentsTTLms": { - "type": "number", - "format": "double", - "nullable": true - }, - "commentsRequireApproval": { - "type": "boolean" - }, - "autoApproveCommentOnVerification": { - "type": "boolean" - }, - "sendProfaneToSpam": { - "type": "boolean" - }, - "hasFlexPricing": { - "type": "boolean" + "questionValues": { + "$ref": "#/components/schemas/Record_string.string-or-number_" }, - "hasAuditing": { + "tos": { "type": "boolean" }, - "flexLastBilledAmount": { - "type": "number", - "format": "double" - }, - "deAnonIpAddr": { - "type": "number", - "format": "double" - }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "botId": { + "type": "string" } }, "required": [ - "id", - "name", - "signUpDate", - "packageId", - "paymentFrequency", - "billingInfoValid", - "createdBy", - "isSetup", - "domainConfiguration", - "enableProfanityFilter", - "enableSpamFilter" + "commenterName", + "comment", + "url", + "urlId" ], "type": "object", "additionalProperties": false }, - "GetTenantResponse": { + "DeletedCommentResultComment": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "isDeleted": { + "type": "boolean" }, - "tenant": { - "$ref": "#/components/schemas/APITenant" + "commentHTML": { + "type": "string" + }, + "commenterName": { + "type": "string" + }, + "userId": { + "type": "string", + "nullable": true } }, "required": [ - "status", - "tenant" + "commentHTML", + "commenterName" ], "type": "object", "additionalProperties": false }, - "GetTenantsResponse": { + "PublicAPIDeleteCommentResponse": { "properties": { + "comment": { + "$ref": "#/components/schemas/DeletedCommentResultComment" + }, + "hardRemoved": { + "type": "boolean" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "tenants": { - "items": { - "$ref": "#/components/schemas/APITenant" - }, - "type": "array" } }, "required": [ - "status", - "tenants" + "hardRemoved", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTenantResponse": { + "CheckBlockedCommentsResponse": { "properties": { + "commentStatuses": { + "$ref": "#/components/schemas/Record_string.boolean_" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "tenant": { - "$ref": "#/components/schemas/APITenant" } }, "required": [ - "status", - "tenant" + "commentStatuses", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTenantBody": { + "VoteBodyParams": { "properties": { - "name": { - "type": "string" + "commenterEmail": { + "type": "string", + "nullable": true }, - "domainConfiguration": { - "items": { - "$ref": "#/components/schemas/APIDomainConfiguration" - }, - "type": "array" - }, - "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" - }, - "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" + "commenterName": { + "type": "string", + "nullable": true }, - "deAnonIpAddr": { - "type": "number", - "format": "double" + "voteDir": { + "type": "string", + "enum": [ + "up", + "down" + ] }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "url": { + "type": "string", + "nullable": true } }, "required": [ - "name", - "domainConfiguration" + "commenterEmail", + "commenterName", + "voteDir", + "url" ], "type": "object", "additionalProperties": false }, - "UpdateTenantBody": { + "GetCommentVoteUserNamesSuccessResponse": { "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" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "domainConfiguration": { + "voteUserNames": { "items": { - "$ref": "#/components/schemas/APIDomainConfiguration" + "type": "string" }, "type": "array" }, - "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": { + "hasMore": { "type": "boolean" - }, - "deAnonIpAddr": { - "type": "number", - "format": "double" - }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" - }, - "managedByTenantId": { - "type": "string" } }, + "required": [ + "status", + "voteUserNames", + "hasMore" + ], "type": "object", "additionalProperties": false }, - "GetTenantUserResponse": { + "ChangeCommentPinStatusResponse": { + "properties": { + "commentPositions": { + "$ref": "#/components/schemas/CommentPositions" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "commentPositions", + "status" + ], + "type": "object" + }, + "BlockSuccess": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantUser": { - "$ref": "#/components/schemas/User" + "commentStatuses": { + "$ref": "#/components/schemas/Record_string.boolean_" } }, "required": [ "status", - "tenantUser" + "commentStatuses" ], "type": "object", "additionalProperties": false }, - "GetTenantUsersResponse": { + "PublicBlockFromCommentParams": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "tenantUsers": { + "commentIds": { "items": { - "$ref": "#/components/schemas/User" + "type": "string" }, - "type": "array" + "type": "array", + "nullable": true, + "description": "A list of comment ids to check if are blocked after performing the update." } }, "required": [ - "status", - "tenantUsers" + "commentIds" ], "type": "object", "additionalProperties": false }, - "CreateTenantUserResponse": { + "UnblockSuccess": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantUser": { - "$ref": "#/components/schemas/User" + "commentStatuses": { + "$ref": "#/components/schemas/Record_string.boolean_" } }, "required": [ "status", - "tenantUser" + "commentStatuses" ], "type": "object", "additionalProperties": false }, - "CreateTenantUserBody": { + "APIUserSubscription": { "properties": { - "username": { + "notificationFrequency": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "pageTitle": { "type": "string" }, - "email": { + "url": { "type": "string" }, - "displayName": { + "urlId": { "type": "string" }, - "websiteUrl": { + "anonUserId": { "type": "string" }, - "signUpDate": { - "type": "number", - "format": "double" + "userId": { + "type": "string" }, - "locale": { + "id": { + "type": "string" + } + }, + "required": [ + "createdAt", + "urlId", + "id" + ], + "type": "object" + }, + "GetSubscriptionsAPIResponse": { + "properties": { + "reason": { "type": "string" }, - "verified": { - "type": "boolean" - }, - "loginCount": { - "type": "number", - "format": "double" - }, - "optedInNotifications": { - "type": "boolean" - }, - "optedInTenantNotifications": { - "type": "boolean" - }, - "hideAccountCode": { - "type": "boolean" - }, - "avatarSrc": { + "code": { "type": "string" }, - "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": { + "subscriptions": { "items": { - "type": "string" + "$ref": "#/components/schemas/APIUserSubscription" }, "type": "array" }, - "digestEmailFrequency": { - "type": "number", - "format": "double" - }, - "displayLabel": { + "status": { "type": "string" } }, "required": [ - "username", - "email" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "ReplaceTenantUserBody": { + "CreateSubscriptionAPIResponse": { "properties": { - "username": { + "reason": { "type": "string" }, - "email": { + "code": { "type": "string" }, - "displayName": { - "type": "string" + "subscription": { + "$ref": "#/components/schemas/APIUserSubscription" }, - "websiteUrl": { + "status": { "type": "string" - }, - "signUpDate": { + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "CreateAPIUserSubscriptionData": { + "properties": { + "notificationFrequency": { "type": "number", "format": "double" }, - "locale": { + "pageTitle": { "type": "string" }, - "verified": { - "type": "boolean" - }, - "loginCount": { - "type": "number", - "format": "double" - }, - "optedInNotifications": { - "type": "boolean" - }, - "optedInTenantNotifications": { - "type": "boolean" - }, - "hideAccountCode": { - "type": "boolean" - }, - "avatarSrc": { + "url": { "type": "string" }, - "isHelpRequestAdmin": { - "type": "boolean" - }, - "isAccountOwner": { - "type": "boolean" - }, - "isAdminAdmin": { - "type": "boolean" - }, - "isBillingAdmin": { - "type": "boolean" - }, - "isAnalyticsAdmin": { - "type": "boolean" - }, - "isCustomizationAdmin": { - "type": "boolean" + "urlId": { + "type": "string" }, - "isManageDataAdmin": { - "type": "boolean" + "anonUserId": { + "type": "string" }, - "isCommentModeratorAdmin": { - "type": "boolean" + "userId": { + "type": "string" + } + }, + "required": [ + "urlId" + ], + "type": "object" + }, + "UpdateSubscriptionAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "isAPIAdmin": { - "type": "boolean" + "code": { + "type": "string" }, - "moderatorIds": { - "items": { - "type": "string" - }, - "type": "array" + "subscription": { + "$ref": "#/components/schemas/APIUserSubscription" }, - "digestEmailFrequency": { + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "UpdateAPIUserSubscriptionData": { + "properties": { + "notificationFrequency": { "type": "number", "format": "double" - }, - "displayLabel": { + } + }, + "type": "object" + }, + "DeleteSubscriptionAPIResponse": { + "properties": { + "reason": { "type": "string" }, - "createdFromUrlId": { + "code": { "type": "string" }, - "createdFromTenantId": { + "status": { "type": "string" - }, - "lastLoginDate": { - "type": "number", - "format": "double" - }, - "karma": { - "type": "number", - "format": "double" } }, "required": [ - "username", - "email" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "UpdateTenantUserBody": { + "APISSOUser": { "properties": { - "username": { + "id": { "type": "string" }, - "displayName": { + "username": { "type": "string" }, "websiteUrl": { @@ -5235,30 +5104,30 @@ "type": "string" }, "signUpDate": { - "type": "number", - "format": "double" + "type": "integer", + "format": "int64" }, - "verified": { - "type": "boolean" + "createdFromUrlId": { + "type": "string" }, "loginCount": { - "type": "number", - "format": "double" + "type": "integer", + "format": "int32" }, - "optedInNotifications": { - "type": "boolean" + "avatarSrc": { + "type": "string" }, - "optedInTenantNotifications": { + "optedInNotifications": { "type": "boolean" }, - "hideAccountCode": { + "optedInSubscriptionNotifications": { "type": "boolean" }, - "avatarSrc": { + "displayLabel": { "type": "string" }, - "isHelpRequestAdmin": { - "type": "boolean" + "displayName": { + "type": "string" }, "isAccountOwner": { "type": "boolean" @@ -5266,2927 +5135,2905 @@ "isAdminAdmin": { "type": "boolean" }, - "isBillingAdmin": { - "type": "boolean" - }, - "isAnalyticsAdmin": { + "isCommentModeratorAdmin": { "type": "boolean" }, - "isCustomizationAdmin": { + "isProfileActivityPrivate": { "type": "boolean" }, - "isManageDataAdmin": { + "isProfileCommentsPrivate": { "type": "boolean" }, - "isCommentModeratorAdmin": { + "isProfileDMDisabled": { "type": "boolean" }, - "isAPIAdmin": { + "hasBlockedUsers": { "type": "boolean" }, - "moderatorIds": { + "groupIds": { "items": { "type": "string" }, "type": "array" - }, - "locale": { - "type": "string" - }, - "digestEmailFrequency": { - "type": "number", - "format": "double" - }, - "displayLabel": { - "type": "string" } }, - "type": "object", - "additionalProperties": false - }, - "TenantPackage": { - "properties": { - "_id": { - "type": "string" - }, - "name": { + "required": [ + "id", + "username", + "websiteUrl", + "email", + "signUpDate", + "createdFromUrlId", + "loginCount", + "avatarSrc", + "optedInNotifications", + "optedInSubscriptionNotifications", + "displayLabel", + "displayName" + ], + "type": "object", + "additionalProperties": false + }, + "GetSSOUserByIdAPIResponse": { + "properties": { + "reason": { "type": "string" }, - "tenantId": { + "code": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "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" - }, - "maxTenantUsers": { - "type": "number", - "format": "double" + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "maxSSOUsers": { - "type": "number", - "format": "double" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "GetSSOUserByEmailAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "maxModerators": { - "type": "number", - "format": "double" + "code": { + "type": "string" }, - "maxDomains": { - "type": "number", - "format": "double" + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "maxWhiteLabeledTenants": { - "type": "number", - "format": "double" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "DeleteSSOUserAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "maxMonthlyEventLogRequests": { - "type": "number", - "format": "double" + "code": { + "type": "string" }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "hasWhiteLabeling": { - "type": "boolean" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "PatchSSOUserAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "hasDebranding": { - "type": "boolean" + "code": { + "type": "string" }, - "hasLLMSpamDetection": { - "type": "boolean" + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "forWhoText": { + "status": { "type": "string" - }, - "featureTaglines": { + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "UpdateAPISSOUserData": { + "properties": { + "groupIds": { "items": { "type": "string" }, "type": "array" }, - "hasAuditing": { + "hasBlockedUsers": { "type": "boolean" }, - "hasFlexPricing": { + "isProfileDMDisabled": { "type": "boolean" }, - "enableSAML": { + "isProfileCommentsPrivate": { "type": "boolean" }, - "enableCanvasLTI": { + "isProfileActivityPrivate": { "type": "boolean" }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" + "isCommentModeratorAdmin": { + "type": "boolean" }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" + "isAdminAdmin": { + "type": "boolean" }, - "flexCommentCostCents": { - "type": "number", - "format": "double" + "isAccountOwner": { + "type": "boolean" }, - "flexCommentUnit": { - "type": "number", - "format": "double" + "displayName": { + "type": "string" }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" + "displayLabel": { + "type": "string" }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" + "optedInSubscriptionNotifications": { + "type": "boolean" }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" + "optedInNotifications": { + "type": "boolean" }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" + "avatarSrc": { + "type": "string" }, - "flexSmallWidgetsCreditCostCents": { - "type": "number", - "format": "double" + "loginCount": { + "type": "integer", + "format": "int32" }, - "flexSmallWidgetsCreditUnit": { - "type": "number", - "format": "double" + "createdFromUrlId": { + "type": "string" }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" + "signUpDate": { + "type": "integer", + "format": "int64" }, - "flexModeratorUnit": { - "type": "number", - "format": "double" + "email": { + "type": "string" }, - "flexAdminCostCents": { - "type": "number", - "format": "double" + "websiteUrl": { + "type": "string" }, - "flexAdminUnit": { - "type": "number", - "format": "double" + "username": { + "type": "string" }, - "flexDomainCostCents": { - "type": "number", - "format": "double" + "id": { + "type": "string" + } + }, + "type": "object" + }, + "PutSSOUserAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "flexDomainUnit": { - "type": "number", - "format": "double" + "code": { + "type": "string" }, - "flexChatGPTCostCents": { - "type": "number", - "format": "double" + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/APISSOUser" + } + ], + "nullable": true }, - "flexChatGPTUnit": { - "type": "number", - "format": "double" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "AddSSOUserAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "flexLLMCostCents": { - "type": "number", - "format": "double" + "code": { + "type": "string" }, - "flexLLMUnit": { - "type": "number", - "format": "double" + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "CreateAPISSOUserData": { + "properties": { + "groupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "flexManagedTenantCostCents": { - "type": "number", - "format": "double" + "hasBlockedUsers": { + "type": "boolean" }, - "flexSSOAdminCostCents": { - "type": "number", - "format": "double" + "isProfileDMDisabled": { + "type": "boolean" }, - "flexSSOAdminUnit": { - "type": "number", - "format": "double" + "isProfileCommentsPrivate": { + "type": "boolean" }, - "flexSSOModeratorCostCents": { - "type": "number", - "format": "double" + "isProfileActivityPrivate": { + "type": "boolean" }, - "flexSSOModeratorUnit": { - "type": "number", - "format": "double" + "isCommentModeratorAdmin": { + "type": "boolean" }, - "isSSOBillingMonthlyActiveUsers": { + "isAdminAdmin": { + "type": "boolean" + }, + "isAccountOwner": { + "type": "boolean" + }, + "displayName": { + "type": "string" + }, + "displayLabel": { + "type": "string" + }, + "optedInSubscriptionNotifications": { + "type": "boolean" + }, + "optedInNotifications": { "type": "boolean" + }, + "avatarSrc": { + "type": "string" + }, + "loginCount": { + "type": "integer", + "format": "int32" + }, + "createdFromUrlId": { + "type": "string" + }, + "signUpDate": { + "type": "integer", + "format": "int64" + }, + "email": { + "type": "string" + }, + "websiteUrl": { + "type": "string" + }, + "username": { + "type": "string" + }, + "id": { + "type": "string" } }, "required": [ - "_id", - "name", - "tenantId", - "createdAt", - "monthlyCostUSD", - "yearlyCostUSD", - "monthlyStripePlanId", - "yearlyStripePlanId", - "maxMonthlyPageLoads", - "maxMonthlyAPICredits", - "maxMonthlySmallWidgetsCredits", - "maxMonthlyComments", - "maxConcurrentUsers", - "maxTenantUsers", - "maxSSOUsers", - "maxModerators", - "maxDomains", - "maxWhiteLabeledTenants", - "maxMonthlyEventLogRequests", - "maxCustomCollectionSize", - "hasWhiteLabeling", - "hasDebranding", - "hasLLMSpamDetection", - "forWhoText", - "featureTaglines", - "hasAuditing", - "hasFlexPricing" + "email", + "username", + "id" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "GetTenantPackageResponse": { + "APIPage": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "isClosed": { + "type": "boolean" }, - "tenantPackage": { - "$ref": "#/components/schemas/TenantPackage" + "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", - "tenantPackage" + "rootCommentCount", + "commentCount", + "createdAt", + "title", + "urlId", + "id" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "GetTenantPackagesResponse": { + "GetPagesAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "tenantPackages": { + "code": { + "type": "string" + }, + "pages": { "items": { - "$ref": "#/components/schemas/TenantPackage" + "$ref": "#/components/schemas/APIPage" }, "type": "array" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "tenantPackages" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTenantPackageResponse": { + "GetPageByURLIdAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "tenantPackage": { - "$ref": "#/components/schemas/TenantPackage" + "code": { + "type": "string" + }, + "page": { + "$ref": "#/components/schemas/APIPage" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "tenantPackage" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTenantPackageBody": { + "AddPageAPIResponse": { "properties": { - "name": { + "reason": { "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" + "code": { + "type": "string" }, - "maxTenantUsers": { - "type": "number", - "format": "double" + "page": { + "$ref": "#/components/schemas/APIPage" }, - "maxSSOUsers": { - "type": "number", - "format": "double" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "CreateAPIPageData": { + "properties": { + "accessibleByGroupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "maxModerators": { - "type": "number", - "format": "double" + "rootCommentCount": { + "type": "integer", + "format": "int64" }, - "maxDomains": { - "type": "number", - "format": "double" + "commentCount": { + "type": "integer", + "format": "int64" }, - "maxWhiteLabeledTenants": { - "type": "number", - "format": "double" + "title": { + "type": "string" }, - "maxMonthlyEventLogRequests": { - "type": "number", - "format": "double" + "url": { + "type": "string" }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" + "urlId": { + "type": "string" + } + }, + "required": [ + "title", + "url", + "urlId" + ], + "type": "object" + }, + "PatchPageAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "hasWhiteLabeling": { - "type": "boolean" + "code": { + "type": "string" }, - "hasDebranding": { - "type": "boolean" + "commentsUpdated": { + "type": "integer", + "format": "int64" }, - "hasLLMSpamDetection": { - "type": "boolean" + "page": { + "$ref": "#/components/schemas/APIPage" }, - "forWhoText": { + "status": { "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "UpdateAPIPageData": { + "properties": { + "isClosed": { + "type": "boolean" }, - "featureTaglines": { + "accessibleByGroupIds": { "items": { "type": "string" }, "type": "array" }, - "hasAuditing": { - "type": "boolean" + "title": { + "type": "string" }, - "hasFlexPricing": { - "type": "boolean" + "url": { + "type": "string" }, - "enableSAML": { - "type": "boolean" + "urlId": { + "type": "string" + } + }, + "type": "object" + }, + "DeletePageAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" + "code": { + "type": "string" }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "PublicVote": { + "properties": { + "id": { + "type": "string" }, - "flexCommentCostCents": { - "type": "number", - "format": "double" + "urlId": { + "type": "string" }, - "flexCommentUnit": { - "type": "number", - "format": "double" + "commentId": { + "type": "string" }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" + "userId": { + "type": "string" }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" + "direction": { + "type": "string" }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" + "createdAt": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "id", + "urlId", + "commentId", + "userId", + "direction", + "createdAt" + ], + "type": "object", + "additionalProperties": false + }, + "GetVotesResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" + "appliedAuthorizedVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" }, - "flexSmallWidgetsCreditCostCents": { - "type": "number", - "format": "double" + "appliedAnonymousVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" }, - "flexSmallWidgetsCreditUnit": { - "type": "number", - "format": "double" + "pendingVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + } + }, + "required": [ + "status", + "appliedAuthorizedVotes", + "appliedAnonymousVotes", + "pendingVotes" + ], + "type": "object", + "additionalProperties": false + }, + "GetVotesForUserResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" + "appliedAuthorizedVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" }, - "flexModeratorUnit": { - "type": "number", - "format": "double" + "appliedAnonymousVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" }, - "flexAdminCostCents": { - "type": "number", - "format": "double" + "pendingVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + } + }, + "required": [ + "status", + "appliedAuthorizedVotes", + "appliedAnonymousVotes", + "pendingVotes" + ], + "type": "object", + "additionalProperties": false + }, + "DigestEmailFrequency": { + "enum": [ + -1, + 0, + 1, + 2 + ], + "type": "integer" + }, + "ImportedAgentApprovalNotificationFrequency": { + "enum": [ + -1, + 0, + 1, + 2 + ], + "type": "integer" + }, + "AgentApprovalNotificationFrequency": { + "$ref": "#/components/schemas/ImportedAgentApprovalNotificationFrequency" + }, + "User": { + "properties": { + "_id": { + "type": "string" }, - "flexAdminUnit": { - "type": "number", - "format": "double" + "tenantId": { + "type": "string", + "nullable": true }, - "flexDomainCostCents": { - "type": "number", - "format": "double" + "username": { + "type": "string" }, - "flexDomainUnit": { - "type": "number", - "format": "double" + "displayName": { + "type": "string" }, - "flexLLMCostCents": { - "type": "number", - "format": "double" + "websiteUrl": { + "type": "string", + "nullable": true }, - "flexLLMUnit": { - "type": "number", - "format": "double" + "email": { + "type": "string", + "nullable": true }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" + "pendingEmail": { + "type": "string" }, - "flexManagedTenantCostCents": { - "type": "number", - "format": "double" + "backupEmail": { + "type": "string" }, - "flexSSOAdminCostCents": { - "type": "number", - "format": "double" + "pendingBackupEmail": { + "type": "string" }, - "flexSSOAdminUnit": { - "type": "number", - "format": "double" + "signUpDate": { + "type": "integer", + "format": "int64" }, - "flexSSOModeratorCostCents": { - "type": "number", - "format": "double" + "createdFromUrlId": { + "type": "string", + "nullable": true }, - "flexSSOModeratorUnit": { - "type": "number", - "format": "double" - } - }, - "required": [ - "name", - "maxMonthlyPageLoads", - "maxMonthlyAPICredits", - "maxMonthlyComments", - "maxConcurrentUsers", - "maxTenantUsers", - "maxSSOUsers", - "maxModerators", - "maxDomains", - "hasDebranding", - "forWhoText", - "featureTaglines", - "hasFlexPricing" - ], - "type": "object", - "additionalProperties": false - }, - "ReplaceTenantPackageBody": { - "properties": { - "name": { + "createdFromTenantId": { + "type": "string", + "nullable": true + }, + "createdFromIpHashed": { "type": "string" }, - "monthlyCostUSD": { - "type": "number", - "format": "double" + "verified": { + "type": "boolean" }, - "yearlyCostUSD": { - "type": "number", - "format": "double" + "loginId": { + "type": "string" }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" + "loginIdDate": { + "type": "integer", + "format": "int64" }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" + "loginCount": { + "type": "integer", + "format": "int32" }, - "maxMonthlyComments": { - "type": "number", - "format": "double" + "optedInNotifications": { + "type": "boolean" }, - "maxConcurrentUsers": { - "type": "number", - "format": "double" + "optedInTenantNotifications": { + "type": "boolean" }, - "maxTenantUsers": { - "type": "number", - "format": "double" + "hideAccountCode": { + "type": "boolean" }, - "maxSSOUsers": { - "type": "number", - "format": "double" + "avatarSrc": { + "type": "string", + "nullable": true }, - "maxModerators": { - "type": "number", - "format": "double" + "isFastCommentsHelpRequestAdmin": { + "type": "boolean" }, - "maxDomains": { - "type": "number", - "format": "double" + "isHelpRequestAdmin": { + "type": "boolean" }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" + "isAccountOwner": { + "type": "boolean" }, - "hasDebranding": { + "isAdminAdmin": { "type": "boolean" }, - "forWhoText": { - "type": "string" + "isBillingAdmin": { + "type": "boolean" }, - "featureTaglines": { + "isAnalyticsAdmin": { + "type": "boolean" + }, + "isCustomizationAdmin": { + "type": "boolean" + }, + "isManageDataAdmin": { + "type": "boolean" + }, + "isCommentModeratorAdmin": { + "type": "boolean" + }, + "isAPIAdmin": { + "type": "boolean" + }, + "isSiteAdmin": { + "type": "boolean" + }, + "moderatorIds": { "items": { "type": "string" }, "type": "array" }, - "hasFlexPricing": { + "isImpersonator": { "type": "boolean" }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" + "isCouponManager": { + "type": "boolean" }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" + "locale": { + "type": "string" }, - "flexCommentCostCents": { - "type": "number", - "format": "double" + "digestEmailFrequency": { + "$ref": "#/components/schemas/DigestEmailFrequency" }, - "flexCommentUnit": { + "notificationFrequency": { "type": "number", "format": "double" }, - "flexSSOUserCostCents": { + "adminNotificationFrequency": { "type": "number", "format": "double" }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" + "agentApprovalNotificationFrequency": { + "$ref": "#/components/schemas/AgentApprovalNotificationFrequency" }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" + "lastTenantNotificationSentDate": { + "type": "string", + "format": "date-time" }, - "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" + "lastReplyNotificationSentDate": { + "type": "string", + "format": "date-time" }, - "flexDomainCostCents": { - "type": "number", - "format": "double" + "ignoredAddToMySiteMessages": { + "type": "boolean" }, - "flexDomainUnit": { - "type": "number", - "format": "double" + "lastLoginDate": { + "type": "string", + "format": "date-time" }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" - } - }, - "required": [ - "name", - "monthlyCostUSD", - "yearlyCostUSD", - "maxMonthlyPageLoads", - "maxMonthlyAPICredits", - "maxMonthlyComments", - "maxConcurrentUsers", - "maxTenantUsers", - "maxSSOUsers", - "maxModerators", - "maxDomains", - "hasDebranding", - "forWhoText", - "featureTaglines", - "hasFlexPricing" - ], - "type": "object", - "additionalProperties": false - }, - "UpdateTenantPackageBody": { - "properties": { - "name": { + "displayLabel": { "type": "string" }, - "monthlyCostUSD": { - "type": "number", - "format": "double" - }, - "yearlyCostUSD": { - "type": "number", - "format": "double" - }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" + "isProfileActivityPrivate": { + "type": "boolean" }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" + "isProfileCommentsPrivate": { + "type": "boolean" }, - "maxMonthlyComments": { - "type": "number", - "format": "double" + "isProfileDMDisabled": { + "type": "boolean" }, - "maxConcurrentUsers": { + "profileCommentApprovalMode": { "type": "number", "format": "double" }, - "maxTenantUsers": { + "karma": { "type": "number", "format": "double" }, - "maxSSOUsers": { - "type": "number", - "format": "double" + "passwordHash": { + "type": "string" }, - "maxModerators": { + "averageTicketAckTimeMS": { "type": "number", - "format": "double" + "format": "double", + "nullable": true }, - "maxDomains": { - "type": "number", - "format": "double" + "hasBlockedUsers": { + "type": "boolean" }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" + "bio": { + "type": "string" }, - "hasDebranding": { - "type": "boolean" + "headerBackgroundSrc": { + "type": "string" }, - "hasWhiteLabeling": { - "type": "boolean" + "countryCode": { + "type": "string" }, - "forWhoText": { + "countryFlag": { "type": "string" }, - "featureTaglines": { + "socialLinks": { "items": { "type": "string" }, "type": "array" }, - "hasFlexPricing": { + "hasTwoFactor": { "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" + "isEmailSuppressed": { + "type": "boolean" + } + }, + "required": [ + "_id", + "username", + "email", + "signUpDate", + "createdFromTenantId", + "createdFromIpHashed", + "verified", + "loginId", + "loginIdDate" + ], + "type": "object", + "additionalProperties": false + }, + "GetUserResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "flexDomainUnit": { - "type": "number", - "format": "double" + "user": { + "$ref": "#/components/schemas/User" + } + }, + "required": [ + "status", + "user" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetUserBadgeResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" + "userBadge": { + "$ref": "#/components/schemas/UserBadge" } }, + "required": [ + "status", + "userBadge" + ], "type": "object", "additionalProperties": false }, - "APITenantDailyUsage": { + "APIGetUserBadgesResponse": { "properties": { - "id": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "tenantId": { - "type": "string" + "userBadges": { + "items": { + "$ref": "#/components/schemas/UserBadge" + }, + "type": "array" + } + }, + "required": [ + "status", + "userBadges" + ], + "type": "object", + "additionalProperties": false + }, + "APICreateUserBadgeResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "yearNumber": { - "type": "number", - "format": "double" + "userBadge": { + "$ref": "#/components/schemas/UserBadge" }, - "monthNumber": { - "type": "number", - "format": "double" - }, - "dayNumber": { - "type": "number", - "format": "double" - }, - "commentFetchCount": { - "type": "number", - "format": "double" + "notes": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "status", + "userBadge" + ], + "type": "object", + "additionalProperties": false + }, + "CreateUserBadgeParams": { + "properties": { + "userId": { + "type": "string" }, - "commentCreateCount": { - "type": "number", - "format": "double" + "badgeId": { + "type": "string" }, - "conversationCreateCount": { - "type": "number", - "format": "double" + "displayedOnComments": { + "type": "boolean" + } + }, + "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" + } + }, + "type": "object", + "additionalProperties": false + }, + "UserBadgeProgress": { + "properties": { + "_id": { + "type": "string" }, - "voteCount": { - "type": "number", - "format": "double" + "tenantId": { + "type": "string" }, - "accountCreatedCount": { - "type": "number", - "format": "double" + "userId": { + "type": "string" }, - "userMentionSearch": { - "type": "number", - "format": "double" + "firstCommentId": { + "type": "string" }, - "hashTagSearch": { - "type": "number", - "format": "double" + "firstCommentDate": { + "type": "string", + "format": "date-time" }, - "gifSearchTrending": { + "autoTrustFactor": { "type": "number", "format": "double" }, - "gifSearch": { + "manualTrustFactor": { "type": "number", "format": "double" }, - "apiCreditsUsed": { - "type": "number", - "format": "double" + "progress": { + "$ref": "#/components/schemas/Record_string.number_" }, - "createdAt": { + "tosAcceptedAt": { "type": "string", "format": "date-time" - }, - "billed": { - "type": "boolean" - }, - "ignored": { - "type": "boolean" - }, - "apiErrorCount": { - "type": "number", - "format": "double" } }, "required": [ - "id", + "_id", "tenantId", - "yearNumber", - "monthNumber", - "dayNumber", - "commentFetchCount", - "commentCreateCount", - "conversationCreateCount", - "voteCount", - "accountCreatedCount", - "userMentionSearch", - "hashTagSearch", - "gifSearchTrending", - "gifSearch", - "apiCreditsUsed", - "createdAt", - "billed", - "ignored", - "apiErrorCount" + "userId", + "firstCommentId", + "firstCommentDate", + "progress" ], "type": "object", "additionalProperties": false }, - "GetTenantDailyUsagesResponse": { + "APIGetUserBadgeProgressResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantDailyUsages": { - "items": { - "$ref": "#/components/schemas/APITenantDailyUsage" - }, - "type": "array" + "userBadgeProgress": { + "$ref": "#/components/schemas/UserBadgeProgress" } }, "required": [ "status", - "tenantDailyUsages" + "userBadgeProgress" ], "type": "object", "additionalProperties": false }, - "MetaItem": { + "APIGetUserBadgeProgressListResponse": { "properties": { - "name": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "values": { + "userBadgeProgresses": { "items": { - "type": "string" + "$ref": "#/components/schemas/UserBadgeProgress" }, "type": "array" } }, "required": [ - "name", - "values" + "status", + "userBadgeProgresses" ], "type": "object", "additionalProperties": false }, - "QuestionResult": { + "APITicket": { "properties": { "_id": { "type": "string" }, - "tenantId": { + "urlId": { "type": "string" }, - "urlId": { + "userId": { "type": "string" }, - "anonUserId": { + "managedByTenantId": { "type": "string" }, - "userId": { + "assignedUserIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "subject": { "type": "string" }, "createdAt": { - "type": "string", - "format": "date-time" + "type": "string" }, - "value": { + "state": { "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" + "fileCount": { + "type": "integer", + "format": "int32" } }, "required": [ "_id", - "tenantId", "urlId", - "anonUserId", "userId", + "managedByTenantId", + "assignedUserIds", + "subject", "createdAt", - "value", - "questionId", - "ipHash" + "state", + "fileCount" ], "type": "object", "additionalProperties": false }, - "GetQuestionResultResponse": { + "GetTicketsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "questionResult": { - "$ref": "#/components/schemas/QuestionResult" + "tickets": { + "items": { + "$ref": "#/components/schemas/APITicket" + }, + "type": "array" } }, "required": [ "status", - "questionResult" + "tickets" ], "type": "object", "additionalProperties": false }, - "GetQuestionResultsResponse": { + "CreateTicketResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "questionResults": { - "items": { - "$ref": "#/components/schemas/QuestionResult" - }, - "type": "array" + "ticket": { + "$ref": "#/components/schemas/APITicket" } }, "required": [ "status", - "questionResults" + "ticket" ], "type": "object", "additionalProperties": false }, - "CreateQuestionResultResponse": { + "CreateTicketBody": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "questionResult": { - "$ref": "#/components/schemas/QuestionResult" + "subject": { + "type": "string" } }, "required": [ - "status", - "questionResult" + "subject" ], "type": "object", "additionalProperties": false }, - "CreateQuestionResultBody": { + "APITicketFile": { "properties": { - "urlId": { + "id": { "type": "string" }, - "value": { - "type": "number", - "format": "double" - }, - "questionId": { + "s3Key": { "type": "string" }, - "anonUserId": { + "originalFileName": { "type": "string" }, - "userId": { + "sizeBytes": { + "type": "integer", + "format": "int32" + }, + "contentType": { "type": "string" }, - "commentId": { + "uploadedByUserId": { "type": "string" }, - "meta": { - "items": { - "$ref": "#/components/schemas/MetaItem" - }, - "type": "array", - "nullable": true + "uploadedAt": { + "type": "string" + }, + "url": { + "type": "string" + }, + "expiresAt": { + "type": "string" + }, + "expired": { + "type": "boolean" } }, "required": [ - "urlId", - "value", - "questionId" + "id", + "s3Key", + "originalFileName", + "sizeBytes", + "contentType", + "uploadedByUserId", + "uploadedAt", + "url", + "expiresAt" ], "type": "object", - "additionalProperties": {} + "additionalProperties": false }, - "UpdateQuestionResultBody": { + "APITicketDetail": { "properties": { - "urlId": { + "_id": { "type": "string" }, - "anonUserId": { + "urlId": { "type": "string" }, "userId": { "type": "string" }, - "value": { - "type": "number", - "format": "double" + "managedByTenantId": { + "type": "string" }, - "commentId": { + "assignedUserIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "subject": { "type": "string" }, - "questionId": { + "createdAt": { "type": "string" }, - "meta": { + "state": { + "type": "integer", + "format": "int32" + }, + "fileCount": { + "type": "integer", + "format": "int32" + }, + "files": { "items": { - "$ref": "#/components/schemas/MetaItem" + "$ref": "#/components/schemas/APITicketFile" }, - "type": "array", + "type": "array" + }, + "reopenedAt": { + "type": "string", "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" + "resolvedAt": { + "type": "string", + "nullable": true + }, + "ackAt": { + "type": "string", + "nullable": true } }, "required": [ - "v", - "total" + "_id", + "urlId", + "userId", + "managedByTenantId", + "assignedUserIds", + "subject", + "createdAt", + "state", + "fileCount", + "files" ], "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": { + "GetTicketResponse": { "properties": { - "dataByDateBucket": { - "$ref": "#/components/schemas/Record_string.QuestionDatum_" - }, - "dataByUrlId": { - "$ref": "#/components/schemas/Record_string.QuestionDatum_" - }, - "countsByValue": { - "$ref": "#/components/schemas/Int32Map" - }, - "total": { - "type": "integer", - "format": "int64" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "average": { - "type": "number", - "format": "double" + "ticket": { + "$ref": "#/components/schemas/APITicketDetail" }, - "createdAt": { - "type": "string", - "format": "date-time" + "availableStates": { + "items": { + "type": "number", + "format": "double" + }, + "type": "array" } }, "required": [ - "total", - "createdAt" + "status", + "ticket", + "availableStates" ], "type": "object", "additionalProperties": false }, - "AggregateQuestionResultsResponse": { + "ChangeTicketStateResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "data": { - "$ref": "#/components/schemas/QuestionResultAggregationOverall" + "ticket": { + "$ref": "#/components/schemas/APITicket" } }, "required": [ "status", - "data" + "ticket" ], "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": { + "ChangeTicketStateBody": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "data": { - "$ref": "#/components/schemas/Record_string.QuestionResultAggregationOverall_" + "state": { + "type": "integer", + "format": "int32" } }, "required": [ - "status", - "data" + "state" ], "type": "object", "additionalProperties": false }, - "BulkAggregateQuestionItem": { + "ImportedSiteType": { + "enum": [ + 0, + 1 + ], + "type": "integer" + }, + "SiteType": { + "$ref": "#/components/schemas/ImportedSiteType" + }, + "APIDomainConfiguration": { "properties": { - "aggId": { + "id": { "type": "string" }, - "questionId": { + "domain": { "type": "string" }, - "questionIds": { - "items": { - "type": "string" - }, - "type": "array" + "emailFromName": { + "type": "string", + "nullable": true }, - "urlId": { - "type": "string" + "emailFromEmail": { + "type": "string", + "nullable": true }, - "timeBucket": { - "$ref": "#/components/schemas/AggregateTimeBucket" + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" }, - "startDate": { + "wpSyncToken": { + "type": "string", + "nullable": true + }, + "wpSynced": { + "type": "boolean" + }, + "wpURL": { + "type": "string", + "nullable": true + }, + "createdAt": { "type": "string", "format": "date-time" + }, + "autoAddedDate": { + "type": "string", + "format": "date-time" + }, + "siteType": { + "$ref": "#/components/schemas/SiteType" + }, + "logoSrc": { + "type": "string", + "nullable": true + }, + "logoSrc100px": { + "type": "string", + "nullable": true + }, + "footerUnsubscribeURL": { + "type": "string" + }, + "disableUnsubscribeLinks": { + "type": "boolean" } }, "required": [ - "aggId" - ], - "type": "object", - "additionalProperties": false - }, - "BulkAggregateQuestionResultsRequest": { - "properties": { - "aggregations": { - "items": { - "$ref": "#/components/schemas/BulkAggregateQuestionItem" - }, - "type": "array" - } - }, - "required": [ - "aggregations" + "id", + "domain", + "createdAt" ], "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": { + "BillingInfo": { "properties": { - "clearContent": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" - }, - "phrase": { + "name": { "type": "string" }, - "badWord": { + "address": { "type": "string" }, - "word": { + "city": { "type": "string" }, - "locale": { + "state": { "type": "string" }, - "tenantBadgeId": { + "zip": { "type": "string" }, - "badgeId": { + "country": { "type": "string" }, - "wasLoggedIn": { - "type": "boolean" - }, - "foundUser": { - "type": "boolean" - }, - "verified": { - "type": "boolean" + "currency": { + "type": "string", + "nullable": true, + "description": "Currency for invoices." }, - "engine": { + "email": { + "type": "string", + "description": "Email for invoices." + } + }, + "required": [ + "name", + "address", + "city", + "state", + "zip", + "country" + ], + "type": "object", + "additionalProperties": false + }, + "APITenant": { + "properties": { + "id": { "type": "string" }, - "engineResponse": { + "name": { "type": "string" }, - "engineTokens": { - "type": "number", - "format": "double" + "email": { + "type": "string" }, - "trustFactor": { + "signUpDate": { "type": "number", "format": "double" }, - "rule": { - "$ref": "#/components/schemas/SpamRule" - }, - "userId": { + "packageId": { "type": "string" }, - "subscribers": { + "paymentFrequency": { "type": "number", "format": "double" }, - "notificationCount": { - "type": "number", - "format": "double" + "billingInfoValid": { + "type": "boolean" }, - "votesBefore": { - "type": "number", - "format": "double", - "nullable": true + "billingHandledExternally": { + "type": "boolean" }, - "votesUpBefore": { - "type": "number", - "format": "double", - "nullable": true + "createdBy": { + "type": "string" }, - "votesDownBefore": { - "type": "number", - "format": "double", - "nullable": true + "isSetup": { + "type": "boolean" }, - "votesAfter": { - "type": "number", - "format": "double", - "nullable": true + "domainConfiguration": { + "items": { + "$ref": "#/components/schemas/APIDomainConfiguration" + }, + "type": "array" }, - "votesUpAfter": { - "type": "number", - "format": "double", - "nullable": true + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" }, - "votesDownAfter": { - "type": "number", - "format": "double", - "nullable": true + "stripeCustomerId": { + "type": "string" }, - "repeatAction": { - "$ref": "#/components/schemas/RepeatCommentHandlingAction" + "stripeSubscriptionId": { + "type": "string" }, - "reason": { - "$ref": "#/components/schemas/RepeatCommentCheckIgnoredReason" + "stripePlanId": { + "type": "string" }, - "otherData": {}, - "spamBefore": { + "enableProfanityFilter": { "type": "boolean" }, - "spamAfter": { + "enableSpamFilter": { "type": "boolean" }, - "permanentFlag": { + "lastBillingIssueReminderDate": { "type": "string", - "enum": [ - "permanent" - ], - "nullable": false + "format": "date-time" }, - "approvedBefore": { + "removeUnverifiedComments": { "type": "boolean" }, - "approvedAfter": { - "type": "boolean" + "unverifiedCommentsTTLms": { + "type": "number", + "format": "double", + "nullable": true }, - "reviewedBefore": { + "commentsRequireApproval": { "type": "boolean" }, - "reviewedAfter": { + "autoApproveCommentOnVerification": { "type": "boolean" }, - "textBefore": { - "type": "string" + "sendProfaneToSpam": { + "type": "boolean" }, - "textAfter": { - "type": "string" - }, - "expireBefore": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "expireAfter": { - "type": "string", - "format": "date-time", - "nullable": true + "hasFlexPricing": { + "type": "boolean" }, - "flagCountBefore": { - "type": "number", - "format": "double", - "nullable": true + "hasAuditing": { + "type": "boolean" }, - "trustFactorBefore": { + "flexLastBilledAmount": { "type": "number", "format": "double" }, - "trustFactorAfter": { + "deAnonIpAddr": { "type": "number", "format": "double" }, - "referencedCommentId": { - "type": "string" - }, - "invalidLocale": { - "type": "string" - }, - "detectedLocale": { - "type": "string" + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "id", + "name", + "signUpDate", + "packageId", + "paymentFrequency", + "billingInfoValid", + "createdBy", + "isSetup", + "domainConfiguration", + "enableProfanityFilter", + "enableSpamFilter" + ], + "type": "object", + "additionalProperties": false + }, + "GetTenantResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "detectedLanguage": { - "type": "string" + "tenant": { + "$ref": "#/components/schemas/APITenant" } }, + "required": [ + "status", + "tenant" + ], "type": "object", "additionalProperties": false }, - "CommentLogEntry": { + "GetTenantsResponse": { "properties": { - "d": { - "type": "string", - "format": "date-time" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "t": { - "$ref": "#/components/schemas/CommentLogType" + "tenants": { + "items": { + "$ref": "#/components/schemas/APITenant" + }, + "type": "array" + } + }, + "required": [ + "status", + "tenants" + ], + "type": "object", + "additionalProperties": false + }, + "CreateTenantResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "da": { - "$ref": "#/components/schemas/CommentLogData" + "tenant": { + "$ref": "#/components/schemas/APITenant" } }, "required": [ - "d", - "t" + "status", + "tenant" ], "type": "object", "additionalProperties": false }, - "FComment": { + "CreateTenantBody": { "properties": { - "_id": { + "name": { "type": "string" }, - "tenantId": { - "type": "string" + "domainConfiguration": { + "items": { + "$ref": "#/components/schemas/APIDomainConfiguration" + }, + "type": "array" }, - "urlId": { + "email": { "type": "string" }, - "urlIdRaw": { - "type": "string" + "signUpDate": { + "type": "number", + "format": "double" }, - "url": { + "packageId": { "type": "string" }, - "pageTitle": { - "type": "string", - "nullable": true - }, - "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], - "nullable": true + "paymentFrequency": { + "type": "number", + "format": "double" }, - "anonUserId": { - "type": "string", - "nullable": true + "billingInfoValid": { + "type": "boolean" }, - "commenterEmail": { - "type": "string", - "nullable": true + "billingHandledExternally": { + "type": "boolean" }, - "commenterName": { + "createdBy": { "type": "string" }, - "commenterLink": { - "type": "string", - "nullable": true + "isSetup": { + "type": "boolean" }, - "comment": { - "type": "string" + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" }, - "commentHTML": { + "stripeCustomerId": { "type": "string" }, - "parentId": { - "type": "string", - "nullable": true + "stripeSubscriptionId": { + "type": "string" }, - "date": { - "type": "string", - "format": "date-time", - "nullable": true + "stripePlanId": { + "type": "string" }, - "localDateString": { - "type": "string", - "nullable": true + "enableProfanityFilter": { + "type": "boolean" }, - "localDateHours": { - "type": "integer", - "format": "int32", - "nullable": true + "enableSpamFilter": { + "type": "boolean" }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true + "removeUnverifiedComments": { + "type": "boolean" }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true + "unverifiedCommentsTTLms": { + "type": "number", + "format": "double" }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true + "commentsRequireApproval": { + "type": "boolean" }, - "expireAt": { - "type": "string", - "format": "date-time", - "nullable": true + "autoApproveCommentOnVerification": { + "type": "boolean" }, - "verified": { + "sendProfaneToSpam": { "type": "boolean" }, - "verifiedDate": { - "type": "string", - "format": "date-time", - "nullable": true + "deAnonIpAddr": { + "type": "number", + "format": "double" }, - "verificationId": { - "type": "string", - "nullable": true + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "name", + "domainConfiguration" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateTenantBody": { + "properties": { + "name": { + "type": "string" }, - "notificationSentForParent": { - "type": "boolean" + "email": { + "type": "string" }, - "notificationSentForParentTenant": { - "type": "boolean" + "signUpDate": { + "type": "number", + "format": "double" }, - "reviewed": { + "packageId": { + "type": "string" + }, + "paymentFrequency": { + "type": "number", + "format": "double" + }, + "billingInfoValid": { "type": "boolean" }, - "imported": { + "billingHandledExternally": { "type": "boolean" }, - "externalId": { + "createdBy": { "type": "string" }, - "externalParentId": { - "type": "string", - "nullable": true - }, - "avatarSrc": { - "type": "string", - "nullable": true - }, - "isSpam": { - "type": "boolean" - }, - "permNotSpam": { - "type": "boolean" - }, - "aiDeterminedSpam": { + "isSetup": { "type": "boolean" }, - "hasImages": { - "type": "boolean" + "domainConfiguration": { + "items": { + "$ref": "#/components/schemas/APIDomainConfiguration" + }, + "type": "array" }, - "pageNumber": { - "type": "integer", - "format": "int32", - "nullable": true + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" }, - "pageNumberOF": { - "type": "integer", - "format": "int32", - "nullable": true + "stripeCustomerId": { + "type": "string" }, - "pageNumberNF": { - "type": "integer", - "format": "int32", - "nullable": true + "stripeSubscriptionId": { + "type": "string" }, - "hasLinks": { - "type": "boolean" + "stripePlanId": { + "type": "string" }, - "hasCode": { + "enableProfanityFilter": { "type": "boolean" }, - "approved": { + "enableSpamFilter": { "type": "boolean" }, - "locale": { - "type": "string", - "nullable": true - }, - "isDeleted": { + "removeUnverifiedComments": { "type": "boolean" }, - "isDeletedUser": { - "type": "boolean" + "unverifiedCommentsTTLms": { + "type": "number", + "format": "double" }, - "isBannedUser": { + "commentsRequireApproval": { "type": "boolean" }, - "isByAdmin": { + "autoApproveCommentOnVerification": { "type": "boolean" }, - "isByModerator": { + "sendProfaneToSpam": { "type": "boolean" }, - "isPinned": { - "type": "boolean", - "nullable": true - }, - "isLocked": { - "type": "boolean", - "nullable": true - }, - "flagCount": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "rating": { + "deAnonIpAddr": { "type": "number", - "format": "double", - "nullable": true - }, - "displayLabel": { - "type": "string", - "nullable": true - }, - "fromProductId": { - "type": "integer", - "format": "int32" + "format": "double" }, "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" + "$ref": "#/components/schemas/Record_string.string_" }, - "editKey": { + "managedByTenantId": { "type": "string" - }, - "tosAcceptedAt": { - "type": "string", - "format": "date-time" } }, - "required": [ - "_id", - "tenantId", - "urlId", - "url", - "commenterName", - "comment", - "commentHTML", - "date", - "verified", - "approved", - "locale" - ], "type": "object", "additionalProperties": false }, - "FindCommentsByRangeItem": { + "GetTenantUserResponse": { "properties": { - "comment": { - "allOf": [ - { - "$ref": "#/components/schemas/FComment" - } - ], - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "result": { - "$ref": "#/components/schemas/QuestionResult" + "tenantUser": { + "$ref": "#/components/schemas/User" } }, "required": [ - "comment", - "result" + "status", + "tenantUser" ], "type": "object", "additionalProperties": false }, - "FindCommentsByRangeResponse": { + "GetTenantUsersResponse": { "properties": { - "results": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "tenantUsers": { "items": { - "$ref": "#/components/schemas/FindCommentsByRangeItem" + "$ref": "#/components/schemas/User" }, "type": "array" - }, - "createdAt": { - "type": "string", - "format": "date-time" } }, "required": [ - "results", - "createdAt" + "status", + "tenantUsers" ], "type": "object", "additionalProperties": false }, - "CombineQuestionResultsWithCommentsResponse": { + "CreateTenantUserResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "data": { - "$ref": "#/components/schemas/FindCommentsByRangeResponse" + "tenantUser": { + "$ref": "#/components/schemas/User" } }, "required": [ "status", - "data" + "tenantUser" ], "type": "object", "additionalProperties": false }, - "QuestionConfig": { + "CreateTenantUserBody": { "properties": { - "_id": { + "username": { "type": "string" }, - "tenantId": { + "email": { "type": "string" }, - "name": { + "displayName": { "type": "string" }, - "question": { + "websiteUrl": { "type": "string" }, - "summaryLabel": { - "type": "string" + "signUpDate": { + "type": "number", + "format": "double" }, - "helpText": { + "locale": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "string" + "verified": { + "type": "boolean" }, - "usedCount": { + "loginCount": { "type": "number", "format": "double" }, - "lastUsed": { - "type": "string", - "format": "date-time" + "optedInNotifications": { + "type": "boolean" }, - "type": { - "type": "string" + "optedInTenantNotifications": { + "type": "boolean" }, - "numStars": { - "type": "number", - "format": "double" + "hideAccountCode": { + "type": "boolean" }, - "min": { - "type": "number", - "format": "double" + "avatarSrc": { + "type": "string" }, - "max": { - "type": "number", - "format": "double" + "isHelpRequestAdmin": { + "type": "boolean" }, - "defaultValue": { - "type": "number", - "format": "double" + "isAccountOwner": { + "type": "boolean" }, - "labelNegative": { - "type": "string" + "isAdminAdmin": { + "type": "boolean" }, - "labelPositive": { - "type": "string" + "isBillingAdmin": { + "type": "boolean" }, - "customOptions": { - "items": { - "properties": { - "imageSrc": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "imageSrc", - "name" - ], - "type": "object" - }, - "type": "array" + "isAnalyticsAdmin": { + "type": "boolean" }, - "subQuestionIds": { - "items": { - "type": "string" - }, - "type": "array" + "isCustomizationAdmin": { + "type": "boolean" }, - "alwaysShowSubQuestions": { + "isManageDataAdmin": { "type": "boolean" }, - "reportingOrder": { - "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" + "isCommentModeratorAdmin": { + "type": "boolean" }, - "questionConfig": { - "$ref": "#/components/schemas/QuestionConfig" - } - }, - "required": [ - "status", - "questionConfig" - ], - "type": "object", - "additionalProperties": false - }, - "GetQuestionConfigsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "isAPIAdmin": { + "type": "boolean" }, - "questionConfigs": { + "moderatorIds": { "items": { - "$ref": "#/components/schemas/QuestionConfig" + "type": "string" }, "type": "array" - } - }, - "required": [ - "status", - "questionConfigs" - ], - "type": "object", - "additionalProperties": false - }, - "CreateQuestionConfigResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "questionConfig": { - "$ref": "#/components/schemas/QuestionConfig" + "digestEmailFrequency": { + "type": "number", + "format": "double" + }, + "displayLabel": { + "type": "string" } }, "required": [ - "status", - "questionConfig" + "username", + "email" ], "type": "object", "additionalProperties": false }, - "CreateQuestionConfigBody": { + "ReplaceTenantUserBody": { "properties": { - "name": { + "username": { "type": "string" }, - "question": { + "email": { "type": "string" }, - "helpText": { + "displayName": { "type": "string" }, - "type": { + "websiteUrl": { "type": "string" }, - "numStars": { + "signUpDate": { "type": "number", "format": "double" }, - "min": { - "type": "number", - "format": "double" + "locale": { + "type": "string" }, - "max": { - "type": "number", - "format": "double" + "verified": { + "type": "boolean" }, - "defaultValue": { + "loginCount": { "type": "number", "format": "double" }, - "labelNegative": { - "type": "string" + "optedInNotifications": { + "type": "boolean" }, - "labelPositive": { + "optedInTenantNotifications": { + "type": "boolean" + }, + "hideAccountCode": { + "type": "boolean" + }, + "avatarSrc": { "type": "string" }, - "customOptions": { - "items": { - "properties": { - "imageSrc": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "imageSrc", - "name" - ], - "type": "object" - }, - "type": "array" + "isHelpRequestAdmin": { + "type": "boolean" }, - "subQuestionIds": { + "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" }, - "alwaysShowSubQuestions": { - "type": "boolean" - }, - "reportingOrder": { + "digestEmailFrequency": { "type": "number", "format": "double" - } - }, - "required": [ - "name", - "question", - "type", - "reportingOrder" + }, + "displayLabel": { + "type": "string" + }, + "createdFromUrlId": { + "type": "string" + }, + "createdFromTenantId": { + "type": "string" + }, + "lastLoginDate": { + "type": "number", + "format": "double" + }, + "karma": { + "type": "number", + "format": "double" + } + }, + "required": [ + "username", + "email" ], "type": "object", - "additionalProperties": {} + "additionalProperties": false }, - "UpdateQuestionConfigBody": { + "UpdateTenantUserBody": { "properties": { - "name": { + "username": { "type": "string" }, - "question": { + "displayName": { "type": "string" }, - "helpText": { + "websiteUrl": { "type": "string" }, - "type": { + "email": { "type": "string" }, - "numStars": { + "signUpDate": { "type": "number", "format": "double" }, - "min": { - "type": "number", - "format": "double" + "verified": { + "type": "boolean" }, - "max": { + "loginCount": { "type": "number", "format": "double" }, - "defaultValue": { - "type": "number", - "format": "double" + "optedInNotifications": { + "type": "boolean" }, - "labelNegative": { - "type": "string" + "optedInTenantNotifications": { + "type": "boolean" }, - "labelPositive": { + "hideAccountCode": { + "type": "boolean" + }, + "avatarSrc": { "type": "string" }, - "customOptions": { - "items": { - "properties": { - "imageSrc": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "imageSrc", - "name" - ], - "type": "object" - }, - "type": "array" + "isHelpRequestAdmin": { + "type": "boolean" }, - "subQuestionIds": { + "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" }, - "alwaysShowSubQuestions": { - "type": "boolean" + "locale": { + "type": "string" }, - "reportingOrder": { + "digestEmailFrequency": { "type": "number", "format": "double" + }, + "displayLabel": { + "type": "string" } }, "type": "object", - "additionalProperties": {} + "additionalProperties": false }, - "PendingCommentToSyncOutbound": { + "TenantPackage": { "properties": { "_id": { "type": "string" }, - "commentId": { + "name": { "type": "string" }, - "comment": { - "$ref": "#/components/schemas/FComment" - }, - "externalId": { - "type": "string", - "nullable": true + "tenantId": { + "type": "string" }, "createdAt": { "type": "string", "format": "date-time" }, - "tenantId": { + "templateId": { "type": "string" }, - "attemptCount": { + "monthlyCostUSD": { "type": "number", - "format": "double" + "format": "double", + "nullable": true }, - "nextAttemptAt": { + "yearlyCostUSD": { + "type": "number", + "format": "double", + "nullable": true + }, + "monthlyStripePlanId": { "type": "string", - "format": "date-time" + "nullable": true }, - "eventType": { + "yearlyStripePlanId": { + "type": "string", + "nullable": true + }, + "maxMonthlyPageLoads": { "type": "number", "format": "double" }, - "type": { + "maxMonthlyAPICredits": { "type": "number", "format": "double" }, - "domain": { - "type": "string" + "maxMonthlySmallWidgetsCredits": { + "type": "number", + "format": "double" }, - "lastError": { - "additionalProperties": false, - "type": "object" + "maxMonthlyComments": { + "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" + "maxConcurrentUsers": { + "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" + "maxTenantUsers": { + "type": "number", + "format": "double" }, - "count": { + "maxSSOUsers": { "type": "number", "format": "double" - } - }, - "required": [ - "status", - "count" - ], - "type": "object", - "additionalProperties": false - }, - "GetNotificationsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "notifications": { - "items": { - "$ref": "#/components/schemas/UserNotification" - }, - "type": "array" - } - }, - "required": [ - "status", - "notifications" - ], - "type": "object", - "additionalProperties": false - }, - "GetNotificationCountResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "maxModerators": { + "type": "number", + "format": "double" }, - "count": { + "maxDomains": { "type": "number", "format": "double" - } - }, - "required": [ - "status", - "count" - ], - "type": "object", - "additionalProperties": false - }, - "UpdateNotificationBody": { - "properties": { - "viewed": { + }, + "maxWhiteLabeledTenants": { + "type": "number", + "format": "double" + }, + "maxMonthlyEventLogRequests": { + "type": "number", + "format": "double" + }, + "maxCustomCollectionSize": { + "type": "number", + "format": "double" + }, + "hasWhiteLabeling": { "type": "boolean" }, - "optedOut": { + "hasDebranding": { "type": "boolean" - } - }, - "type": "object", - "additionalProperties": {} - }, - "UserNotificationCount": { - "properties": { - "_id": { + }, + "hasLLMSpamDetection": { + "type": "boolean" + }, + "forWhoText": { "type": "string" }, - "count": { + "featureTaglines": { + "items": { + "type": "string" + }, + "type": "array" + }, + "hasAuditing": { + "type": "boolean" + }, + "hasFlexPricing": { + "type": "boolean" + }, + "enableSAML": { + "type": "boolean" + }, + "enableCanvasLTI": { + "type": "boolean" + }, + "flexPageLoadCostCents": { "type": "number", "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" + "flexPageLoadUnit": { + "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" + "flexCommentCostCents": { + "type": "number", + "format": "double" }, - "data": { - "$ref": "#/components/schemas/UserNotificationCount" - } - }, - "required": [ - "status", - "data" - ], - "type": "object", - "additionalProperties": false - }, - "Moderator": { - "properties": { - "_id": { - "type": "string" + "flexCommentUnit": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "flexSSOUserCostCents": { + "type": "number", + "format": "double" }, - "name": { - "type": "string", - "nullable": true + "flexSSOUserUnit": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string", - "nullable": true + "flexAPICreditCostCents": { + "type": "number", + "format": "double" }, - "acceptedInvite": { - "type": "boolean" + "flexAPICreditUnit": { + "type": "number", + "format": "double" }, - "email": { - "type": "string", - "nullable": true + "flexSmallWidgetsCreditCostCents": { + "type": "number", + "format": "double" }, - "markReviewedCount": { + "flexSmallWidgetsCreditUnit": { "type": "number", "format": "double" }, - "deletedCount": { + "flexModeratorCostCents": { "type": "number", "format": "double" }, - "markedSpamCount": { + "flexModeratorUnit": { "type": "number", "format": "double" }, - "markedNotSpamCount": { + "flexAdminCostCents": { "type": "number", "format": "double" }, - "approvedCount": { + "flexAdminUnit": { "type": "number", "format": "double" }, - "unApprovedCount": { + "flexDomainCostCents": { "type": "number", "format": "double" }, - "editedCount": { + "flexDomainUnit": { "type": "number", "format": "double" }, - "bannedCount": { + "flexChatGPTCostCents": { "type": "number", "format": "double" }, - "unFlaggedCount": { + "flexChatGPTUnit": { "type": "number", "format": "double" }, - "verificationId": { - "type": "string", - "nullable": true + "flexLLMCostCents": { + "type": "number", + "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" + "flexLLMUnit": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true + "flexMinimumCostCents": { + "type": "number", + "format": "double" }, - "isEmailSuppressed": { + "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" + }, + "isSSOBillingMonthlyActiveUsers": { + "type": "boolean" + }, + "hasAIAgents": { "type": "boolean" + }, + "maxAIAgents": { + "type": "number", + "format": "double" + }, + "aiAgentDailyBudgetCents": { + "type": "number", + "format": "double" + }, + "aiAgentMonthlyBudgetCents": { + "type": "number", + "format": "double" } }, "required": [ "_id", - "tenantId", "name", - "userId", - "acceptedInvite", - "email", - "markReviewedCount", - "deletedCount", - "markedSpamCount", - "markedNotSpamCount", - "approvedCount", - "unApprovedCount", - "editedCount", - "bannedCount", - "unFlaggedCount", - "verificationId", + "tenantId", "createdAt", - "moderationGroupIds" + "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 }, - "GetModeratorResponse": { + "GetTenantPackageResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "moderator": { - "$ref": "#/components/schemas/Moderator" + "tenantPackage": { + "$ref": "#/components/schemas/TenantPackage" } }, "required": [ "status", - "moderator" + "tenantPackage" ], "type": "object", "additionalProperties": false }, - "GetModeratorsResponse": { + "GetTenantPackagesResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "moderators": { + "tenantPackages": { "items": { - "$ref": "#/components/schemas/Moderator" + "$ref": "#/components/schemas/TenantPackage" }, "type": "array" } }, "required": [ "status", - "moderators" + "tenantPackages" ], "type": "object", "additionalProperties": false }, - "CreateModeratorResponse": { + "CreateTenantPackageResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "moderator": { - "$ref": "#/components/schemas/Moderator" + "tenantPackage": { + "$ref": "#/components/schemas/TenantPackage" } }, "required": [ "status", - "moderator" + "tenantPackage" ], "type": "object", "additionalProperties": false }, - "CreateModeratorBody": { + "CreateTenantPackageBody": { "properties": { "name": { "type": "string" }, - "email": { - "type": "string" + "monthlyCostUSD": { + "type": "number", + "format": "double", + "nullable": true }, - "userId": { + "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" + }, + "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": { "type": "string" }, - "moderationGroupIds": { + "featureTaglines": { "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" + }, + "flexLLMCostCents": { + "type": "number", + "format": "double" + }, + "flexLLMUnit": { + "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" } }, "required": [ "name", - "email" + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "hasDebranding", + "forWhoText", + "featureTaglines", + "hasFlexPricing" ], "type": "object", - "additionalProperties": {} + "additionalProperties": false }, - "UpdateModeratorBody": { + "ReplaceTenantPackageBody": { "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" - } - }, - "type": "object", - "additionalProperties": {} - }, - "TenantHashTag": { - "properties": { - "_id": { - "type": "string" + "maxMonthlyPageLoads": { + "type": "number", + "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" + "maxMonthlyAPICredits": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "maxMonthlyComments": { + "type": "number", + "format": "double" }, - "tag": { - "type": "string" + "maxConcurrentUsers": { + "type": "number", + "format": "double" }, - "url": { - "type": "string" - } - }, - "required": [ - "_id", - "createdAt", - "tenantId", - "tag" - ], - "type": "object", - "additionalProperties": false - }, - "GetHashTagsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "maxTenantUsers": { + "type": "number", + "format": "double" }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/TenantHashTag" - }, - "type": "array" - } - }, - "required": [ - "status", - "hashTags" - ], - "type": "object", - "additionalProperties": false - }, - "CreateHashTagResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "hashTag": { - "$ref": "#/components/schemas/TenantHashTag" - } - }, - "required": [ - "status", - "hashTag" - ], - "type": "object", - "additionalProperties": false - }, - "CreateHashTagBody": { - "properties": { - "tenantId": { - "type": "string" + "maxModerators": { + "type": "number", + "format": "double" }, - "tag": { - "type": "string" + "maxDomains": { + "type": "number", + "format": "double" }, - "url": { - "type": "string" - } - }, - "required": [ - "tag" - ], - "type": "object", - "additionalProperties": false - }, - "BulkCreateHashTagsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "maxCustomCollectionSize": { + "type": "number", + "format": "double" }, - "results": { - "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateHashTagResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] - }, - "type": "array" - } - }, - "required": [ - "status", - "results" - ], - "type": "object", - "additionalProperties": false - }, - "BulkCreateHashTagsBody": { - "properties": { - "tenantId": { + "hasDebranding": { + "type": "boolean" + }, + "forWhoText": { "type": "string" }, - "tags": { + "featureTaglines": { "items": { - "properties": { - "url": { - "type": "string" - }, - "tag": { - "type": "string" - } - }, - "required": [ - "tag" - ], - "type": "object" + "type": "string" }, "type": "array" - } - }, - "required": [ - "tags" - ], - "type": "object", - "additionalProperties": false - }, - "UpdateHashTagResponse": { - "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" + "name", + "monthlyCostUSD", + "yearlyCostUSD", + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "hasDebranding", + "forWhoText", + "featureTaglines", + "hasFlexPricing" ], "type": "object", "additionalProperties": false }, - "UpdateHashTagBody": { + "UpdateTenantPackageBody": { "properties": { - "tenantId": { + "name": { "type": "string" }, - "url": { - "type": "string" + "monthlyCostUSD": { + "type": "number", + "format": "double" }, - "tag": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "GetFeedPostsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "yearlyCostUSD": { + "type": "number", + "format": "double" }, - "feedPosts": { - "items": { - "$ref": "#/components/schemas/FeedPost" - }, - "type": "array" - } - }, - "required": [ - "status", - "feedPosts" - ], - "type": "object", - "additionalProperties": false - }, - "CreateFeedPostsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "maxMonthlyPageLoads": { + "type": "number", + "format": "double" }, - "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" + "maxMonthlyAPICredits": { + "type": "number", + "format": "double" }, - "defaultTestData": { - "$ref": "#/components/schemas/Record_string.unknown_" + "maxMonthlyComments": { + "type": "number", + "format": "double" }, - "defaultTranslationsByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "maxConcurrentUsers": { + "type": "number", + "format": "double" }, - "defaultEJS": { + "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": { + "type": "boolean" + }, + "hasWhiteLabeling": { + "type": "boolean" + }, + "forWhoText": { "type": "string" - } - }, - "required": [ - "emailTemplateId", - "defaultTestData", - "defaultTranslationsByLocale", - "defaultEJS" - ], - "type": "object", - "additionalProperties": false - }, - "GetEmailTemplateDefinitionsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "definitions": { + "featureTaglines": { "items": { - "$ref": "#/components/schemas/EmailTemplateDefinition" + "type": "string" }, "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" + }, + "flexMinimumCostCents": { + "type": "number", + "format": "double" } }, - "required": [ - "status", - "definitions" - ], "type": "object", "additionalProperties": false }, - "EmailTemplateRenderErrorResponse": { + "APITenantDailyUsage": { "properties": { "id": { "type": "string" @@ -8194,13 +8041,55 @@ "tenantId": { "type": "string" }, - "customTemplateId": { - "type": "string" + "yearNumber": { + "type": "number", + "format": "double" }, - "error": { - "type": "string" + "monthNumber": { + "type": "number", + "format": "double" }, - "count": { + "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" }, @@ -8208,628 +8097,697 @@ "type": "string", "format": "date-time" }, - "lastOccurredAt": { - "type": "string", - "format": "date-time" + "billed": { + "type": "boolean" + }, + "ignored": { + "type": "boolean" + }, + "apiErrorCount": { + "type": "number", + "format": "double" } }, "required": [ "id", "tenantId", - "customTemplateId", - "error", - "count", + "yearNumber", + "monthNumber", + "dayNumber", + "commentFetchCount", + "commentCreateCount", + "conversationCreateCount", + "voteCount", + "accountCreatedCount", + "userMentionSearch", + "hashTagSearch", + "gifSearchTrending", + "gifSearch", + "apiCreditsUsed", "createdAt", - "lastOccurredAt" + "billed", + "ignored", + "apiErrorCount" ], "type": "object", "additionalProperties": false }, - "GetEmailTemplateRenderErrorsResponse": { + "GetTenantDailyUsagesResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "renderErrors": { + "tenantDailyUsages": { "items": { - "$ref": "#/components/schemas/EmailTemplateRenderErrorResponse" + "$ref": "#/components/schemas/APITenantDailyUsage" }, "type": "array" } }, "required": [ "status", - "renderErrors" + "tenantDailyUsages" ], "type": "object", "additionalProperties": false }, - "CustomEmailTemplate": { + "MetaItem": { "properties": { - "_id": { + "name": { "type": "string" }, - "tenantId": { - "type": "string" + "values": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "name", + "values" + ], + "type": "object", + "additionalProperties": false + }, + "QuestionResult": { + "properties": { + "_id": { + "type": "string" }, - "emailTemplateId": { + "tenantId": { "type": "string" }, - "displayName": { + "urlId": { + "type": "string" + }, + "anonUserId": { + "type": "string" + }, + "userId": { "type": "string" }, "createdAt": { "type": "string", "format": "date-time" }, - "updatedAt": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "updatedByUserId": { - "type": "string", - "nullable": true + "value": { + "type": "integer", + "format": "int32" }, - "domain": { + "commentId": { "type": "string", "nullable": true }, - "ejs": { + "questionId": { "type": "string" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "meta": { + "items": { + "$ref": "#/components/schemas/MetaItem" + }, + "type": "array", + "nullable": true }, - "testData": {} + "ipHash": { + "type": "string" + } }, "required": [ "_id", "tenantId", - "emailTemplateId", - "displayName", + "urlId", + "anonUserId", + "userId", "createdAt", - "updatedAt", - "updatedByUserId", - "ejs", - "translationOverridesByLocale", - "testData" + "value", + "questionId", + "ipHash" ], "type": "object", "additionalProperties": false }, - "GetEmailTemplateResponse": { + "GetQuestionResultResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "emailTemplate": { - "$ref": "#/components/schemas/CustomEmailTemplate" + "questionResult": { + "$ref": "#/components/schemas/QuestionResult" } }, "required": [ "status", - "emailTemplate" + "questionResult" ], "type": "object", "additionalProperties": false }, - "GetEmailTemplatesResponse": { + "GetQuestionResultsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "emailTemplates": { + "questionResults": { "items": { - "$ref": "#/components/schemas/CustomEmailTemplate" + "$ref": "#/components/schemas/QuestionResult" }, "type": "array" } }, "required": [ "status", - "emailTemplates" + "questionResults" ], "type": "object", "additionalProperties": false }, - "CreateEmailTemplateResponse": { + "CreateQuestionResultResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "emailTemplate": { - "$ref": "#/components/schemas/CustomEmailTemplate" + "questionResult": { + "$ref": "#/components/schemas/QuestionResult" } }, "required": [ "status", - "emailTemplate" + "questionResult" ], "type": "object", "additionalProperties": false }, - "CreateEmailTemplateBody": { + "CreateQuestionResultBody": { "properties": { - "emailTemplateId": { + "urlId": { "type": "string" }, - "displayName": { + "value": { + "type": "number", + "format": "double" + }, + "questionId": { "type": "string" }, - "ejs": { + "anonUserId": { "type": "string" }, - "domain": { + "userId": { "type": "string" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "commentId": { + "type": "string" }, - "testData": { - "$ref": "#/components/schemas/Record_string.unknown_" + "meta": { + "items": { + "$ref": "#/components/schemas/MetaItem" + }, + "type": "array", + "nullable": true } }, "required": [ - "emailTemplateId", - "displayName", - "ejs" + "urlId", + "value", + "questionId" ], "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "UpdateEmailTemplateBody": { + "UpdateQuestionResultBody": { "properties": { - "emailTemplateId": { + "urlId": { "type": "string" }, - "displayName": { + "anonUserId": { "type": "string" }, - "ejs": { + "userId": { "type": "string" }, - "domain": { + "value": { + "type": "number", + "format": "double" + }, + "commentId": { "type": "string" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "questionId": { + "type": "string" }, - "testData": { - "$ref": "#/components/schemas/Record_string.unknown_" + "meta": { + "items": { + "$ref": "#/components/schemas/MetaItem" + }, + "type": "array", + "nullable": true } }, "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "RenderEmailTemplateResponse": { + "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": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "v": { + "$ref": "#/components/schemas/Record_number.number_" }, - "html": { - "type": "string" + "total": { + "type": "integer", + "format": "int64" } }, "required": [ - "status", - "html" + "v", + "total" ], "type": "object", "additionalProperties": false }, - "RenderEmailTemplateBody": { + "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": { - "emailTemplateId": { - "type": "string" + "dataByDateBucket": { + "$ref": "#/components/schemas/Record_string.QuestionDatum_" }, - "ejs": { - "type": "string" + "dataByUrlId": { + "$ref": "#/components/schemas/Record_string.QuestionDatum_" }, - "testData": { - "$ref": "#/components/schemas/Record_string.unknown_" + "countsByValue": { + "$ref": "#/components/schemas/Int32Map" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "total": { + "type": "integer", + "format": "int64" + }, + "average": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" } }, "required": [ - "emailTemplateId", - "ejs" + "total", + "createdAt" ], "type": "object", "additionalProperties": false }, - "AddDomainConfigParams": { + "AggregateQuestionResultsResponse": { "properties": { - "domain": { - "type": "string" - }, - "emailFromName": { - "type": "string" - }, - "emailFromEmail": { - "type": "string" - }, - "logoSrc": { - "type": "string" - }, - "logoSrc100px": { - "type": "string" - }, - "footerUnsubscribeURL": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "data": { + "$ref": "#/components/schemas/QuestionResultAggregationOverall" } }, "required": [ - "domain" + "status", + "data" ], "type": "object", "additionalProperties": false }, - "UpdateDomainConfigParams": { - "properties": { - "domain": { - "type": "string" - }, - "emailFromName": { - "type": "string" - }, - "emailFromEmail": { - "type": "string" - }, - "logoSrc": { + "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" + }, + "data": { + "$ref": "#/components/schemas/Record_string.QuestionResultAggregationOverall_" + } + }, + "required": [ + "status", + "data" + ], + "type": "object", + "additionalProperties": false + }, + "BulkAggregateQuestionItem": { + "properties": { + "aggId": { "type": "string" }, - "logoSrc100px": { + "questionId": { "type": "string" }, - "footerUnsubscribeURL": { + "questionIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "urlId": { "type": "string" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "timeBucket": { + "$ref": "#/components/schemas/AggregateTimeBucket" + }, + "startDate": { + "type": "string", + "format": "date-time" } }, "required": [ - "domain" + "aggId" ], "type": "object", "additionalProperties": false }, - "PatchDomainConfigParams": { + "BulkAggregateQuestionResultsRequest": { "properties": { - "domain": { - "type": "string" + "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" }, - "emailFromName": { + "isDeletedUser": { + "type": "boolean" + }, + "phrase": { "type": "string" }, - "emailFromEmail": { + "badWord": { "type": "string" }, - "logoSrc": { + "word": { "type": "string" }, - "logoSrc100px": { + "locale": { "type": "string" }, - "footerUnsubscribeURL": { + "tenantBadgeId": { "type": "string" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" - } - }, - "type": "object", - "additionalProperties": false - }, - "APICommentBase": { - "properties": { - "_id": { + "badgeId": { "type": "string" }, - "aiDeterminedSpam": { + "wasLoggedIn": { "type": "boolean" }, - "anonUserId": { - "type": "string", - "nullable": true - }, - "approved": { + "foundUser": { "type": "boolean" }, - "avatarSrc": { - "type": "string", - "nullable": true - }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array", - "nullable": true + "verified": { + "type": "boolean" }, - "comment": { + "engine": { "type": "string" }, - "commentHTML": { + "engineResponse": { "type": "string" }, - "commenterEmail": { - "type": "string", - "nullable": true + "engineTokens": { + "type": "number", + "format": "double" }, - "commenterLink": { - "type": "string", - "nullable": true + "trustFactor": { + "type": "number", + "format": "double" }, - "commenterName": { + "source": { "type": "string" }, - "date": { - "type": "string", - "format": "date-time", - "nullable": true + "rule": { + "$ref": "#/components/schemas/SpamRule" }, - "displayLabel": { - "type": "string", - "nullable": true + "userId": { + "type": "string" }, - "domain": { - "allOf": [ - { - "$ref": "#/components/schemas/FDomain" - } - ], - "nullable": true + "subscribers": { + "type": "number", + "format": "double" }, - "externalId": { - "type": "string" + "notificationCount": { + "type": "number", + "format": "double" }, - "externalParentId": { - "type": "string", + "votesBefore": { + "type": "number", + "format": "double", "nullable": true }, - "expireAt": { - "type": "string", - "format": "date-time", + "votesUpBefore": { + "type": "number", + "format": "double", "nullable": true }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "flagCount": { - "type": "integer", - "format": "int32", + "votesDownBefore": { + "type": "number", + "format": "double", "nullable": true }, - "fromProductId": { - "type": "integer", - "format": "int32" + "votesAfter": { + "type": "number", + "format": "double", + "nullable": true }, - "hasCode": { - "type": "boolean" + "votesUpAfter": { + "type": "number", + "format": "double", + "nullable": true }, - "hasImages": { - "type": "boolean" + "votesDownAfter": { + "type": "number", + "format": "double", + "nullable": true }, - "hasLinks": { - "type": "boolean" + "repeatAction": { + "$ref": "#/components/schemas/RepeatCommentHandlingAction" }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" + "reason": { + "$ref": "#/components/schemas/RepeatCommentCheckIgnoredReason" }, - "isByAdmin": { + "otherData": {}, + "spamBefore": { "type": "boolean" }, - "isByModerator": { + "spamAfter": { "type": "boolean" }, - "isDeleted": { - "type": "boolean" + "permanentFlag": { + "type": "string", + "enum": [ + "permanent" + ], + "nullable": false }, - "isDeletedUser": { + "approvedBefore": { "type": "boolean" }, - "isPinned": { - "type": "boolean", - "nullable": true - }, - "isLocked": { - "type": "boolean", - "nullable": true - }, - "isSpam": { + "approvedAfter": { "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": { + "reviewedBefore": { "type": "boolean" }, - "notificationSentForParentTenant": { + "reviewedAfter": { "type": "boolean" }, - "pageTitle": { + "textBefore": { + "type": "string" + }, + "textAfter": { + "type": "string" + }, + "expireBefore": { "type": "string", + "format": "date-time", "nullable": true }, - "parentId": { + "expireAfter": { "type": "string", + "format": "date-time", "nullable": true }, - "rating": { + "flagCountBefore": { "type": "number", "format": "double", "nullable": true }, - "reviewed": { - "type": "boolean" + "trustFactorBefore": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "trustFactorAfter": { + "type": "number", + "format": "double" }, - "url": { + "referencedCommentId": { "type": "string" }, - "urlId": { + "invalidLocale": { "type": "string" }, - "urlIdRaw": { + "detectedLocale": { "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 + "detectedLanguage": { + "type": "string" } }, - "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": { + "CommentLogEntry": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "d": { + "type": "string", + "format": "date-time" }, - "comment": { - "$ref": "#/components/schemas/APIComment" - } - }, - "required": [ - "status", - "comment" - ], - "type": "object", - "additionalProperties": false - }, - "APIGetCommentsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "t": { + "$ref": "#/components/schemas/CommentLogType" }, - "comments": { - "items": { - "$ref": "#/components/schemas/APIComment" - }, - "type": "array" + "da": { + "$ref": "#/components/schemas/CommentLogData" } }, "required": [ - "status", - "comments" + "d", + "t" ], "type": "object", "additionalProperties": false }, - "UpdatableCommentParams": { + "FComment": { "properties": { + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, "urlId": { "type": "string" }, @@ -8851,6 +8809,10 @@ ], "nullable": true }, + "anonUserId": { + "type": "string", + "nullable": true + }, "commenterEmail": { "type": "string", "nullable": true @@ -8873,8 +8835,8 @@ "nullable": true }, "date": { - "type": "number", - "format": "double", + "type": "string", + "format": "date-time", "nullable": true }, "localDateString": { @@ -8914,6 +8876,10 @@ "format": "date-time", "nullable": true }, + "verificationId": { + "type": "string", + "nullable": true + }, "notificationSentForParent": { "type": "boolean" }, @@ -8923,6 +8889,9 @@ "reviewed": { "type": "boolean" }, + "imported": { + "type": "boolean" + }, "externalId": { "type": "string" }, @@ -8937,15 +8906,52 @@ "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" + }, + "hasCode": { + "type": "boolean" + }, "approved": { "type": "boolean" }, + "locale": { + "type": "string", + "nullable": true + }, "isDeleted": { "type": "boolean" }, "isDeletedUser": { "type": "boolean" }, + "isBannedUser": { + "type": "boolean" + }, "isByAdmin": { "type": "boolean" }, @@ -8965,12 +8971,24 @@ "format": "int32", "nullable": true }, + "rating": { + "type": "number", + "format": "double", + "nullable": true + }, "displayLabel": { "type": "string", "nullable": true }, + "fromProductId": { + "type": "integer", + "format": "int32" + }, "meta": { "properties": { + "wpId": { + "type": "string" + }, "wpUserId": { "type": "string" }, @@ -8982,6 +9000,39 @@ "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" @@ -8989,449 +9040,2348 @@ "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" + }, + "editKey": { + "type": "string" + }, + "tosAcceptedAt": { + "type": "string", + "format": "date-time" + }, + "botId": { + "type": "string" } }, + "required": [ + "_id", + "tenantId", + "urlId", + "url", + "commenterName", + "comment", + "commentHTML", + "date", + "verified", + "approved", + "locale" + ], "type": "object", "additionalProperties": false }, - "DeleteCommentAction": { - "type": "string", - "enum": [ - "already-deleted", - "hard-removed", - "anonymized" - ] + "FindCommentsByRangeItem": { + "properties": { + "comment": { + "allOf": [ + { + "$ref": "#/components/schemas/FComment" + } + ], + "nullable": true + }, + "result": { + "$ref": "#/components/schemas/QuestionResult" + } + }, + "required": [ + "comment", + "result" + ], + "type": "object", + "additionalProperties": false }, - "DeleteCommentResult": { + "FindCommentsByRangeResponse": { "properties": { - "action": { - "$ref": "#/components/schemas/DeleteCommentAction" + "results": { + "items": { + "$ref": "#/components/schemas/FindCommentsByRangeItem" + }, + "type": "array" }, - "status": { - "$ref": "#/components/schemas/APIStatus" + "createdAt": { + "type": "string", + "format": "date-time" } }, "required": [ - "action", - "status" + "results", + "createdAt" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "SaveCommentResponse": { + "CombineQuestionResultsWithCommentsResponse": { "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_" + "data": { + "$ref": "#/components/schemas/FindCommentsByRangeResponse" } }, "required": [ "status", - "comment", - "user" + "data" ], "type": "object", "additionalProperties": false }, - "CreateCommentParams": { + "QuestionConfig": { "properties": { - "date": { - "type": "integer", - "format": "int64" + "_id": { + "type": "string" }, - "localDateString": { + "tenantId": { "type": "string" }, - "localDateHours": { - "type": "integer", - "format": "int32" + "name": { + "type": "string" }, - "commenterName": { + "question": { "type": "string" }, - "commenterEmail": { - "type": "string", - "nullable": true + "summaryLabel": { + "type": "string" }, - "commenterLink": { + "helpText": { + "type": "string" + }, + "createdAt": { "type": "string", - "nullable": true + "format": "date-time" }, - "comment": { + "createdBy": { "type": "string" }, - "productId": { - "type": "integer", - "format": "int32" + "usedCount": { + "type": "number", + "format": "double" }, - "userId": { + "lastUsed": { "type": "string", - "nullable": true + "format": "date-time" }, - "avatarSrc": { - "type": "string", - "nullable": true - }, - "parentId": { - "type": "string", - "nullable": true + "type": { + "type": "string" }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" + "numStars": { + "type": "number", + "format": "double" }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" + "min": { + "type": "number", + "format": "double" }, - "pageTitle": { - "type": "string" + "max": { + "type": "number", + "format": "double" }, - "isFromMyAccountPage": { - "type": "boolean" + "defaultValue": { + "type": "number", + "format": "double" }, - "url": { + "labelNegative": { "type": "string" }, - "urlId": { + "labelPositive": { "type": "string" }, - "meta": { - "additionalProperties": false, - "type": "object" - }, - "moderationGroupIds": { + "customOptions": { "items": { - "type": "string" + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" }, "type": "array" }, - "rating": { - "type": "number", - "format": "double" - }, - "fromOfflineRestore": { - "type": "boolean" - }, - "autoplayDelayMS": { - "type": "integer", - "format": "int64" - }, - "feedbackIds": { + "subQuestionIds": { "items": { "type": "string" }, "type": "array" }, - "questionValues": { - "$ref": "#/components/schemas/Record_string.string-or-number_" - }, - "tos": { - "type": "boolean" - }, - "approved": { - "type": "boolean" - }, - "domain": { - "type": "string" - }, - "ip": { - "type": "string" - }, - "isPinned": { - "type": "boolean" - }, - "locale": { - "type": "string", - "description": "Example: en_us" - }, - "reviewed": { - "type": "boolean" - }, - "verified": { + "alwaysShowSubQuestions": { "type": "boolean" }, - "votes": { - "type": "integer", - "format": "int32" - }, - "votesDown": { - "type": "integer", - "format": "int32" - }, - "votesUp": { - "type": "integer", - "format": "int32" + "reportingOrder": { + "type": "number", + "format": "double" } }, "required": [ - "commenterName", - "comment", - "url", - "urlId", - "locale" + "_id", + "tenantId", + "name", + "question", + "helpText", + "createdAt", + "createdBy", + "usedCount", + "lastUsed", + "type", + "numStars", + "min", + "max", + "defaultValue", + "labelNegative", + "labelPositive", + "customOptions", + "subQuestionIds", + "alwaysShowSubQuestions", + "reportingOrder" ], "type": "object", "additionalProperties": false }, - "FlagCommentResponse": { + "GetQuestionConfigResponse": { "properties": { - "statusCode": { - "type": "integer", - "format": "int32" - }, "status": { "$ref": "#/components/schemas/APIStatus" }, - "code": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "wasUnapproved": { - "type": "boolean" + "questionConfig": { + "$ref": "#/components/schemas/QuestionConfig" } }, "required": [ - "status" + "status", + "questionConfig" ], "type": "object", "additionalProperties": false }, - "BlockFromCommentParams": { + "GetQuestionConfigsResponse": { "properties": { - "commentIdsToCheck": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "questionConfigs": { "items": { - "type": "string" + "$ref": "#/components/schemas/QuestionConfig" }, "type": "array" } }, + "required": [ + "status", + "questionConfigs" + ], "type": "object", "additionalProperties": false }, - "UnBlockFromCommentParams": { + "CreateQuestionConfigResponse": { "properties": { - "commentIdsToCheck": { - "items": { - "type": "string" - }, - "type": "array" + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "questionConfig": { + "$ref": "#/components/schemas/QuestionConfig" } }, + "required": [ + "status", + "questionConfig" + ], "type": "object", "additionalProperties": false }, - "APIAuditLog": { + "CreateQuestionConfigBody": { "properties": { - "_id": { + "name": { "type": "string" }, - "userId": { + "question": { "type": "string" }, - "username": { + "helpText": { "type": "string" }, - "resourceName": { + "type": { "type": "string" }, - "crudType": { - "type": "string", - "enum": [ - "c", - "r", - "u", - "d", - "login" - ] + "numStars": { + "type": "number", + "format": "double" }, - "from": { - "type": "string", - "enum": [ - "ui", - "api", - "cron" - ] + "min": { + "type": "number", + "format": "double" }, - "url": { - "type": "string", - "nullable": true + "max": { + "type": "number", + "format": "double" }, - "ip": { - "type": "string", - "nullable": true + "defaultValue": { + "type": "number", + "format": "double" }, - "when": { - "type": "string", - "format": "date-time" + "labelNegative": { + "type": "string" }, - "description": { + "labelPositive": { "type": "string" }, - "serverStartDate": { - "type": "string", - "format": "date-time" + "customOptions": { + "items": { + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" + }, + "type": "array" }, - "objectDetails": { - "allOf": [ - { - "$ref": "#/components/schemas/Record_string.any_" - } - ], - "nullable": true + "subQuestionIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "alwaysShowSubQuestions": { + "type": "boolean" + }, + "reportingOrder": { + "type": "number", + "format": "double" } }, "required": [ - "_id", - "resourceName", - "crudType" + "name", + "question", + "type", + "reportingOrder" ], "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "GetAuditLogsResponse": { + "UpdateQuestionConfigBody": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "name": { + "type": "string" }, - "auditLogs": { + "question": { + "type": "string" + }, + "helpText": { + "type": "string" + }, + "type": { + "type": "string" + }, + "numStars": { + "type": "number", + "format": "double" + }, + "min": { + "type": "number", + "format": "double" + }, + "max": { + "type": "number", + "format": "double" + }, + "defaultValue": { + "type": "number", + "format": "double" + }, + "labelNegative": { + "type": "string" + }, + "labelPositive": { + "type": "string" + }, + "customOptions": { "items": { - "$ref": "#/components/schemas/APIAuditLog" + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" + }, + "type": "array" + }, + "subQuestionIds": { + "items": { + "type": "string" }, "type": "array" + }, + "alwaysShowSubQuestions": { + "type": "boolean" + }, + "reportingOrder": { + "type": "number", + "format": "double" } }, - "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_" + "additionalProperties": {} }, - "AggregationValue": { + "PendingCommentToSyncOutbound": { "properties": { - "groups": { - "$ref": "#/components/schemas/GroupValues" + "_id": { + "type": "string" }, - "stringValue": { + "commentId": { "type": "string" }, - "numericValue": { + "comment": { + "$ref": "#/components/schemas/FComment" + }, + "externalId": { + "type": "string", + "nullable": true + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "tenantId": { + "type": "string" + }, + "attemptCount": { "type": "number", "format": "double" }, - "distinctCount": { - "type": "integer", - "format": "int64" + "nextAttemptAt": { + "type": "string", + "format": "date-time" }, - "distinctCounts": { - "$ref": "#/components/schemas/DistinctAccumulator" + "eventType": { + "type": "number", + "format": "double" + }, + "type": { + "type": "number", + "format": "double" + }, + "domain": { + "type": "string" + }, + "lastError": { + "additionalProperties": false, + "type": "object" + }, + "webhookId": { + "type": "string" } }, - "type": "object" + "required": [ + "_id", + "commentId", + "externalId", + "createdAt", + "tenantId", + "attemptCount", + "nextAttemptAt", + "eventType", + "type", + "domain", + "lastError" + ], + "type": "object", + "additionalProperties": false }, - "Record_string.AggregationValue_": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/AggregationValue" + "GetPendingWebhookEventsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "pendingWebhookEvents": { + "items": { + "$ref": "#/components/schemas/PendingCommentToSyncOutbound" + }, + "type": "array" + } }, + "required": [ + "status", + "pendingWebhookEvents" + ], "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_" + "GetPendingWebhookEventCountResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - { - "properties": { - "groups": { - "$ref": "#/components/schemas/GroupValues" - } - }, - "type": "object" + "count": { + "type": "number", + "format": "double" } - ] + }, + "required": [ + "status", + "count" + ], + "type": "object", + "additionalProperties": false }, - "AggregationResponse": { - "description": "The API response returns the aggregated data along with simple stats", + "GetNotificationsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "data": { + "notifications": { "items": { - "$ref": "#/components/schemas/AggregationItem" + "$ref": "#/components/schemas/UserNotification" }, "type": "array" - }, - "stats": { - "properties": { - "timeMS": { - "type": "integer", - "format": "int64" - }, - "scanned": { - "type": "integer", - "format": "int64" - } - }, - "required": [ - "timeMS", - "scanned" - ], - "type": "object" } }, "required": [ "status", - "data" + "notifications" ], "type": "object", "additionalProperties": false }, - "QueryPredicate": { + "GetNotificationCountResponse": { "properties": { - "key": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "value": { + "count": { + "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" + }, + "count": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "expireAt": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "_id", + "count", + "createdAt", + "expireAt" + ], + "type": "object", + "additionalProperties": false + }, + "GetCachedNotificationCountResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "data": { + "$ref": "#/components/schemas/UserNotificationCount" + } + }, + "required": [ + "status", + "data" + ], + "type": "object", + "additionalProperties": false + }, + "Moderator": { + "properties": { + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "name": { + "type": "string", + "nullable": true + }, + "userId": { + "type": "string", + "nullable": true + }, + "acceptedInvite": { + "type": "boolean" + }, + "email": { + "type": "string", + "nullable": true + }, + "markReviewedCount": { + "type": "number", + "format": "double" + }, + "deletedCount": { + "type": "number", + "format": "double" + }, + "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", + "additionalProperties": false + }, + "GetModeratorResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "moderator": { + "$ref": "#/components/schemas/Moderator" + } + }, + "required": [ + "status", + "moderator" + ], + "type": "object", + "additionalProperties": false + }, + "GetModeratorsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "moderators": { + "items": { + "$ref": "#/components/schemas/Moderator" + }, + "type": "array" + } + }, + "required": [ + "status", + "moderators" + ], + "type": "object", + "additionalProperties": false + }, + "CreateModeratorResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "moderator": { + "$ref": "#/components/schemas/Moderator" + } + }, + "required": [ + "status", + "moderator" + ], + "type": "object", + "additionalProperties": false + }, + "CreateModeratorBody": { + "properties": { + "name": { + "type": "string" + }, + "email": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "name", + "email" + ], + "type": "object", + "additionalProperties": {} + }, + "UpdateModeratorBody": { + "properties": { + "name": { + "type": "string" + }, + "email": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "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" @@ -9440,200 +11390,3750 @@ "type": "number", "format": "double" }, - { - "type": "boolean" + { + "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" + } + } + } + } + } + }, + "/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" + } + } + } }, - "operator": { - "type": "string", - "enum": [ - "eq", - "not_eq", - "greater_than", - "less_than", - "contains" - ] + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, - "required": [ - "key", - "value", - "operator" - ], - "type": "object", - "additionalProperties": false - }, - "AggregationOpType": { - "type": "string", - "enum": [ - "sum", - "countDistinct", - "distinct", - "avg", - "min", - "max", - "count" + "tags": [ + "Moderation" ], - "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" + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } }, - "op": { - "$ref": "#/components/schemas/AggregationOpType", - "description": "The type of operation" + { + "in": "query", + "name": "direction", + "required": false, + "schema": { + "type": "string" + } }, - "alias": { - "type": "string", - "description": "Optional alias for the output; if not provided, a default alias is computed" + { + "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" + } + } + } }, - "expandArray": { - "type": "boolean" + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, - "required": [ - "field", - "op" + "tags": [ + "Moderation" ], - "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" + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } }, - "groupBy": { - "items": { + { + "in": "path", + "name": "voteId", + "required": true, + "schema": { "type": "string" - }, - "type": "array" + } }, - "operations": { - "items": { - "$ref": "#/components/schemas/AggregationOperation" - }, - "type": "array" + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}": { + "get": { + "operationId": "GetCommentBanStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetCommentBanStatusResponse" + } + } + } }, - "sort": { - "properties": { - "dir": { - "type": "string", - "enum": [ - "asc", - "desc" - ] - }, - "field": { - "type": "string" + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } } - }, - "required": [ - "dir", - "field" - ], - "type": "object" + } } }, - "required": [ - "resourceName", - "operations" + "tags": [ + "Moderation" ], - "type": "object", - "additionalProperties": false + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] } }, - "securitySchemes": { - "api_key": { - "type": "apiKey", - "name": "x-api-key", - "in": "header" - } - } - }, - "info": { - "title": "fastcomments", - "version": "0.0.0", - "contact": {} - }, - "paths": { - "/user-search/{tenantId}": { + "/auth/my-account/moderate-comments/user-ban-preference": { "get": { - "operationId": "SearchUsers", + "operationId": "GetUserBanPreference", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/SearchUsersSectionedResponse" - }, - { - "$ref": "#/components/schemas/SearchUsersResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$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", @@ -9641,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": { @@ -9690,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" } @@ -9721,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" @@ -9758,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" @@ -9775,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" } }, { @@ -9833,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" } }, { @@ -9920,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" @@ -9966,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" @@ -10012,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", @@ -10081,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" } ] } @@ -10106,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": { @@ -10121,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": { @@ -10200,7 +15764,7 @@ }, { "in": "query", - "name": "urlId", + "name": "search", "required": true, "schema": { "type": "string" @@ -10208,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" ], @@ -10275,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}": { @@ -10323,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" } } } @@ -10385,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" } } } @@ -10474,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" } } } @@ -10538,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" } } } @@ -10618,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" } } } @@ -10675,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" } } } @@ -10745,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" } } } @@ -10815,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" } } } @@ -10872,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" } } } @@ -10927,7 +16498,7 @@ { "in": "query", "name": "endTime", - "required": true, + "required": false, "schema": { "format": "int64", "type": "integer" @@ -10945,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" } } } @@ -11000,7 +16574,7 @@ { "in": "query", "name": "endTime", - "required": true, + "required": false, "schema": { "format": "int64", "type": "integer" @@ -11018,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" } } } @@ -11080,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" } } } @@ -11099,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}": { @@ -11160,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" } } } @@ -11422,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" } } } @@ -11502,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" } } } @@ -11572,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" } } } @@ -11627,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" } } } @@ -11715,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" } } } @@ -11801,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" } } } @@ -11864,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" } } } @@ -11926,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" } } } @@ -11988,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" } } } @@ -12050,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" } } } @@ -12112,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" } } } @@ -12174,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" } } } @@ -12229,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", @@ -12422,6 +18153,7 @@ "content": { "application/json": { "schema": { + "title": "GetSSOUsersResponse", "properties": { "users": { "items": { @@ -12966,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" } } } @@ -13011,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" } } } @@ -13086,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" } } } @@ -13149,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" } } } @@ -13204,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" } } } @@ -13251,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" } } } @@ -13296,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" } } } @@ -13351,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" } } } @@ -13398,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" } } } @@ -13486,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" } } } @@ -13535,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" } } } @@ -13582,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" } } } @@ -13647,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" } } } @@ -13694,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" } } } @@ -13766,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" } } } @@ -13823,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" } } } @@ -13878,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" } } } @@ -13943,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" } } } @@ -13988,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" } } } @@ -14043,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" } } } @@ -14098,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" } } } @@ -14152,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" } } } @@ -14201,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" } } } @@ -14246,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" } } } @@ -14309,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" } } } @@ -14372,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" } } } @@ -14435,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" } } } @@ -14481,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" } } } @@ -14530,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" } } } @@ -14585,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" } } } @@ -14630,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" } } } @@ -14685,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" } } } @@ -14740,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" } } } @@ -14787,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" } } } @@ -14833,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" } } } @@ -14882,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" } } } @@ -14957,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" } } } @@ -15002,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" } } } @@ -15057,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" } } } @@ -15104,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" } } } @@ -15190,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" } } } @@ -15239,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" } } } @@ -15330,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" } } } @@ -15387,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" } } } @@ -15497,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" } } } @@ -15542,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" } } } @@ -15597,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" } } } @@ -15644,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" } } } @@ -15690,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" } } } @@ -15739,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" } } } @@ -15836,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" } } } @@ -15924,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" } } } @@ -15971,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" } } } @@ -16059,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" } } } @@ -16138,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" } } } @@ -16203,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" } } } @@ -16248,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" } } } @@ -16295,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" } } } @@ -16340,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" } } } @@ -16395,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" } } } @@ -16450,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" } } } @@ -16496,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" } } } @@ -16545,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" } } } @@ -16600,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" } } } @@ -16646,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" } } } @@ -16695,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" } } } @@ -16744,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" } } } @@ -16799,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" } } } @@ -16840,6 +22776,7 @@ "content": { "application/json": { "schema": { + "title": "DeleteHashTagRequestBody", "properties": { "tenantId": { "type": "string" @@ -16861,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" } } } @@ -16927,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" } } } @@ -17008,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" } } } @@ -17065,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" } } } @@ -17104,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" } } } @@ -17160,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" } } } @@ -17215,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" } } } @@ -17260,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" } } } @@ -17315,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" } } } @@ -17362,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" } } } @@ -17408,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" } } } @@ -17457,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" } } } @@ -17514,6 +23487,7 @@ "content": { "application/json": { "schema": { + "title": "GetDomainConfigsResponse", "anyOf": [ { "properties": { @@ -17573,6 +23547,7 @@ "content": { "application/json": { "schema": { + "title": "AddDomainConfigResponse", "anyOf": [ { "properties": { @@ -17644,6 +23619,7 @@ "content": { "application/json": { "schema": { + "title": "GetDomainConfigResponse", "anyOf": [ { "properties": { @@ -17711,6 +23687,7 @@ "content": { "application/json": { "schema": { + "title": "DeleteDomainConfigResponse", "properties": { "status": {} }, @@ -17757,6 +23734,7 @@ "content": { "application/json": { "schema": { + "title": "PutDomainConfigResponse", "anyOf": [ { "properties": { @@ -17834,6 +23812,7 @@ "content": { "application/json": { "schema": { + "title": "PatchDomainConfigResponse", "anyOf": [ { "properties": { @@ -17913,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" } } } @@ -17958,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" } } } @@ -18037,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" } } } @@ -18100,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" } } } @@ -18244,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" + } } ] }, @@ -18255,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" } } } @@ -18337,9 +24349,10 @@ "application/json": { "schema": { "items": { + "title": "SaveCommentsBulkResponse", "anyOf": [ { - "$ref": "#/components/schemas/SaveCommentResponse" + "$ref": "#/components/schemas/APISaveCommentResponse" }, { "$ref": "#/components/schemas/APIError" @@ -18423,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" } } } @@ -18486,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" } } } @@ -18549,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" } } } @@ -18622,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" } } } @@ -18695,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" } } } @@ -18778,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/pubsub/build.gradle b/pubsub/build.gradle index 106129f8..493d0e80 100644 --- a/pubsub/build.gradle +++ b/pubsub/build.gradle @@ -1,3 +1,4 @@ +apply plugin: 'java' apply plugin: 'idea' apply plugin: 'eclipse' apply plugin: 'com.diffplug.spotless' diff --git a/update.sh b/update.sh index 180a6243..3fae7cd5 100755 --- a/update.sh +++ b/update.sh @@ -1,16 +1,20 @@ #!/bin/bash +set -e -rm -rvf ./client/src ./client/docs \ - && wget http://localhost:3001/js/swagger.json -O ./openapi.json \ - && java -jar /home/winrid/dev/fastcomments/openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \ - -i ./openapi.json \ - -g java \ - -o ./client \ - --additional-properties=useSingleRequestParameter=true,disallowAdditionalPropertiesIfNotPresent=false \ - -c config.json +# FastComments openapi-generator build. Produces Gradle 9 / modern build.gradle +# (java{} block, mainClass, spotless 8.4, junit-platform-launcher) natively, so +# no post-generation patching is needed. 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" -# Patch generated build files for Gradle 9 / Java 25 compatibility -sed -i 's|distributionUrl=.*|distributionUrl=https\\://services.gradle.org/distributions/gradle-9.4.1-bin.zip|' ./client/gradle/wrapper/gradle-wrapper.properties -sed -i 's|spotless-plugin-gradle:6.11.0|spotless-plugin-gradle:8.4.0|' ./client/build.gradle -sed -i '/sourceCompatibility = JavaVersion.VERSION_1_8/{N;s|sourceCompatibility = JavaVersion.VERSION_1_8\n targetCompatibility = JavaVersion.VERSION_1_8|java {\n sourceCompatibility = JavaVersion.VERSION_1_8\n targetCompatibility = JavaVersion.VERSION_1_8\n }|}' ./client/build.gradle -sed -i 's|main = System.getProperty|mainClass = System.getProperty|' ./client/build.gradle +[ -f "$JAR_FILE" ] || wget -q "$JAR_URL" -O "$JAR_FILE" + +rm -rvf ./client/src ./client/docs +wget -q http://localhost:3001/js/swagger.json -O ./openapi.json + +java -jar "$JAR_FILE" generate \ + -i ./openapi.json \ + -g java \ + -o ./client \ + --additional-properties=useSingleRequestParameter=true,disallowAdditionalPropertiesIfNotPresent=false \ + -c config.json